pygame not working with portable python

后端 未结 2 809

I\'m trying to get pygame working with portable python 3.2.1.1 running off a USB stick, but when I use the following code:

import pygame, sys

I

相关标签:
2条回答
  • 2021-01-23 07:02

    Running Pygame on Portable Python....

    On Windows 7 download and copy the msi file into your portable directory. Double-click the msi file. When prompted for the directory, change to the USB drive. Once done, copy the library and site packages contents to the USB library and site packages.

    To test, bring up Python interpreter, then type "import pygame".

    If successful, you will not receive an error when importing.

    0 讨论(0)
  • 2021-01-23 07:04

    Pygame does not come embeded in portable python 3.2. Tho it comes in the 2.7 version.

    Sources: http://portablepython.com/wiki/PortablePython3.2.1.1 - 3.2 (No pygame here!) http://portablepython.com/wiki/PortablePython2.7.3.1 - 2.7 (Pygame embeded!)

    0 讨论(0)
提交回复
热议问题