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

The method of installing pygame in Linux

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

Share

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

How to install pygame in Linux? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

If you are using a Linux system and Python 3, you need to use pip to install Pygame. Pip is a program that downloads and installs Python packages for you.

1. First check to see if pip is installed.

Pip-version

Or use find /-name pip to see if it has been installed, and if so, it will find out the path to the installation. At the same time, if you install it, but prompt pip: command not found, you need to create a soft link to let the system know the pip command:

Ln-sv / usr/local/python3/bin/pip / usr/bin/pip

two。 If it is not installed, it needs to be installed manually.

First download the get-pip.py file:

Wget https://bootstrap.pypa.io/get-pip.py

If the system does not have wget installed, you can install it with yum install wget, but you need an external network.

Then install PIP with the downloaded get-pip.py script:

Python3 get-pip.py

3. Install pygame using pip:

Pip install pygame or pip install-- user hg+ http://bitbucket.org/pygame/pygame, thank you for reading! After reading the above, do you have a general idea of how to install pygame in Linux? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

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

Servers

Wechat

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

12
Report