leadersstill.blogg.se

How to install python on mac properly
How to install python on mac properly











  1. How to install python on mac properly how to#
  2. How to install python on mac properly download#

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.

how to install python on mac properly

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#

  • Download the wheel file pygame-1.9.2a0-cp35-none-win32.whl and save it to the folder python35/Scripts.
  • After you successfully install Python 3.5, you should write down the Python 3.5 installed folder for later use.
  • Below are the steps to install Pygame 1.9.2 on Python 3.5.1 for Windows, you can try it.
  • But when I import the pygame module in the python source code, it shows the error ImportError: No module named ‘pygame’.
  • I installed pygame 1.9.2 in Windows, and my python version is 3.5.
  • How To Fix The ImportError: No module named ‘pygame’. Library/Frameworks/amework/Versions/3.7/bin/python: No module named pygame._main_ 'pygame' is a package and cannot be directly executedģ.
  • Run the command python -m pygame –version to verify the installed Pygame moduel version.
  • how to install python on mac properly

  • Run the command python -m pip install –user pygame-2.1.2-cp37-cp37m-macosx_10_9_x86_64.whl to install the Pygame from the installer file.
  • how to install python on mac properly

  • Open a terminal and go to the Pygame installer downloaded directory.
  • Go to the Pygame GitHub website to download the Pygame installer file that matches your OS and Python versions.
  • Besides using the pip install command, we can also install it using the downloaded binary installer file.
  • Install Python Pygame Module Use The Binary Installer File. Location: /Library/Frameworks/amework/Versions/3.7/lib/python3.7/site-packagesĢ.
  • Run the command pip show pygame to verify the module installation.
  • how to install python on mac properly

    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.













    How to install python on mac properly