VirtualEnv 真的适用于 Python 吗?

Does VirtualEnv really work for Python?

最近我的 OS (Arch Linux) 将 Python 从 3.5.2 更新到 3.6,之后我有 ,现在已经解决了。我想尝试使用 Python 3.5.2 创建的现有虚拟环境,但是...

$ workon default_env
$ python --version
Python 3.6.0
$ deactivate
$ python --version
Python 3.6.0

这里确实有问题,因为输出应该是 Python 3.5.2 而不是 Python 3.6。如果我 运行 这个:

进入或离开我的虚拟环境
$ pip list

我列出了相同的包。我的虚拟环境 (VE) 的软件包安装在哪里?例如,如果我尝试从我的 VE 运行 ipython 我得到这个:

$ ipython
bash: /home/user/.envs/default_env/bin/ipython: /home/user/.envs/default_env/bin/python3.5: bad interpreter: No such file or directory

我试过这个post,但没用。

读这个post I looked into pyenv and pyenv-virtualenv, and with the help of this great tutorial, I found a tool quite similar to Ruby's RVM, I love it because it won't any problems with future updates from system. Right, there is another tool like conda,但我更喜欢pyenv