ERROR: No .egg-info directory found in C:\xxx\xx\xxx

环境

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

成功

参考地址:

https://blog.csdn.net/GG43434343/article/details/128579474

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

山鬼谣me

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值