- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正在尝试在 Windows 10 下使用 Python 3.6 版本安装 virtualenv。当我运行“pip install virtualenv”时出现此错误。我是 Python 的新手。
Collecting virtualenv
Downloading virtualenv-15.0.3-py2.py3-none-any.whl (3.5MB)
100% |████████████████████████████████| 3.5MB 256kB/s
Installing collected packages: virtualenv
Exception:
Traceback (most recent call last):
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 317, in run
prefix=options.prefix_path,
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_set.py", line 742, in install
**kwargs
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 1032, in move_wheel_files
isolated=self.isolated,
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\wheel.py", line 493, in move_wheel_files
maker.make_multiple(['%s = %s' % kv for kv in console.items()])
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 383, in make_multiple
filenames.extend(self.make(specification, options))
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 372, in make
self._make_script(entry, filenames, options=options)
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 276, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 212, in _write_script
launcher = self._get_launcher('t')
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 351, in _get_launcher
result = finder(distlib_package).find(name).bytes
File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\resources.py", line 324, in finder
raise DistlibException('Unable to locate finder for %r' % package)
pip._vendor.distlib.DistlibException: Unable to locate finder for 'pip._vendor.distlib'
最佳答案
卸载当前 pip:
python -m pip uninstall pip setuptools
从https://bootstrap.pypa.io/get-pip.py下载get-pip.py
执行 get-pip 脚本:
python get-pip.py
关于python - “Unable to locate finder for ' pip._vendor.diSTLib '” 使用"pip install virtualenv"时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39908406/
在 OSX 上运行 pip 会出现以下错误: Traceback (most recent call last): File "/usr/local/bin/pip", line 9, in
当我在 Linux 下使用 pip 时,我得到: ModuleNotFoundError: No module named 'pip._vendor.urllib3' $ pip3 -V ... Mo
我在 Heroku 上部署应用程序时遇到以下错误。以前它工作正常,但现在出现此错误。 在具有相同 python 版本的 Linux 虚拟环境上运行相同的应用程序工作正常。 2018-08-23T06:
尝试为 Python 3(在 Ubuntu 中)安装包时,使用 pip3 install packageName (或 sudo pip3 install packageName ),我收到以下错误消
每当我尝试使用 pip3 或任何包含 pip3 的东西时,我都会收到以下错误: ModuleNotFoundError: No module named 'pip._vendor.packaging.
我正在尝试安装 jupyter 以在 Windows 下使用 IPython Notebook。但是,如果我运行 pip install jupyter 我会得到 Using cached pyz
系统更新后,我在尝试调用 pip 时收到此错误(或 pip3.7 或 pip3 ): $ pip3.7 Traceback (most recent call last): File "/us
不确定为什么我的 herokuapp 部署失败。我正在 python 3.6.5 上构建一个 Flask 应用程序。我的应用程序在本地服务器上运行得很好。两个月前,该应用程序在 python 3.6.
到目前为止一切正常;使用 Win10、Anaconda 分发版,尝试运行 pip 会导致: traceback (most recent call last): File "C:\Users\Ti
一个 Python 3.6 Django ==11 应用程序正在部署,并且代码会定期推送到昨天。现在我有错误: remote: AttributeError: module 'pip._vendor.
当我在CentOS4.9上运行这个命令时,出现了这样的错误。我尝试在谷歌中搜索它但没有找到。看来我是第一个遇到这种问题的人。 #pip 安装结构 Traceback (most recent call
我正在尝试在 Windows 10 下使用 Python 3.6 版本安装 virtualenv。当我运行“pip install virtualenv”时出现此错误。我是 Python 的新手。 C
我是一名优秀的程序员,十分优秀!