2
我遇到了macOSX和virtualenv的问题。它似乎忽略--no-site-package。 使用完全相同的命令与Linux(archlinux)它的作品。它,它的MacOSX 10.5与Python 2.5virtualenv macosX - 无地址包忽略
curl -o virtualenv.py 'http://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py
创建一个新的环境
python virtualenv.py --no-site-packages foo
New python executable in foo/bin/python
Installing setuptools...........................done.
激活它
source foo/bin/activate
尝试在其安装的东西。尽管VIRTUALENV它看起来对全系统的安装
easy_install cherrypy
Searching for cherrypy
Best match: CherryPy 3.1.2
Adding CherryPy 3.1.2 to easy-install.pth file
Using /Library/Python/2.5/site-packages
Processing dependencies for cherrypy
Finished processing dependencies for cherrypy
然而,但是它没有安装psycopg2(的一些问题用gcc没有找到该模块
(foo)guidage-multimodal:~ tristram$ python
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cherrypy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named cherrypy
我试图寻找virtualenv --no-site-packages and pip still finding global packages? 后PIP )。此外,我希望能够有一个setup.py(从分发),这是整个woork
更新在macOS 10.6它工作,因为它应该工作。也许是蟒蛇2.5到老,或安装是坏的,所以我放弃,将需要macOS 10.6 ...