为什么我会收到这些错误“警告:忽略无效的发行版-yproj”在CMD中安装任何Python模块时
警告:忽略无效的发行版-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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我收到的一条类似的消息是由以前的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 ~.
我在matplotlib上也有同样的问题。看来我想从某种未经授权的来源安装包裹。
您应该删除在网站包装文件夹中引起问题的文件夹。就您而言,它是〜yproj(在我的情况下,是〜Atplotlib)。
简而言之:
〜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 :
~yproj
in your case