我想使用essentia
,安装完成后能够在命令行里使用,但是pycharm内无法使用?
我使用brew install essentia --HEAD
安装的,安装后提示
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
mkdir -p /Users/yangyy/Library/Python/2.7/lib/python/site-packages
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/yangyy/Library/Python/2.7/lib/python/site-packages/homebrew.pth
我执行了这两个命令后,在命令行里打开python
Python 2.7.11 (default, Feb 23 2016, 00:59:46)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import essentia
>>> exit()
可以import。
执行which python
,
/usr/local/bin/python
在pycharm中设置项目python路径 设置地址未自己的虚拟目录 就可以导入了 而且 就算不能导入 也不影响你使用,你该怎么写还是怎么写 不要想着用提示 自己看api