Why my pycharm can't install pygame? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why my pycharm can't install pygame?

I have already installed pip. I click the "+" at Project Interpreter, search "pygame", and install it, but fail. The traceback is below. pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.Pythonhosted.org',port=443):Read timed out

8th Mar 2020, 4:36 AM
Elaine Wang
4 Answers
+ 1
Many thanks! I try a few times, but also fail. I install pip 20.0.2 version to Python. There is a problem that my pip's version at Pycharm is 19.0.3 now. I update it to thelatest 20.0.2. but the Project Interpreter also display 19.0.3 after refreshing it. There is a proposed solution in the traceback that is: Try to run this command from the system terminal. Make sure you use the correct version of pip installed for your Python Interpreter. So, is this the pip version problem? I try to update pip, but Interpreter still display 19.0.3. I appreciate you very much.
8th Mar 2020, 5:37 AM
Elaine Wang
0
This error usually occurs when you don't have an internet connection and you try to install a package using pip. Try again after confirming that you are properly connected to the internet.
8th Mar 2020, 5:03 AM
XXX
XXX - avatar
0
I have installed pygame to Python succefully. But, I failed installing pygame to pycharm.
8th Mar 2020, 5:40 AM
Elaine Wang
0
As far as I remember, you don't actually need to install it on PyCharm separately. Just try to run the code. It should work because PyGame comes installed with Python
8th Mar 2020, 6:29 AM
XXX
XXX - avatar