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
Third, install setuptools
python setup.py install
In this way, after installing the setuptools module, we should have no problem executing python.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge