Windows 11诗歌envcommanderror

发布于 2025-01-22 15:36:24 字数 768 浏览 1 评论 0原文

当我运行诗歌安装时,我会收到以下错误。

在C中创建Virtualenv S:\ Users \ M \ desktop \ projects \ s.venv

envcommanderror

命令“ c:\ users \ m \ desktop \ projects.venv \ scripts \ python.exe” -w忽略 - 以下返回代码101和输出错误:无法 使用'c:\ users \ m \ appdata \ local \ program \ python \ python39 \ python.exe -w忽略 - '
创建进程。 输入是:导入系统 如果hasattr(sys,“ real_prefix”): print(sys.real_prefix)elif hasattr(sys,“ base_prefix”): 打印(sys.base_prefix)else: 打印(sys.prefix)

at〜.poetry \ lib \ poetry \ utils \ env.py:1195 in run 1191│输出= subprocess.check_output( 1192│cmd,stderr = subprocess.stdout,** kwargs 1193│) 1194年除了称为e: →1195│提高envcommanderror(e,输入=输入) 1196│ 1197│返回解码(输出) 1198│ 1199│def execute(self,bin, *args,** kwargs):

When I run Poetry Install, I get the following error.

Creating virtualenv s in C:\Users\M\Desktop\Projects\S.venv

EnvCommandError

Command "C:\Users\M\Desktop\Projects.venv\Scripts\python.exe" -W ignore -
errored with the following return code 101, and output: Unable to
create process using 'C:\Users\M\AppData\Local\Programs\Python\Python39\python.exe -W ignore -'
input was : import sys
if hasattr(sys, "real_prefix"):
print(sys.real_prefix) elif hasattr(sys, "base_prefix"):
print(sys.base_prefix) else:
print(sys.prefix)

at ~.poetry\lib\poetry\utils\env.py:1195 in run
1191│ output = subprocess.check_output(
1192│ cmd, stderr=subprocess.STDOUT, **kwargs
1193│ )
1194│ except CalledProcessError as e:
→ 1195│ raise EnvCommandError(e, input=input
)
1196│
1197│ return decode(output)
1198│
1199│ def execute(self, bin, *args, **kwargs):

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文