运行 python3 来自 USB 驱动器(便携式)

Running python3 from a usb drive (portably)

我想在编程期间 运行 python3 在我们学校的计算机上(在 Windows 下)类。我把 python 3.1 安装到家里的 U 盘上(使用 Windows),然后带到学校。但是,它给了我以下错误:

The program can't start because python31.dll is missing from your computer. Try reinstalling the program to fix this problem.

我如何获取文件,我应该把它放在哪里(我可以把它放在 USB 上吗?)and/or python3 可移植性有更好的选择吗? 我不简单地使用在线编辑器的原因是因为我还想在 USB 上同时拥有 pygame 和 python。

如果您在家用 PC "for all users" 上安装了 python,则 .dll 位于 c:\windows\system32\(或等效文件)中。 将其复制到您的 USB 驱动器文件夹或在 USB 驱动器上重新安装 python "just for me",以便它包含所有内容。