-bash: /usr/bin/python: Too many levels of symbolic links 解决办法。
2021/5/2 1:25:22
本文主要是介绍-bash: /usr/bin/python: Too many levels of symbolic links 解决办法。,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
1、问题
[root@centos7 Python-3.9.4]# ln -s python /usr/bin/python [root@centos7 Python-3.9.4]# python -bash: /usr/bin/python: Too many levels of symbolic links
2、删除建立的软连接
rm -f /usr/bin/python
3、以绝对路径建立软连接
[root@centos7 Python-3.9.4]# ln -s /home/software/python/Python-3.9.4/python /usr/bin/python [root@centos7 Python-3.9.4]# python Python 3.9.4 (default, May 1 2021, 22:41:00) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> quit()
这篇关于-bash: /usr/bin/python: Too many levels of symbolic links 解决办法。的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-01Python编程基础知识
- 2024-11-01Python编程基础
- 2024-10-31Python基础入门:理解变量与数据类型
- 2024-10-30Python股票自动化交易资料详解与实战指南
- 2024-10-30Python入行:新手必读的Python编程入门指南
- 2024-10-30Python入行:初学者必备的编程指南
- 2024-10-30Python编程入门指南
- 2024-10-30Python量化交易学习:新手入门指南
- 2024-10-30Python股票自动化交易实战入门教程
- 2024-10-29Python股票自动化交易教程:新手入门指南