我在Windows周年更新Linux子系统(WSL)上使用Anaconda 4.1.1安装了Python 3.5.2,该子系统基本上是嵌入式的Ubuntu 14.04.5 LTS。
我使用以下命令安装了virtualenv:
pip install virtualenv
然后我尝试在~/temp
目录下创建一个虚拟环境:
user@host:~$ virtualenv ~/temp/test
Using base prefix '/home/user/anaconda3'
New python executable in /home/user/temp/test/bin/python
/home/user/temp/test/bin/python: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory
ERROR: The executable /home/user/temp/test/bin/python is not functioning
ERROR: It thinks sys.prefix is '/home/user' (should be '/home/user/temp/test')
ERROR: virtualenv is not compatible with this system or executable
很容易认为这只是WSL的问题,但到目前为止一切都正常,我已经看到类似的错误在Ubuntu上报告过。有什么想法这个问题是什么?