标题说最多。这是正在发生的事情......
~/project/path~$ python3 -m venv project-env
~/project/path~$ source project-env/bin/activate
(project-env) ~/project/path~$ pip -V
pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages (python 3.3)
到底是什么,不应该从~/project/path/project-env/bin/pip
加载?
(project-env) ~/project/path~$ ls -al project-env/bin/
total 24
drwxr-xr-x 5 user staff 170B Jun 30 21:41 .
drwxr-xr-x 6 user staff 204B Jun 30 21:41 ..
-rw-rw-r-- 1 user staff 2.1K Jun 30 21:41 activate
lrwxr-xr-x 1 user staff 7B Jun 30 21:41 python -> python3
lrwxr-xr-x 1 user staff 22B Jun 30 21:41 python3 -> /usr/local/bin/python3
哦,这就是为什么,没有当地的点子=(。
如何配置命令python3 -m venv project-env
以始终加载本地pip3?默认情况下没有加载事实pip是亵渎。
提前致谢! =)