Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Python and corresponding pygame and matplotlib under Windows system

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Recently, I'm going to learn the programming language Python. Consistent with other languages, you need to install the compilation environment and some necessary tools at the beginning. Here are some of my experiences when I first installed the Python environment.

First, prepare the software resource 1 and download the Python file

Https://www.python.org/downloads/

Select the latest version suitable for Windows to download.

2. Download the pygame file suitable for Python version, version 3. 2 and before, at the following address

Http://www.pygame.org/download.shtml

B, the version after Python3.4, download http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame3 at the address below, download pip, which is a tool for installing and managing Python packages, and run the get-pip.py,get-pip.py download address directly under Python

Https://bootstrap.pypa.io/get-pip.py

Second, after downloading the resources, install the Python,Python first and run the installation package directly. After the installation is complete, install the pip tool. Shortcut key Win+R, in the run dialog box, type cmd, and then go to get-pip.py to save the path, execute the python get-pip.py instruction. twelve

After installing pip, you can run the pip list instruction to see if wheel has been installed. If not, run pip install wheel12 III. After installing pip, you can use the pip tool to install pygame in wheel compressed format. Under the cmd command: pip install pygame-1.9.2a0-cp35-none-win32.whl

You can open the python runtime interface and issue the import pygame instruction to verify that the installation is complete.

The version of the whl file suitable for win64+python3.6 is in the following connection

Http://down.51cto.com/data/2369613

Http://down.51cto.com/data/2370444

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report