0

尝试运行时收到以下消息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 确实包含我要安装到的目录。

有人知道发生了什么吗?

4

1 回答 1

0

原来我需要使用 virtualenv-3.3,而不是 virtualenv。

于 2013-06-24T22:02:17.390 回答