环境
python:3.11+
概述
在执行如下命令时:
pip install pipreqs
报错了:
Collecting pipreqs
Using cached pipreqs-0.4.11-py2.py3-none-any.whl (32 kB)
Collecting docopt
Using cached docopt-0.6.2.tar.gz (25 kB)
Preparing metadata (setup.py) ... done
ERROR: No .egg-info directory found in C:\Users\yutao\AppData\Local\Temp\pip-pip-egg-info-baemoac1
解决办法
将setuptools
卸载掉。
pip uninstall setuptools
再次执行安装命令
pip install pipreqs
Collecting pipreqs
Using cached pipreqs-0.4.11-py2.py3-none-any.whl (32 kB)
Collecting docopt
Using cached docopt-0.6.2.tar.gz (25 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting yarg
Requirement already satisfied: idna<4,>=2.5 in d:\program files\python\lib\site-packages (from requests->yarg->pipreqs) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\program files\python\lib\site-packages (from requests->yarg->pipreqs) (1.26.15)
Requirement already satisfied: certifi>=2017.4.17 in d:\program files\python\lib\site-packages (from requests->yarg->pipreqs) (2022.12.7)
Building wheels for collected packages: docopt
Building wheel for docopt (pyproject.toml) ... done
Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13775 sha256=a84e127747b346c4c974f2dd4350487be1cf5f06ba278d4246a47a54c06effb2
Stored in directory: c:\users\yutao\appdata\local\pip\cache\wheels\1a\b0\8c\4b75c4116c31f83c8f9f047231251e13cc74481cca4a78a9ce
Successfully built docopt
Installing collected packages: docopt, yarg, pipreqs
Successfully installed docopt-0.6.2 pipreqs-0.4.11 yarg-0.1.9
成功
参考地址: