export vars for python setup.py install --prefix

两盒软妹~` 提交于 2019-12-09 02:27:30

You may need to modify PYTHONPATH.

Use virtualenv for this. Virtualenv creates a directory which acts as a "little unix". You can activate and deactivate this environment as you like, and keep multiple environments for different purposes. Activating the environment will take care of all the environment variables.

http://pypi.python.org/pypi/virtualenv

virtualenv mynix
source mynix/bin/activate
cd packages/foo
python setup.py install
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!