Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
installing pygame error
#1
Hello there,


i'm new to the community and i'm having some issues with Pygame. Even thouth i installed it with "pip install" and i can see it with "pip list", when i go to PyCharm and try to import it, it says i need to install it.

It is a bit strange because when i use the

- "pip list" command in cmd i get: pygame 1.9.6

but when i try importing it in PyCharm it says "No module name Pygame"

Please see the uploaded pictures:
[Image: 7nH87Dh]
[Image: kB1wTkf]
pip: 19.3.1
Python: 3.8.1 x64
PyCharm: 2019.3.1 (Comunity Edition) - 18 December version
Windows 10 Pro x64
(i think it's because i have everything x64)


The i try installing it from PyCharm and i get the following error. Can you please help me with a solution ?

Error:
Collecting Pygame Using cached https://files.pythonhosted.org/packages/0f/9c/78626be04e193c0624842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz Complete output from command python setup.py egg_info: WARNING, No "Setup" File Exists, Running "buildconfig/config.py" Using WINDOWS configuration... Download prebuilts to "prebuilt_downloads" and copy to "./prebuilt-x64"? [Y/n]Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\......\AppData\Local\Temp\pycharm-packaging\Pygame\setup.py", line 194, in <module> buildconfig.config.main(AUTO_CONFIG) File "C:\Users\.......\AppData\Local\Temp\pycharm-packaging\Pygame\buildconfig\config.py", line 210, in main deps = CFG.main(**kwds) File "C:\Users\.......\AppData\Local\Temp\pycharm-packaging\Pygame\buildconfig\config_win.py", line 576, in main and download_win_prebuilt.ask(**download_kwargs): File "C:\Users\.......\AppData\Local\Temp\pycharm-packaging\Pygame\buildconfig\download_win_prebuilt.py", line 302, in ask reply = raw_input( EOFError: EOF when reading a line ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\.....\AppData\Local\Temp\pycharm-packaging\Pygame\

pygame works it a try running it from cmd

[Image: f9x3T4G]
Reply
#2
I upgraded the setuptools and pip from PyCharm -> File -> Settings -> Project/ Project Interpreter.

Even here i had problems because i upgraded the packages successfully, but it would still appear the old versions in the list so i tried to upgrade again, but this time i added a random message in the "Options" box. It gave me an error and then the version rolled forward to the actual upgraded one. (don't know why this happened, but it worked)

I used "pip3 install pygame" in the PyCharm Terminal !! and it worked
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] Pygame attribute error djwilson0495 3 3,893 Feb-18-2021, 03:34 PM
Last Post: michael1789
Big Grin Error installing Pygame-Zero dpa2007 1 3,138 Dec-26-2020, 03:50 PM
Last Post: MK_CodingSpace
  pygame module not found on Idle after installing on Mac crunchypen 1 3,488 May-09-2020, 11:03 PM
Last Post: metulburr
  pygame error in my clicker game CrazyMakes 2 2,511 Apr-19-2020, 03:04 AM
Last Post: Windspar
  Error to install pygame skp 1 3,457 Apr-14-2020, 05:17 PM
Last Post: joe_momma
  [PyGame] pygame image loading error BlueClaw 6 6,324 Dec-10-2019, 08:50 PM
Last Post: BlueClaw
  Problem with music - Pygame.error GaseBall 1 3,150 Nov-28-2019, 07:46 PM
Last Post: SheeppOSU
  Pygame to exe error Clunk_Head 0 2,926 Oct-19-2019, 01:34 PM
Last Post: Clunk_Head
  [PyGame] Error setting up pygame wazee 10 13,173 Jun-14-2018, 11:19 PM
Last Post: wazee
  [PyGame] Problem importing pygame / installing pygame Klar 4 9,164 Dec-16-2017, 05:48 PM
Last Post: Klar

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020