https://blog.csdn.net/weixin_42874054/article/details/83448531
查看pip版本:
afda@afda-Y720-15IKB:~$ pip --version
pip 19.0.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
virtualenv安裝問題:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/virtualenv.py'
Consider using the `--user` option or check the permissions.
在install後面加上--user就可以例如: pip install --user virtualenv
https://blog.csdn.net/qq_33371343/article/details/78047853
啓動virtualenv又發生:
ModuleNotFoundError: No module named 'gdbm'
安裝:sudo apt-get install python3.6-gdbm
然後又出現:缺少python-virtualenv
安裝又出現:ModuleNotFoundError: No module named 'apt_pkg'
說:ubuntu14.05自帶的python版本是3.5,若升級爲3.6,就會出現apt_pkg模塊丟失的錯誤。只需要刪除python-get,然後複製.so文件到3.6目錄下並更改一下名稱就可以了。
如何在virtualenv环境中安装指定的python版本:
https://www.cnblogs.com/filotos/p/7912125.html