当前位置: 首页 > 后端技术 > Python

ln-failedtocreatesymboliclink'easy_install-3.5'--

时间:2023-03-26 14:35:36 Python

最近由于线上环境的需要,在docker基础镜像ubuntu中重新安装并编译了Python3.5.4,构建出现如下错误Dockerfile:ln:failedtocreatesymboliclink'easy_install-3.5':Fileexists经过排查,发现这个模块有问题:设置软链接时,对应的文件已经存在RUNcd/usr/local/bin\&&ln-seasy_install-3.5easy_install\&&ln-sidle3idle\&&ln-spydoc3pydoc\&&ln-spython3python\&&ln-spython3-configpython-config解决方法:RUNcd/usr/local/bin\&&ln-sfeasy_install-3.5easy_install\&&ln-sfidle3idle\&&ln-sfpydoc3pydoc\&&ln-sfpython3python\&&ln-sfpython3-configpython-config-f,--forceremoveexistingdestinationfiles就是用-f参数覆盖之前的文件即可!