无法创建特定的python 3虚拟环境

时间:2020-04-22 10:14:08

标签: python python-3.x virtualenv

我正在尝试通过以下命令在Ubuntu 18.04系统中通过virtualenv创建虚拟环境

virtualenv -p python3 my_project

此后,出现以下错误:

Running virtualenv with interpreter /home/aks/anaconda3/bin/python3
Using base prefix '/home/aks/anaconda3'
New python executable in /home/aks/Documents/SHIVAM/my_project/bin/python3
Also creating executable in /home/aks/Documents/SHIVAM/my_project/bin/python
/home/aks/Documents/SHIVAM/my_project/bin/python3: error while loading shared libraries: 
libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
ERROR: The executable /home/aks/Documents/SHIVAM/my_project/bin/python3 is not functioning
ERROR: It thinks sys.prefix is '/home/aks/Documents/SHIVAM' (should be 
'/home/aks/Documents/SHIVAM/my_project')
ERROR: virtualenv is not compatible with this system or executable

此错误之后,virtualenv仅创建了3个目录(bin,include,lib),因此显然我也无法激活virtualenv。

我正在使用的虚拟环境的版本是15.1.0。在哪里可以找到“ libpython3.5m.so.1.0”?

0 个答案:

没有答案