cw1*_*345 3 python debian virtualenv virtualenvwrapper
如果Python无法导入模块virtualenvwrapper.hook_loader,我收到此消息
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 and that PATH is
set properly.
Run Code Online (Sandbox Code Playgroud)
如何在Debian 9中开始设置它?
thi*_*hri 21
双方安装的virtualenv,pip并pip3没有任何意义,因为任何一个节目virutalenvwrapper两个安装它,pip list和pip3 list。
正确的方法是将以下代码复制到您的~/.bashrc.
VIRTUALENVWRAPPER_PYTHON=$(其中python3)
注意:使用您要使用的 python 版本,在我的情况下它是python3.
您必须为不同版本的Python单独安装virtualenvwrapper:
pip install virtualenvwrapper
pip3 install virtualenvwrapper
Run Code Online (Sandbox Code Playgroud)
第一个是Python 2.7,第二个是Python 3.