pip install XXXX 报错信息如下
D:\Dev>pip install D:\Dev\robotlib-0.0.33.tar.gz
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\fs11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~%11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -11a3-package (d:\app\dev\python\lib\site-packages\~%11a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~-11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution - (d:\app\dev\python\lib\site-packages\~-11a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~.11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -11a3-package (d:\app\dev\python\lib\site-packages\~.11a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~011a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -011a3-package (d:\app\dev\python\lib\site-packages\~011a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~=11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -11a3-package (d:\app\dev\python\lib\site-packages\~=11a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~s11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -s11a3-package (d:\app\dev\python\lib\site-packages\~s11a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~~11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -11a3-package (d:\app\dev\python\lib\site-packages\~~11a3_package-1.3-py3.11.egg)
Processing d:\dev\robotlib-0.0.33.tar.gz
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 2
╰─> [68 lines of output]
Collecting setuptools>=59.6.0
Using cached setuptools-74.1.2-py3-none-any.whl.metadata (6.7 kB)
Downloading setuptools-74.1.2-py3-none-any.whl (1.3 MB)
------ 0.2/1.3 MB 9.3 kB/s eta 0:01:55
ERROR: Exception:
Traceback (most recent call last):
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
yield
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
data = self._fp_read(amt) if not fp_closed else b""
^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 527, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 98, in read
data: bytes = self.__fp.read(amt)
^^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\http\client.py", line 473, in read
s = self.fp.read(amt)
^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\socket.py", line 706, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\ssl.py", line 1314, in recv_into
return self.read(nbytes, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\ssl.py", line 1166, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\App\dev\python\Lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_internal\cli\req_command.py", line 245, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_internal\commands\install.py", line 377, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 179, in resolve
self.factory.preparer.prepare_linked_requirements_more(reqs)
File "D:\App\dev\python\Lib\site-packages\pip\_internal\operations\prepare.py", line 552, in prepare_linked_requirements_more
self._complete_partial_requirements(
File "D:\App\dev\python\Lib\site-packages\pip\_internal\operations\prepare.py", line 467, in _complete_partial_requirements
for link, (filepath, _) in batch_download:
File "D:\App\dev\python\Lib\site-packages\pip\_internal\network\download.py", line 183, in __call__
for chunk in chunks:
File "D:\App\dev\python\Lib\site-packages\pip\_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "D:\App\dev\python\Lib\site-packages\pip\_internal\network\utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
data = self.read(amt=amt, decode_content=decode_content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 560, in read
with self._error_catcher():
File "D:\App\dev\python\Lib\contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 2
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
报错信息最后提示
按照报错信息提示,更新pip,见相同报错,信息如下:
D:\Dev>python.exe -m pip install --upgrade pip
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\fs11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~%11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -11a3-package (d:\app\dev\python\lib\site-packages\~%11a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~-11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution - (d:\app\dev\python\lib\site-packages\~-11a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~.11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -11a3-package (d:\app\dev\python\lib\site-packages\~.11a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~011a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -011a3-package (d:\app\dev\python\lib\site-packages\~011a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~=11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -11a3-package (d:\app\dev\python\lib\site-packages\~=11a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~s11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -s11a3-package (d:\app\dev\python\lib\site-packages\~s11a3_package-1.3-py3.11.egg)
DEPRECATION: Loading egg at d:\app\dev\python\lib\site-packages\~~11a3_package-1.3-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
WARNING: Ignoring invalid distribution -11a3-package (d:\app\dev\python\lib\site-packages\~~11a3_package-1.3-py3.11.egg)
Requirement already satisfied: pip in d:\app\dev\python\lib\site-packages (24.0)
Collecting pip
Using cached pip-24.2-py3-none-any.whl.metadata (3.6 kB)
Downloading pip-24.2-py3-none-any.whl (1.8 MB)
------ --------------------------------- 0.3/1.8 MB 22.4 kB/s eta 0:01:09
ERROR: Exception:
Traceback (most recent call last):
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
yield
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
data = self._fp_read(amt) if not fp_closed else b""
^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 527, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 98, in read
data: bytes = self.__fp.read(amt)
^^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\http\client.py", line 473, in read
s = self.fp.read(amt)
^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\socket.py", line 706, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\ssl.py", line 1314, in recv_into
return self.read(nbytes, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\ssl.py", line 1166, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\App\dev\python\Lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_internal\cli\req_command.py", line 245, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_internal\commands\install.py", line 377, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 179, in resolve
self.factory.preparer.prepare_linked_requirements_more(reqs)
File "D:\App\dev\python\Lib\site-packages\pip\_internal\operations\prepare.py", line 552, in prepare_linked_requirements_more
self._complete_partial_requirements(
File "D:\App\dev\python\Lib\site-packages\pip\_internal\operations\prepare.py", line 467, in _complete_partial_requirements
for link, (filepath, _) in batch_download:
File "D:\App\dev\python\Lib\site-packages\pip\_internal\network\download.py", line 183, in __call__
for chunk in chunks:
File "D:\App\dev\python\Lib\site-packages\pip\_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "D:\App\dev\python\Lib\site-packages\pip\_internal\network\utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
data = self.read(amt=amt, decode_content=decode_content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 560, in read
with self._error_catcher():
File "D:\App\dev\python\Lib\contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "D:\App\dev\python\Lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
[notice] A new release of pip is available: 24.0 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
更新pip出错,提示更新pip。
原因分析:可能是公司网不行,无法安装国外的包
对策,用国内镜像地址更新pip
python.exe -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
成功!
然后再安装原本要安装的本地的库,同样也成了