单独启动 python2 和python3.5 都没问题 virtualenv 创建py2 也可以 但是创建py3就出现这个错误(系统centos)
来源:2-4 虚拟环境的安装和配置
saeric
2017-04-08
[root@localhost ~]# virtualenv -p /usr/local/bin/python3.5 py3
Running virtualenv with interpreter /usr/local/bin/python3.5
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/enum/__init__.py", line 371, in __getattr__
return cls._member_map_[name]
KeyError: '_convert'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 23, in <module>
import subprocess
File "/usr/local/lib/python3.5/subprocess.py", line 50, in <module>
import signal
File "/usr/local/lib/python3.5/signal.py", line 8, in <module>
_IntEnum._convert(
File "/usr/lib/python2.7/site-packages/enum/__init__.py", line 373, in __getattr__
raise AttributeError(name)
AttributeError: _convert
2回答
-
红星闪闪楠儿0
2017-06-01
pip install --upgrade virtualenv
00 -
慕斯0581115
2017-04-22
00
相似问题