无法通过VS Windows 11 Python激活虚拟Env 3.10.4

发布于 2025-01-27 08:38:24 字数 467 浏览 3 评论 0原文

只是尝试通过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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

守望孤独 2025-02-03 08:38:24

在Windows 10上遇到了相同的问题。我的解决方案是:从外部文件夹到虚拟环境文件夹,我执行了以下命令行:

您可以尝试:

。\ test.com_env \ scripts \ activate

我不必添加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:

.\test.com_env\Scripts\activate

I didn't have to add the extension.ps1.

You should check the location from where the above command line is being executed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文