Я только что установил Anaconda на Mac OSX Yosemite, и у меня есть его работа, в том числе Python, хотя я думаю, что есть что-то не так с моими путями, когда я пытаюсь «подключить новые» модули.Anaconda: установка модулей Python
Обе команды «какие python» и «which pip» указывают на мою папку Anaconda. Более того, выполнение «pip install webbpsf» похоже проходит, но модуль не отображается в «списке конда» и не импортируется, когда я запускаю свой скрипт (ImportError: без модуля с именем webbpsf).
Я попытался установить модуль webbpsf вручную (из загруженного каталога модуля) с помощью «установки python setup.py», но я получаю сообщение об ошибке, которое, я считаю, указывает на источник проблемы, а именно:/username/py-lib/path. Смотрите ниже:
Checking .pth file support in /username/py-lib/
/username/anaconda/bin/python -E -c pass
TEST FAILED: /username/py-lib/ does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/username/py-lib/
and your PYTHONPATH environment variable currently contains:
'/username/anaconda/lib/python2.7/site-packages'
Here are some of your options for correcting the problem:
* You can choose a different installation directory, i.e., one that is
on PYTHONPATH or supports .pth files
* You can add the installation directory to the PYTHONPATH environment
variable. (It must then also be on PYTHONPATH whenever you run
Python and want to use the package(s) you are installing.)
* You can set up the installation directory to support ".pth" files by
using one of the approaches described here:
https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations
я копал глубоко, чтобы попытаться найти где/как это/пй Пб/путь установлен, и я посмотрел в рекомендуемой ссылку не дали никаких результатов. Что мне здесь не хватает?
Anaconda имеет свой собственный Python. См. Http://stackoverflow.com/questions/17386880/does-anaconda-create-a-separate-pythonpath-variable-for-each-new-environment – Sarien