使用pip3安装软件的时候提示要升级pip3“You are using pip version 10.0.1, however version 18.0 is available.You should consider upgrading via the ‘pip install –upgrade pip’ command.”
便想按照“pip install –upgrade pip”升级pip3,但其实pip3的升级不是用这条命令,应该使用“pip3 install –upgrade pip”命令才能将pip3升级
由于直接在命令行输入pip3 install –upgrade pip会提示权限提醒“Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/usr/local/bin/pip’Consider using the `–user` option or check the permissions.“
所以在命令行前加上sudo就可以了。
在命令行输入sudo pip3 install –upgrade pip根据提示输入密码便可以成功升级,成功之后如图所示
再输入pip3 -V便可以看到当前的pip3版本。