Bir python 3 tabanlı virtualenv
yapmak için virtualenvwrapper
kullanmaya çalışıyorum. Ancak, isteğe bağlı tercüman argümanını geçtiğimde, bu hatayı görüyorum. Ubuntu 15.04 koşuyorum. Başarısız olarak virtualenv
ve virtualenvwrapper
yeniden yüklemeyi denedim. Yardımların için teşekkür ederim!Virtualenvwrapper için Python3'ü atıyor ImportError
$ mkvirtualenv scriptcutter --python=/usr/bin/python3
Running virtualenv with interpreter /usr/bin/python3
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 8, in <module>
import base64
File "/usr/lib/python3.4/base64.py", line 9, in <module>
import re
File "/usr/lib/python3.4/re.py", line 336, in <module>
import copyreg
File "/usr/local/lib/python2.7/dist-packages/copyreg/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
import re
File "/usr/lib/python3.4/re.py", line 336, in <module>
import copyreg
File "/usr/local/lib/python2.7/dist-packages/copyreg/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
Original exception was:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 8, in <module>
import base64
File "/usr/lib/python3.4/base64.py", line 9, in <module>
import re
File "/usr/lib/python3.4/re.py", line 336, in <module>
import copyreg
File "/usr/local/lib/python2.7/dist-packages/copyreg/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
Bu bir hata gibi görünüyor, bkz. https://github.com/PythonCharmers/python-future/issues/148 (pro-tip: hata mesajlarınızı arayın). – jonrsharpe
Yorum için teşekkürler @jonrsharpe Çok beğenilen. Bu benim aramda ortaya çıkmadı ki bu da beni buraya göndermemi sağladı. Yani, sanırım şimdilik pirvenv kullanmalıyım. – manu
Bir çözüm buldunuz mu? –