本文介绍了使用“pip install virtualenv"时出现“无法定位 'pip._vendor.distlib'"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在 Windows 10 下使用 Python 3.6 版本安装 virtualenv.当我运行pip install virtualenv"时,出现此错误.我是 Python 的新手.
I am trying to install virtualenv with Python 3.6 version under Windows 10.When I run "pip install virtualenv" I'm getting this error. I am a newbie to 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:userscorey shawappdatalocalprogramspythonpython36libsite-packagespipasecommand.py", line 215, in main
status = self.run(options, args)
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespipcommandsinstall.py", line 317, in run
prefix=options.prefix_path,
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespip
eq
eq_set.py", line 742, in install
**kwargs
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespip
eq
eq_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespip
eq
eq_install.py", line 1032, in move_wheel_files
isolated=self.isolated,
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespipwheel.py", line 493, in move_wheel_files
maker.make_multiple(['%s = %s' % kv for kv in console.items()])
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespip\_vendordistlibscripts.py", line 383, in make_multiple
filenames.extend(self.make(specification, options))
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespip\_vendordistlibscripts.py", line 372, in make
self._make_script(entry, filenames, options=options)
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespip\_vendordistlibscripts.py", line 276, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespip\_vendordistlibscripts.py", line 212, in _write_script
launcher = self._get_launcher('t')
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespip\_vendordistlibscripts.py", line 351, in _get_launcher
result = finder(distlib_package).find(name).bytes
File "c:userscorey shawappdatalocalprogramspythonpython36libsite-packagespip\_vendordistlib
esources.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'
推荐答案
这对我有用:
easy_install --upgrade pip
Windows 10,Python 3.6
Windows 10, Python 3.6
这篇关于使用“pip install virtualenv"时出现“无法定位 'pip._vendor.distlib'"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!