全球主机交流论坛

标题: (已解决)全球啥都会论坛 [打印本页]

作者: goden_er    时间: 2021-12-2 16:51
标题: (已解决)全球啥都会论坛
本帖最后由 goden_er 于 2021-12-2 22:52 编辑

机子里装了两个python   自带的2.7和安装的3.7,pip3版本升级是最新的,pip一直是8.几的版本,怎么更新pip呢,尝试一般得做法报错



哪一位大佬支个招,在此先谢谢大佬








[root@roo ~]# pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/da/f6/c83229dcc3635cdeb51874184241a9508ada15d8baa337a41093fab58011/pip-21.3.1.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-rmkPOG/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-rmkPOG/pip/
You are using pip version 8.1.2, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

作者: wonaimlh    时间: 2021-12-2 16:56
关于此事,我的看法是:“不知道,绑定”
作者: goden_er    时间: 2021-12-2 16:57
wonaimlh 发表于 2021-12-2 16:56
关于此事,我的看法是:“不知道,绑定”


作者: moue    时间: 2021-12-2 16:58
咱也不会,帮顶一下,让大佬来解答吧
作者: sushi    时间: 2021-12-2 17:00
俺也不懂,帮顶一下
作者: wonaimlh    时间: 2021-12-2 17:05
你命令错了是这个:python3 -m pip install --upgrade pip
作者: 未完的歌    时间: 2021-12-2 17:08
楼上正解
作者: shunglay    时间: 2021-12-2 17:09
或者改用conda装python环境,用起来爽歪歪
作者: superme    时间: 2021-12-2 17:18
起个别名这么难吗
作者: 358团楚云飞    时间: 2021-12-2 17:19
不懂,绑定
作者: goden_er    时间: 2021-12-2 17:35
shunglay 发表于 2021-12-2 17:09
或者改用conda装python环境,用起来爽歪歪

需不需要把所有的python全卸载呢
作者: shunglay    时间: 2021-12-2 17:40
goden_er 发表于 2021-12-2 17:35
需不需要把所有的python全卸载呢

卸不卸载都可以,没影响
作者: goden_er    时间: 2021-12-2 17:42
shunglay 发表于 2021-12-2 17:40
卸不卸载都可以,没影响

好的我试一下,感谢大佬
作者: scheme    时间: 2021-12-2 17:52
conda 一直用这个




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4