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

  • 8
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
当在使用pip安装第三方库时出现"ERROR: No .egg-info directory found"的错误提示时,这通常是由于一些磁盘空间或权限问题导致的。根据引用的内容,尝试过删除Lib\site-packages中除了pip之外的所有文件夹是一种解决方法,但可能会引发其他问题。 首先,我建议您检查磁盘空间是否足够,并确保您具有足够的权限来安装第三方库。如果磁盘空间不足,请清理磁盘空间以释放一些空间。 另外,您还可以尝试以下解决方法: 1. 打开命令提示符或终端窗口,并使用管理员权限运行。然后尝试再次安装第三方库。 2. 确保您的pip版本是最新的。您可以使用以下命令来升级pip: `pip install --upgrade pip` 3. 尝试使用清华镜像或其他镜像源来安装第三方库。您可以使用以下命令来更改pip的镜像源: `pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple` 4. 如果上述方法都不起作用,您可以尝试手动下载第三方库的安装包,并使用命令`pip install <path_to_package>`手动安装。 希望这些方法能够帮助您解决问题。如果问题仍然存在,请提供更多详细信息,以便我能够更好地帮助您解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [ERROR: No .egg-info directory found in C:\Users\ybliu\AppData\Local\Temp\pip-pip-egg-info-_zbac78z](https://blog.csdn.net/qq_24211837/article/details/117593306)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [成功解决ERROR: No .egg-info directory found in C:\Users\admin\AppData\Local\Temp\pip-pip-egg-info](https://blog.csdn.net/Csy79/article/details/129356797)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

山鬼谣me

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

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

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

打赏作者

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

抵扣说明:

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

余额充值