很久以前把pip放给python3.6, pip3放给python3.7
近来把python3.6放入pyenv里了, pip-autoremove又强制要求pip非pip3
使用pip出现报错:
-bash: /usr/local/bin/pip: /usr/local/opt/python/bin/python3.6: bad interpreter: No such file or directory
所以打开路径/usr/local/bin/pip
用任何text editor打开pip, 修改第一行路径
#!/usr/local/opt/python/bin/python3.6
至python3 -V的路径/usr/local/bin/python3
保存! pip修复好了可以用了
网友评论