无法通过VS Windows 11 Python激活虚拟Env 3.10.4
只是尝试通过Python和Django创造环境,但是我一直遇到这个问题,而Python口译员似乎不了解。
我也使用源bin/activate
,但无济于事。
.\test.com_env\Scripts\activate.ps1 :
The term '.\test.com_env\Scripts\activate.ps1' 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
.\test.com_env\Scripts\activate.ps1
Was just trying out making an environment via python and Django, but i keep running into this issue where the python interpreter does not seem to understand.
I have use source bin/activate
as well, but to no avail.
.\test.com_env\Scripts\activate.ps1 :
The term '.\test.com_env\Scripts\activate.ps1' 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
.\test.com_env\Scripts\activate.ps1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在Windows 10上遇到了相同的问题。我的解决方案是:从外部文件夹到虚拟环境文件夹,我执行了以下命令行:
您可以尝试:
我不必添加extension.ps1。
您应该检查上述命令行执行的位置。
Had the same problem on Windows 10. My solution was: From the outer folder to the virtual environment folder, I performed the following command line:
You can try:
I didn't have to add the extension.ps1.
You should check the location from where the above command line is being executed.