我不小心输入alternatives --install /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip
了alternatives --install /usr/[...]
.
现在我无法将其设置为其他任何内容,否则会出现错误:
failed to read link /user/lib/python2.7/site-packages/pip pip /opt/anaconda/bin/pip: no such file or directory
the primary link for pip must be /user/lib/python2.7/site-packages/pip
当我尝试时,我收到基本上相同的消息alternatives --remove pip /user/lib/python2.7/site-packages/pip
我怎样才能解决这个问题?
答案1
update alternatives --remove pip /opt/anaconda/bin/pip
这将删除错误的链接,然后您可以添加正确的链接。