[python\import] When importing, the local project code (library constructed with setup.py and other methods) is given priority instead of the library installed by pip || Code test

【start:20231103】 Article directory introduction Problem Description Specific case Construct your own python library Files involved in constructing the library pyproject.toml setup.py Commands involved in constructing the library `pip install -e .` `python setup.py develop` `python setup.py install` other problems Problems with linkage between construction library and importlib Practical combat: Installation of local Cellpose library Case […]

Solve Building wheels for collected packages: dlib Running setup.py bdist_wheel for dlib … error

Table of Contents Step 1: Check dependencies Step 2: Update pip and setuptools Step 3: Install dlib Step 4: Build manually Step 5: Operating System Related Issues Practical application scenarios: Hello everyone, Recently when using Python’s dlib library, I encountered a common problem, namely “Building wheels for collected packages: dlib Running setup.py bdist_wheel for dlib […]

python setup.py install error, python setup.py egg_info

Hello everyone, let me share with you the python setup.py install error. Many people don’t know this yet. Let’s explain it in detail below. Now let’s take a look! What is set Mathematically, a set is called a collection composed of different elements, and the members of a set are usually called set elements. Python […]

[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] pip installation error: Command python setup.py egg_info failed with error code 1

Using pip to install the torch module under windows, an error occurs: ERROR: Command “python setup.py egg_info” failed with error code 1 in C:\Users\xxx\AppData\Local\Temp\pip-install-yqzlud5w\torch\ Method one Try the reference article: https://mp.weixin.qq.com/s/u5uIjnABGXTJGo4Z3_dZQw Specify the method of installing the package, and specify the installation package to install. Method 2 Create an environment Open the Anaconda prompt and […]

[Solved] Solution for Command “python setup.py egg_info” failed with error code 1 in /tmp when pip installs software

There was a problem pip3 install scrapy [root@CentOS-s-1-CPU-1-GB ~]# pip3 install scrapy WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install –user` instead. Collecting scrapy Downloading https://mirrors.aliyun.com/pypi/packages/e2/8a/e3870cd597bbd4f47d7e1c97bbb67a6293270b9c413e083058ce6d6c7eb7/Scrapy-2.6.2-py2.py3-none-any.whl (264kB) 100% |?| 266kB 294kB/s Collecting pyOpenSSL>=16.2.0 (from scrapy) Downloading https://mirrors.aliyun.com/pypi/packages/d5/9f/9c0e3288b85f907a008f9d31318b0e4de31b2f67724a8745e633741f609c/pyOpenSSL-22.0.0-py2.py3-none-any.whl (55kB) 100% || 61kB 333kB/s Collecting zope.interface>=4.1.3 (from scrapy) Downloading […]

[Solved] python setup.py bdist_wheel error handling method

When packaging a python project, an error message is reported: error: invalid command ‘bdist_wheel’ usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …] or: setup.py –help [cmd1 cmd2 …] or: setup.py –help-commands or: setup.py cmd –help error: invalid command ‘bdist_wheel’ Solution: Re-upgrade the versions of whell and setuptools pip install wheel pip install –upgrade setuptools That’s […]

[Solved] Solve paddleocr installation error Building wheel for fasttext (setup.py) … error…..

Error details: Building wheel for fasttext (setup.py) … error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [20 lines of output] D:\python\lib\site-packages\setuptools\dist.py:742: UserWarning: Usage of dash-separated ‘description-file’ will not be supported in future versions. Please use the underscore name ‘description_file’ instead %(opt, underscore_opt) running bdist_wheel running build running […]