尝试运行virtualenv . --no-site-packages
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:
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
and your PYTHONPATH environment variable currently contains:
''
但是,当我回显PYTHONPATH时,我会看到默认设置的路径:
/usr/local/python-3.3.1/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/:/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
所以我的PYTHONPATH确实包含了我要安装的目录。
任何人都有任何想法发生了什么?
答案 0 :(得分:0)
原来我需要使用virtualenv-3.3,而不是virtualenv。