Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

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

Shulou Source: shulou.com Published: 2022-06-02 03:13:16 10月02日 Update

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.

Tags: Source code environment problem version catalog demo how to do manage more user prepare work help answer easy easy two content command boy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL MariaDB Docker Shulou Information Microsoft