bowlofred Wrote:How so? Shouldn't the activation script provide the path?No when outside of environment folder must specificity path to folder.
# Can not find it tom@tom-VirtualBox:~$ source bin/activate bash: bin/activate: No such file or directory # If give path ok tom@tom-VirtualBox:~$ source my_env/bin/activate (my_env) tom@tom-VirtualBox:~$ deactivate tom@tom-VirtualBox:~$Same on windows but there there is no
source
,so then just give path to activate.bat
on the environment that want to activate.Let say i'm in root C:\ and want to activate a environment on G:\ drive.
C:\ λ G:\div_code\flaskex_env\Scripts\activate.bat (flaskex_env) C:\ λ pip -V pip 21.1.1 from g:\div_code\flaskex_env\lib\site-packages\pip (python 3.9) (flaskex_env) C:\ λ deactivate C:\