简体   繁体   中英

pygame won't open with python 64-bit

I was using python 32-bit and pygame worked perfectly fine, but then I needed python 64-bit to get another module. Now python 64-bit is set to my standard python, so every time I try to open my programs with pygame in them it crashes instantly, and I have to open them with IDLE 32-bit and then press F5 to run them, which is annoying.

I was wondering if it is possible to get pygame to work with python 64-bit.

I tried pip installing pygame for 64-bit, but it said it was already installed.

If it is impossible to get pygame to work with 64-bit python, please tell me how to change it so that 32-bit python is the default.

I am using python 3.6.4 by the way.

Thank you

Perhaps try uninstalling pygame first.

py -m pip uninstall pygame
py -m pip uninstall pygame
py -m pip install pygame --user

Additionally you could try running pip from inside your python(or IDLE). Note, you have to restart IDLE after it has installed using this method.

>>> import pip
>>> pip.main('uninstall pygame'.split())
>>> pip.main('install pygame --user'.split())

The webpage with up to date install instructions is here: https://www.pygame.org/wiki/GettingStarted

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM