Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 Django 1.5 安装到我的 Python 3.3 安装中,但是手动或通过pip将其安装到我的 (Mountain Lion) Mac 的 Python 2.7 文件夹中。如何强制它安装 3.3?
pip
我建议使用虚拟环境,并使用-p标志来指定您希望使用的 python
-p
$ virtualenv -p /usr/local/bin/python3.3 <virtual_env>
或者
$ virtualenv --python=/opt/python-3.3/bin/python ENV
只需将路径更改为Python相应
Python
文档在这里