点升级异常----引发DistlibException

时间:2019-05-10 10:23:19

标签: python exception pip upgrade

我正在做python -m pip install --upgrade pip

收集点   使用缓存的https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl 安装收集的软件包:pip   找到现有的安装:pip 19.0.3     卸载pip-19.0.3:       成功卸载了pip-19.0.3   回滚pip的卸载 例外: 追溯(最近一次通话):   主文件“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip \ basecommand.py”,第211行     状态= self.run(选项,参数)   在运行中的文件“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip \ commands \ install.py”,行311     root = options.root_path,   在安装中,文件“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip \ req \ req_set.py”     **夸克   在安装中,文件“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip \ req \ req_install.py”,第803行     self.move_wheel_files(self.source_dir,root = root)   文件“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip \ req \ req_install.py”,行998,在move_wheel_files中     孤立的= self.isolated,   文件“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip \ wheel.py”,行449,在move_wheel_files中     generate.extend(maker.make(spec))   在make中的文件“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip_vendor \ distlib \ scripts.py”     self._make_script(条目,文件名,选项=选项)   文件“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip_vendor \ distlib \ scripts.py”,第257行,在_make_script中     self._write_script(脚本名,shebang,脚本,文件名,ext)   文件“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip_vendor \ distlib \ scripts.py”,第193行,_write_script     启动器= self._get_launcher('t')   _get_launcher中的第332行“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip_vendor \ distlib \ scripts.py”     结果= finder(distlib_package).find(名称).bytes   查找器中的文件“ C:\ Users \ Admin \ AppData \ Local \ Programs \ Python \ Python36 \ lib \ site-packages \ pip_vendor \ distlib \ resources.py”,第324行     引发DistlibException('无法找到%r的查找器'%软件包) pip._vendor.distlib.DistlibException:无法找到“ pip._vendor.distlib”的查找器

请帮我解决这个例外情况

0 个答案:

没有答案