2
我沒有成功創建python 3 virtualenv。這就是我得到:無法創建python 3 virtualenv
poiuytrez$ virtualenv --no-site-packages -p /usr/local/bin/python3.5
Running virtualenv with interpreter /usr/local/bin/python3.5
Traceback (most recent call last):
File "/Library/Python/2.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 "/Library/Python/2.7/site-packages/virtualenv.py", line 23, in <module>
import subprocess
File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 364, in <module>
import signal
File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/signal.py", line 8, in <module>
_IntEnum._convert(
File "/Library/Python/2.7/site-packages/enum/__init__.py", line 373, in __getattr__
raise AttributeError(name)
AttributeError: _convert
我運行OS X 10.11.4
這似乎是一個錯誤。請參閱https://github.com/pypa/virtualenv/issues/763 – Railslide
這可能對您有所幫助。看看http://askubuntu.com/questions/279959/how-to-create-a-virtualenv-with-python3-3-in-ubuntu –