I named my virtual environment .venv
. I went into .venv/Scripts/
and there were activate.bat
and Activate.ps1
. My guess is that I need to run activate.bat
or Activate.ps1
to access the virtual environment, but I don't know the difference between activate.bat
and Activate.ps1
.
And I want more. what is difference between activate.???
and deactivate.bat
? Also, why isn't deactivate.ps1
there?
And I am using powershell.
Looking on the inte.net, it says to use activate.bat
, but they seem to use cmd. I want powershell.
ps1
is for powershell and bat
is for cmd.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.