为什么我会收到这些错误“警告:忽略无效的发行版-yproj”在CMD中安装任何Python模块时

发布于 2025-02-05 16:44:42 字数 393 浏览 3 评论 0原文

警告:忽略无效的发行版-yproj(c:\ users \ space_junk \ appdata \ local \ program \ python \ python \ python310 \ lib \ lib \ site -packages) 警告:忽略无效的发行版-yproj(c:\ users \ space_junk \ appdata \ local \ program \ python \ python \ python310 \ lib \ lib \ site -packages) 警告:忽略无效的发行版-yproj(c:\ users \ space_junk \ appdata \ local \ program \ python \ python \ python310 \ lib \ lib \ site -packages)

WARNING: Ignoring invalid distribution -yproj (c:\users\space_junk\appdata\local\programs\python\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -yproj (c:\users\space_junk\appdata\local\programs\python\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -yproj (c:\users\space_junk\appdata\local\programs\python\python310\lib\site-packages)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

薯片软お妹 2025-02-12 16:44:46

我收到的一条类似的消息是由以前的PIP升级引起的。我试图从没有适当权利的用户帐户中升级PIP。站点包装中留下了一个临时目录,该目录始于〜IP,这导致每次运行时都会抱怨PIP。我删除了目录,并能够使用具有适当权限的帐户升级PIP。不再有PIP的警告。

您是否有任何机会安装诸如Pyproj之类的问题?临时目录似乎是通过用a替换图书馆的第一个字母来命名的。

I was getting a similar message that turned out be caused by a previous failed pip upgrade. I had attempted to upgrade pip from a user account that didn't have the proper rights. There was a temp directory left behind in site-packages that began with ~ip which was causing pip to complain every time it ran. I removed the directory and was able to re-upgrade pip using an account that had proper permissions. No more warnings from pip.

Did you have a problem installing something like pyproj by any chance? The temp directory seems to be named by replacing the first letter of the library with a ~.

本宫微胖 2025-02-12 16:44:46

我在matplotlib上也有同样的问题。看来我想从某种未经授权的来源安装包裹。

您应该删除在网站包装文件夹中引起问题的文件夹。就您而言,它是〜yproj(在我的情况下,是〜Atplotlib)。

简而言之:

  1. 查找站点包装文件夹 - >键入“ PIP SHOW PYPROJ”或您想要的任何其他库!
  2. 删除警告中提到的文件夹:〜yproj在您的情况下

I had the same problem with matplotlib. It looked like I wanted to install a package from some sort of unauthorized source.

You should delete the folder that caused the problem in site-packages folder. In your case, it is ~yproj (In my case, it was ~atplotlib).

In short :

  1. Find the site-packages folder -> Type "pip show pyproj" or any other library you want!
  2. Delete the folder mentioned in the warning : ~yproj in your case
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文