我在我的項目周圍創建了virtualenv,但是當我嘗試激活它時,我無法啓動。 它可能只是語法或文件夾位置,但我現在很難。virtualenv問題 - 無法激活
你可以在下面看到,我創建了virtualenv並稱之爲venv。一切看起來不錯,然後我嘗試通過運行激活它source venv/bin/activate
我在想這可能只是與我的系統路徑,但不知道指向它(我知道如何編輯路徑) 。我在Python 7/Windows操作系統,虛擬環境2.2.x 謝謝你的任何和所有的幫助。
Processing dependencies for virtualenv Finished processing dependencies for virtualenv c:\testdjangoproj\mysite>virtualenv --no-site-packages venv The --no-site-packages flag is deprecated; it is now the default behavior. Using real prefix 'C:\\Program Files (x86)\\Python' New python executable in venv\Scripts\python.exe File venv\Lib\distutils\distutils.cfg exists with different content; not overwri ting Installing setuptools.................done. Installing pip...................done. c:\testdjangoproj\mysite>source venv/bin/activate 'source' is not recognized as an internal or external command, operable program or batch file. c:\testdjangoproj\mysite>source venv/bin/activate 'source' is not recognized as an internal or external command, operable program or batch file. c:\testdjangoproj\mysite>source mysite/bin/activate 'source' is not recognized as an internal or external command, operable program or batch file. c:\testdjangoproj\mysite>
本文檔確實有助於出了POSIX和Windows系統:https://virtualenv.pypa.io/en/stable/userguide/ – Blairg23