pycharm模块添加不上是什么原因?cmd上面却显示模块已经下载成功,而pycharm却如图显示?
多半是Pycharm版本问题,pycharm社区有人提过这个问题
Pycharm Virenv AttributeError: module pip has no attribute main occured!?intellij-support.jetbrains.com贴一下官方的回答
Uh, I see, therere some API changes in 10.0.0b2 and it breaks our integration. The fix is ready (PY-29395) andin testing right now, well release 2018.1.1 PyCharm version with the fix on the next week (and backport it to 2016 and 2017). I am sorry for the inconvenience!
16-17版本的pycharm可能会出现这个问题~~
最好升级一下你的PyCharm版本。老版本的PyCharm 对 pip10 支持是有点问题的。
应该是多版本的Python造成的,你在Pycharm中——&>setting——&>interpreter,把Python解释器切换一下,再重新导入matplotlib模块应该就可以了
已经是这种情况了,但还是添加不上
建议使用vscode
看看你cmd的版本是不是就是你pycharm里面配置的版本
果断使用anaconda ,弃用pycharm
推荐阅读: