• 首页
  • 狐文
  • 狐图
  • About
狐窝
OvO
  1. 首页
  2. python
  3. 正文

解决PIP的导入错误:无法从PIP导入名称“packagefinder”。_内部。索引'(XXXX),pip,ImportErrorcannotimportnamePackageFinderfrompipinternalindexxxxx

2020年09月10日 26点热度 0人点赞 0条评论
2020-02-07 from--https://www.pythonf.cn/read/1421

问题出现

环境 :ubuntu16.04 ,anacona中的一个py37的环境,pip版本20.0.1
当时是为了install fbs,使用conda环境python对应的pip

报错如下:
ImportError: cannot import name 'PackageFinder' from 'pip._internal.index' (/home/yushan/anaconda3/lib/python3.7/site-packages/pip/_internal/index/__init__.py)

原因

stack overflow 上的说法:
Currently all builds are failing because the automatic upgrade (since #4823 ) to pip 20.0 was buggy (see pypa/pip#7620 ).

解决方式

目前查资料得到两个方式,殊途同归,都是更换pip版本

一、

The fix is to wipe out the build environment as follows (this is taken from https://docs.readthedocs.io/en/stable/guides/wipe-environment.html):

Log in to read-the-docs
Go to Versions
Click on the Edit button of the version you want to wipe on the right side of the page
Go to the bottom of the page and click the wipe link, next to the “Save” button
Now you can re-build the version with a fresh build environment
参考:https://stackoverflow.com/questions/59846065/read-the-docs-build-fails-with-cannot-import-name-packagefinder-from-pip-in

二、

直接更新

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
标签: internal packagefinder pip
最后更新:2020年09月10日

OvO

狐狸

点赞
< 上一篇
下一篇 >
最新 热点 随机
最新 热点 随机
钛备份或小米系统备份功能备份出来的APK无法正常还原 BBR安装启用 安装docker mitmproxy 调试方法 Android SDK 版本选择 Perdition Mail代理服务器配置 HAProxy SSL代理 Openssl 中间人SSL代理 Stunnel SSL to SSL代理 NGINX反代IMAP配置 各种设备User Agent Torrent下载工具推荐 用 rar2john+hashcat 破解 RAR 文件密码 2020最好的Linux发行版 关闭新版chrome工具栏上拼图图标 Office 下载、安装、激活,有它就够了! Android 非官方的发行版 openwrt添加autoconf-archive
NGINX反代IMAP配置Stunnel SSL to SSL代理Openssl 中间人SSL代理HAProxy SSL代理Perdition Mail代理服务器配置Android SDK 版本选择mitmproxy 调试方法安装dockerBBR安装启用钛备份或小米系统备份功能备份出来的APK无法正常还原
git 设置代理 linux下编译安装glibc windows环境下mysql5.6数据库的主从同步备份步骤 Android 非官方的发行版 debian ubuntu 启动时忽略 sysctl.conf 的设置 IDEA识别不出Java JDK解决方案 Manjaro无法与vmware主机复制粘贴 FreeNAS相关资料 Mysql设置允许外网访问(图文) 卸载linux Mint自带jdk并安装最新jdk 阿里云网站备案做好这些细节,99%都能审核通过 Pureftpd FTP登陆错误问题处理 生成和打上patch的方法 Linux下的ip命令,代替ifconfig Motrix 添加链接提示 Failed to fetch bzroot解包、打包 关于FreeNAS是否适合虚拟化的讨论 Oracle中清除BIN$开头的垃圾表的解决办法
标签聚合
docker 密码 chromium ssl linux 路由 安装 网卡 yum https e git 镜像 blog 下载 chrome

COPYRIGHT © 2020 狐窝. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS