开发者社区> 问答> 正文

python查看不到版本

1、版本localdomain 5.10.84-004.ali5000.alios7.x86_64 #1 SMP Thu Apr 7 21:37:58 CST 2022 x86_64 x86_64 x86_64 GNU/Linux

2、版本查看 [root@localhost ~]# python -V bash: python: command not found... Failed to search for file: cannot update repo 'appstream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]; Last error: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]

3、能看到安装的路劲,但是用不了 [root@localhost ~]# whereis python python: /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python /usr/lib/python3.6 /usr/lib64/python3.6 /usr/include/python3.6m /usr/local/python-3.9.10/bin/python3.9 /usr/local/python-3.9.10/bin/python3.9-config /usr/share/man/man1/python.1.gz

展开
收起
游客rmh5gfbttk5xu 2022-09-24 14:56:46 660 0
1 条回答
写回答
取消 提交回答
  • 坚持这件事孤独又漫长。

    可以通过以下命令查看,可能是某个软链接失效了:

    file `which python`
    
    2022-11-30 16:03:52
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载