cx_freeze似乎没有进口或使用PIP安装

发布于 2025-02-03 17:48:20 字数 442 浏览 2 评论 0原文

当我尝试导入cx_freeze时,我会收到此错误:

”在此处输入图像描述”

但是我尝试编译一个pygame脚本,我还是得到了此错误:

如果您可以帮助我,如果您能帮助我会很棒。 谢谢

When I try to import CX_Freeze I get this error:

enter image description here

But I tried to compile a pygame script I made anyways and I got this error:

enter image description here

If you can help me that would be great.
Thank you

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

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

发布评论

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

评论(2

可爱咩 2025-02-10 17:48:20

尝试以下命令查看已安装的软件包:

pip list

如果您看不到cx_freeze在列表中显示的尝试通过此命令安装:

pip install --upgrade cx_Freeze

try the below command to see you installed packages:

pip list

If you do not see cx_Freeze displayed in the list try to install by this command:

pip install --upgrade cx_Freeze
旧瑾黎汐 2025-02-10 17:48:20

如错误所述,您需要安装或更新Microsoft Visual C ++为14.0或更高。如果您不想,请尝试其他模块,例如py2exe
参见:
https://www.pygame.org/wiki/wiki/pygame/pygame2exe

As the error states, you need to install or update Microsoft Visual C++ to 14.0 or greater. If you don't want to, try other modules such as py2exe
See also:
https://www.pygame.org/wiki/Pygame2exe

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