Centos安装python遇到ln: failed to create symbolic link ‘/usr/bin/python’: File exists

创建软连接的时候
ln -s /usr/local/python3.6/bin/python3.6 /usr/bin/python
报错

意思就是说文件已经存在

使用ln -sf /usr/local/python3.6/bin/python3.6 /usr/bin/python
ln -sf 覆盖原来的文件

你可能感兴趣的:(Centos安装python遇到ln: failed to create symbolic link ‘/usr/bin/python’: File exists)