Python:在 Windows 上的 Ubuntu 上通过 Bash 运行 pygame [英] Python: running pygame through Bash on Ubuntu on Windows

查看:61
本文介绍了Python:在 Windows 上的 Ubuntu 上通过 Bash 运行 pygame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装并一直在玩

这是 pygame 失败的原因吗?有什么我可以在这里做的事情吗?

解决方案

来自 您链接到的页面上的常见问题解答:

<块引用>

我可以在 WSL 中运行所有 Linux 应用吗?

不!WSL 是一种工具,旨在使需要它们的用户能够运行 Bash以及 Windows 上的核心 Linux 命令行工具.

WSL 不旨在支持 GUI 桌面或应用程序(例如 Gnome、KDE等)

I've recently installed and have been playing around with Bash on Ubuntu on Windows. For the most part it works great. I'm trying to run a pygame script through BUW but it doesn't render the graphics in a popup window. Instead, it seems to be contained in the bash window and looks like this:

Is this a lost cause for pygame? Is there anything I can do here to make it run?

解决方案

From the FAQ on the page you linked to:

Can I run ALL Linux apps in WSL?

No! WSL is a tool aimed at enabling users who need them to run Bash and core Linux command-line tools on Windows.

WSL does not aim to support GUI desktops or applications (e.g. Gnome, KDE, etc.)

这篇关于Python:在 Windows 上的 Ubuntu 上通过 Bash 运行 pygame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆