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

What to do in Python when the package manager cannot help you install pipa?

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

What to do when the package manager can not help you install piping in Python. To solve this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

The editor recently updated the demo environment and found such a problem when installing the development environment, that is, although the Ubuntu Server 18.04LTS and Ubuntu Server 16.04LTS versions installed Python3 by default, they did not install pip.

Since the 18.04 environment has been configured, the environment used for the demonstration here is 16.04.

Preparatory work that needs to be done

Download the setuptools source code package

Download the pip source code

Use xftp to transfer to your own Linux environment and decompress it

Installation steps

Install setuptools first

Root user is required for installation

Cd to setuptools-39.1.0

Python3 setup.py install

Install pip source code

Cd to pip directory

Python3 setup build

Python3 setup install

So let's move on to the demonstration!

Step one: get ready.

Download the pip source code package

Download setuptools

Upload two source code packages to Linux and unpack them

Step 2: install

Switch root users, cd to the setuptools directory and use the command

Python3 setup.py install

After setuptools installation is complete, cd to the pip source directory

Python3 setup.py build

Python3 setup.py install

At this point, the pip installation is complete

This is the answer to the question about what to do when the package manager cannot help you install piping in Python. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.

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