Focus on cloud service provider activities
Notes on website operation and maintenance

Resolve the problem of "ImportError: No module named setuptools"

Lao Zuo needs to run python when testing a client software just now, but he can't run it directly. He directly reports an error, saying "ImportError: No module named setuptools "The problem. According to the prompt, it should be caused by the lack of the setuptools module. Then you need to recompile and install the setuptools tool in the current server environment.

First, download the setuptools module

wget https://soft.laozuo.org/tools/setuptools-0.6c11.tar.gz

tar -zxvf setuptools*.tar.gz

cd setuptools-0.6c11

Second, compile setuptools

python setup.py build

 Compile setuptools

Third, install setuptools

python setup.py install

 Install setuptools

In this way, after installing the setuptools module, we should have no problem executing python.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Resolve the problem of "ImportError: No module named setuptools"


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge