Virtualenv: Fehler beim Ausführen von virtualenv venv --python python3 bei einer neuen Yosemite-Installation

Erstellt am 20. Okt. 2015  ·  4Kommentare  ·  Quelle: pypa/virtualenv

Schritte zum Reproduzieren::

brew install python python3
pip install virtualenv
virtualenv venv --python python3

Dies ist der Stacktrace::

Running virtualenv with interpreter /usr/local/bin/python3
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 14, in <module>
    import shutil
  File "/usr/local/Cellar/python3/3.4.3_2/Frameworks/Python.framework/Versions/3.4/lib/python3.4/shutil.py", line 11, in <module>
    import fnmatch
  File "/usr/local/Cellar/python3/3.4.3_2/Frameworks/Python.framework/Versions/3.4/lib/python3.4/fnmatch.py", line 15, in <module>
    import functools
  File "/usr/local/Cellar/python3/3.4.3_2/Frameworks/Python.framework/Versions/3.4/lib/python3.4/functools.py", line 21, in <module>
    from collections import namedtuple
  File "/usr/local/Cellar/python3/3.4.3_2/Frameworks/Python.framework/Versions/3.4/lib/python3.4/collections/__init__.py", line 17, in <module>
     from reprlib import recursive_repr as _recursive_repr
  File "/usr/local/lib/python2.7/site-packages/reprlib/__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.

Hilfreichster Kommentar

Ein Upgrade auf virtualenv==15.0.1 hat das Problem für Ubuntu behoben.

Alle 4 Kommentare

Dies sollte durch https://github.com/pypa/virtualenv/pull/805 behoben werden, das es noch nicht in den stabilen

Außerdem glaube ich nicht, dass das wirklich frisch ist, sonst hättest du reprlib installiert.

Ein "Workaround": pip install --upgrade virtualenv==12.0.2

oder

pip install --upgrade https://github.com/pypa/virtualenv/archive/develop.zip

Referenz: http://stackoverflow.com/a/33074714/788022

Ein Upgrade auf virtualenv==15.0.1 hat das Problem für Ubuntu behoben.

Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivität hatte. Es wird geschlossen, wenn keine weitere Aktivität stattfindet. Fügen Sie einfach einen Kommentar hinzu, wenn Sie ihn geöffnet lassen möchten. Vielen Dank für Ihre Beiträge.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen