-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()

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM