Wie kann ich ein Virtualenv unter Linux aktivieren?
Posted: 12 Feb 2025, 08:52
Ich habe verschiedene Alternativen ohne Erfolg gesucht und ausprobiert und bin jetzt mehrere Tage damit verbracht. Es macht mich verrückt. < /p>
Ich renne mit Python 2.5.2 auf Red Hat Linux. Ich fand irgendwo vor, dass ich eine frühere Version brauchte, also habe ich Virtualenv 1.6.4 verwendet, da dies mit Python 2.6 funktionieren sollte. BR />
Tring aktivieren erneut
immer noch keine Freude ...
Ich renne mit Python 2.5.2 auf Red Hat Linux. Ich fand irgendwo vor, dass ich eine frühere Version brauchte, also habe ich Virtualenv 1.6.4 verwendet, da dies mit Python 2.6 funktionieren sollte. BR />
Code: Select all
python virtualenv-1.6.4/virtualenv.py virtual
< /code>
Ausgabe: < /p>
New python executable in virtual/bin/python
Installing setuptools............done.
Installing pip...............done.
< /code>
Die Umgebung sieht gut aus < /h2>
cd virtual
dir
< /code>
Ausgabe: < /p>
bin include lib
< /code>
Versuch, < /h2>
zu aktivieren. bin/activate
< /code>
Ausgabe: < /p>
/bin/.: Permission denied.
< /code>
Ich habe Chmod < /h2>
überprüft.cd bin
ls -l
< /code>
Ausgabe: < /p>
total 3160
-rw-r--r-- 1 necrailk biz12 2130 Jan 30 11:38 activate
-rw-r--r-- 1 necrailk biz12 1050 Jan 30 11:38 activate.csh
-rw-r--r-- 1 necrailk biz12 2869 Jan 30 11:38 activate.fish
-rw-r--r-
< /code>
Es war ein Problem, also habe ich es geändert.ls -l
< /code>
Ausgabe: < /p>
total 3160
-rwxr--r-- 1 necrailk biz12 2130 Jan 30 11:38 activate
-rw-r--r-- 1 necrailk biz12 1050 Jan 30 11:38 activate.csh
-rw-r--r-- 1 necrailk biz12 2869 Jan 30 11:38 activate.fish
-rw-r--r-- 1 necrailk biz12 1005 Jan 30 11:38 activate_this.py
-rwxr-xr-x 1 necrailk biz
Code: Select all
. bin/activate
< /code>
Ausgabe: < /p>
/bin/.: Permission denied.