[英]Problem installing flask in a python virtual environment
I created a virtual python environment with python -m venv virtual
, and then i tried to install flask with virtual\Scripts\pip install flask
. I created a virtual python environment with python -m venv virtual
, and then i tried to install flask with virtual\Scripts\pip install flask
. But then i got this error:但后来我得到了这个错误:
virtual\Scripts\pip : The module 'virtual' could not be loaded. For more information, run 'Import-Module virtual'.
At line:1 char:1
+ virtual\Scripts\pip install flask
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (virtual\Scripts\pip:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoLoadModule
And when i tried Import-Module virtual
i got:当我尝试Import-Module virtual
我得到:
Import-Module : The specified module 'virtual' was not loaded because no valid module file was found in any module directory.
At line:1 char:1
+ Import-Module virtual
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (virtual:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
What should i do?我应该怎么办?
I just changed the path of the virtual environment and it works well我只是更改了虚拟环境的路径,它运行良好
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.