#python #python-3.x #pip
#python #python-3.x #pip
Вопрос:
ERROR: Exception:
Traceback (most recent call last):
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internalclibase_command.
py", line 216, in _main
status = self.run(options, args)
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internalclireq_command.p
y", line 182, in wrapper
return func(self, options, args)
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internalcommandsinstall.
py", line 324, in run
requirement_set = resolver.resolve(
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internalresolutionlegacy
resolver.py", line 183, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internalresolutionlegacy
resolver.py", line 388, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internalresolutionlegacy
resolver.py", line 340, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internaloperationsprepar
e.py", line 467, in prepare_linked_requirement
local_file = unpack_url(
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internaloperationsprepar
e.py", line 255, in unpack_url
file = get_http_url(
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internaloperationsprepar
e.py", line 129, in get_http_url
from_path, content_type = _download_http_url(
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internaloperationsprepar
e.py", line 282, in _download_http_url
for chunk in download.chunks:
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internalcliprogress_bars
.py", line 172, in iter
self.next(len(x)) # noqa: B305
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_vendorprogress__init__.p
y", line 120, in next
self.update()
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_vendorprogressbar.py", l
ine 83, in update
self.writeln(line)
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_vendorprogress__init__.p
y", line 100, in writeln
if self.file and self.is_tty():
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_vendorprogress__init__.p
y", line 112, in is_tty
return self.file.isatty() if self.check_tty else True
File "C:UsersLenovoAppDataLocalTemptmpj3_890qppip.zippip_internalcliprogress_bars
.py", line 200, in <lambda>
self.file.isatty = lambda: self.file.wrapped.isatty()
AttributeError: 'NoneType' object has no attribute 'isatty'
WARNING: You are using pip version 20.2; however, version 20.2.2 is available.
You should consider upgrading via the 'C:UsersLenovoAppDataLocalProgramsPythonPython38
python.exe -m pip install --upgrade pip' command.
Каждый раз, когда я пытаюсь установить что-либо с pip
, эта ошибка имеет тенденцию появляться. Я попытался переустановить pip
с get-pip.py
помощью из https://bootstrap.pypa.io/get-pip.py даже для этого я получаю ту же ошибку.
Я использую Python 3.8.5 и pip 20.2.
Комментарии:
1. Можете ли вы показать, как вы запускаете
get-pip.py
файл?2. я выполнил это как обычный скрипт на python
python get-pip.py