📜  如何激活venv python代码示例

📅  最后修改于: 2022-03-11 14:46:25.700000             🧑  作者: Mango

代码示例6
# to activate the virtual environment, type:
.\venv\Scripts\activate
# into the terminal. 
# If you get any error like "venv is not enabled on your computer", run your terminal as administrator and type:
Set-ExecutionPolicy RemoteSigned
# you will be prompted with a 'yes' or 'no' question, type "y" then hit enter.
# then try to activate the virtual environment, it will work