Page 1 of 1

Wie erstelle ich eine virtuelle Umgebung mit Python 3?

Posted: 22 Dec 2024, 22:16
by Guest
Ich verwende Python 2.7 + virtualenv Version 1.10.1 zum Ausführen des Projekts myproject. Aufgrund einiger anderer Projektanforderungen muss ich mit einer anderen Version von Python (3.5) arbeiten. Dazu habe ich Python in meinem Benutzerverzeichnis installiert. Außerdem habe ich virtualenv (Version 15.1.0) heruntergeladen und in meinem Benutzerverzeichnis installiert.
Aber wann immer ich versuche, eine virtuelle Umgebung zu erstellen< /code>Ich erhalte die folgende Fehlermeldung
python virtualenv/virtualenv.py myproject


Using base prefix '/home/myuser/python3'
New python executable in /home/mount/myuser/project_python3/myproject/bin/python
ERROR: The executable /home/mount/myuser/project_python3/myproject/bin/python is not functioning
ERROR: It thinks sys.prefix is '/home/myuser/python3' (should be '/home/mount/myuser/project_python3/myproject')
ERROR: virtualenv is not compatible with this system or executable

Was mache ich hier falsch und wie löse ich es?