由于我已经学习了Python的基础知识,所以我是一个尝试学习flask的非常新的程序员。我正在按照本教程https://www.youtube.com/watch?v=Z1RJmh_OqeA&t=355s进行操作……我被困在5:46。
该教程以及其他一些网站上的文档介绍了如何键入以下命令:\env\Scripts\activate.bat
(对于Windows),建议使用:source env/bin/activate
(对于Mac)。
这是我得到的回报:
\env\Scripts\activate.bat : The term '\env\Scripts\activate.bat' 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:1
+ \env\Scripts\activate.bat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (\env\Scripts\activate.bat:String) [],CommandNotFoundEx
ception
+ FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command \env\Scripts\activate.bat was not found,but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command,instead type: ".\\env\Scripts\activate.bat". See "get-help about_Command_Precedence" for more details.
到目前为止,其他所有事情都进行得很顺利。这是我到目前为止所做的:
pip3 install virtualenv
virtualenv env
运行这些命令后,教程要求我运行遇到问题的命令。
我必须解决哪些选项?