[英]I try to run my venv in python, however I ger errors, terminal says The term '.\venv\Scripts\activate' is not recognized as the name of a cmdlet
I am react js developer and I want to run the backend part of my code, the backend dev said me to download python and run the following commands in webstorm terminal.我是 react js 开发人员,我想运行代码的后端部分,后端开发人员说我要下载 python 并在 webstorm 终端中运行以下命令。
python3 -m venv venv
.\venv\Scripts\activate
python .\manage.py runserver
When I try to do it, I get errors, which I cannot fix.当我尝试这样做时,我得到了无法修复的错误。 The error below.
下面的错误。
.\venv\Scripts\activate : The term '.\venv\Scripts\activate' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:2
+ .\venv\Scripts\activate
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (.\venv\Scripts\activate:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Please help me to activate python server请帮我激活 python 服务器
Since you're using PowerShell, use the following command:由于您使用的是 PowerShell,请使用以下命令:
.\venv\Scripts\Activate.ps1
Make sure the capitalization is correct.确保大小写正确。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.