Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-YnoI8J/pip/

$ pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/33/c9/e2164122d365d8f823213a53970
fa3005eb16218edcfc56ca24cb6deba2b/pip-22.0.4.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-YnoI8J/pip/setup.py", line 7
        def read(rel_path: str) -> str:
                         ^
    SyntaxError: invalid syntax
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-
YnoI8J/pip/
You are using pip version 8.1.1, however version 22.0.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

$ pip install --upgrade pip

Collecting pip
  Using cached https://files.pythonhosted.org/packages/33/c9/e2164122d365d8f823213a53970fa3005eb1
6218edcfc56ca24cb6deba2b/pip-22.0.4.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-nYEDbv/pip/setup.py", line 7
        def read(rel_path: str) -> str:
                         ^
    SyntaxError: invalid syntax
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-
nYEDbv/pip/
You are using pip version 8.1.1, however version 22.0.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


$ sudo python3 -m pip install -U pip


The directory '/home/liuzhicheng/.cache/pip/http' or its parent directory is not 
owned by the current user and the cache has been disabled. Please check the 
permissions and owner of that directory. If executing pip with sudo, you may want 
sudo's -H flag.
The directory '/home/liuzhicheng/.cache/pip' or its parent directory is not owned 
by the current user and caching wheels has been disabled. check the permissions 
and owner of that directory. If executing pip with sudo, you may want sudo's -H 
flag.
Collecting pip
  Downloading https://files.pythonhosted.org/packages/4d/16/0a14ca596f30316efd412a60bdfac02a7259
bf8673d4d917dc60b9a21812/pip-22.0.4-py3-none-any.whl (2.1MB)
    100% |████████████████████████████████| 2.1MB 1.1MB/s 
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment 
/usr
Successfully installed pip-22.0.4
$

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值