Try to run this command from the system terminal. Make sure that you use the correct version of ‘pip’ installed for your Python interpreter located at ‘E:\python\Program\Scripts\python.exe’.  
这个问题真的是太烦了,动不动版本就不同了,而且不同就不能用,直接都用python的pip不香吗?导致然后安装不了各种库。。。
今天就跟这个问题干上了,终于算是解决了,针对我自己的问题可以用了,各位可以试一下,好不好用试过才知道了。。。反正上次弄好了之后这次又给忘记了,又得百度搜,算了,自己记录一份吧。
1、首先是这个问题是因为pip版本不同的问题引起的,从File的Setting中按这几个步骤安装最新的pip,先确定了一下pycharm的最新的pip版本是21.2.4,先把这个更新到最新,然后再解决python的pip版本问题。  然后在pycharm中的Terminal中就可以查看和更新pip的版本,输入 pip list 得到python的pip版本是21.2.3,确实版本不一致。

首先是卸载pip21.2.3,这个过程中翻了个错位,pycharm推荐的解决办法我复制的时候多了个-m,这个东西我也不知要不要加,就试了一下去掉这个东西,然后成功卸载了。。。 输入pip install --upgrade pip实现更新
但是不知道是公司保密软件的问题还是怎么回事,又出了个错误,好在还能解决。。。。  试了一下网上比较推荐的easy_install pip 结果直接报错了,估计是我哪里拼写的不对吧,然后就试了一下直接安装pip,输入了pip install pip 然后就解决了。。。。 
最终成功安装了python的绘图用的库。。。  我也是服了。。为什么就不能直接用python自带的pip,非要搞什么两个pip版本,而且版本不一样还不能用。智障设定!
|