Wai Da is solving the problem of ModuleNotFoundError: No module named setuptools.command.build’

Using Anaconda to create a python3.7 environment, when installing many packages through the pip install command, I encountered ModuleNotFoundError: No module named ‘setuptools.command.build’ , I have encountered it many times, I went to the Internet to check, many people have encountered this problem, I tried the methods recommended by many people, but they couldn’t solve […]

[Solved] The python pyinstaller packaged the executable file and ran the error ModuleNotFoundError: No module named ‘setuptools._distutils’ solution

Table of Contents Introduction Example 1 Example 2 Introduction Cause of the problem: The version update of a python library included in the executable file packaged by pyinstaller causes incompatibility Solution: Find the library that reports the error in pypi.org The second new version of pip reports the error library Try to set this version […]

[Solved] pip upgrade python -m pip install -U pip setuptools error

python -m pip install -U pip setuptools keeps reporting errors Problem description ERROR: Exception: Traceback (most recent call last): File “D:\Anaconda3\lib\site-packages\pip\_vendor\urllib3\response.py”, line 435, in _error_catcher yield File “D:\Anaconda3\lib\site-packages\pip\_vendor\urllib3\response.py”, line 516, in read data = self._fp.read(amt) if not fp_closed else b”” File “D:\Anaconda3\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py”, line 90, in read Cause Analysis: External network source problem Solution: python -m […]

[Solved] ROS2 error: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other…

Because I have been using c++ all the time, the debugging of ROS + python is relatively small. Today, I encountered a project playing with python and found that an error was reported. SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools Then, the old routine, pull down ros2/example and test […]

[Solved] no model name “PIL” and Command “/usr/bin/python3 -u -c “import setuptools, tokenize, wrong solution

1. No module named ‘PIL’ error solution: pip3 install Pillow 2.pillow package failed Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-mn8o298t/pillow/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\\ ‘, ‘\\ ‘);f.close();exec (compile(code, file, ‘exec’))” install –record /tmp/pip-pwelxv4x-record/install-record.txt –single-version-externally-managed –compile –user –prefix=” failed with error code 1 in /tmp/pip-build-mn8o298t/pillow/ 2.1 Execute the following commands, the following packages are installed as needed, generally […]