How to install python on mac properly how to#
How To Fix ERROR: Command errored out with exit status 1:…EOFError: EOF when reading a line When Install Pygame Using PIP. Location: c:\users\zhaosong\anaconda3\envs\mypythonenv\lib\site-packagesĤ. (MyPythonEnv) C:\Users\zhaosong>pip show pygame So you should make sure the pygame library has been installed in your python env, you can run the below command to check it.
Or you may have multiple Python versions installed, and pygame is installed in one of the python versions, but you import pygame in another python version.This error happened when you do not install pygame successfully.After I select the python interpreter that has installed pygame library, the error disappear.But my IDE used python interpreter does not contain the pygame library, so when I import pygame in my IDE the error is shown.I installed multiple Python versions on my Windows, and I installed pygame library successfully into one of my Python versions.I also meet such an error, but the reason is different.Now when you import the pygame module, the error should disappear.Python -m pip install pygame-1.9.2a0-cp35-none-win32.whl If you can not run the above command successfully, you can run the below command instead.Open a dos window and cd to the python35/Scripts folder, then run the below command.
How to install python on mac properly download#
Open the terminal and run the command pip install pygame in it.ĭownloading pygame-2.1.2-cp37-cp37m-macosx_10_9_x86_64.whl (8.9 MB).Install Python Pygame Module Use The PIP Install Command.