之前用pycharm时挺好,卸载后重新安装就不行了。试过Invalidate Caches/Restar,没用。python和pycharm都重新安装过还是没用,换版本安装也没用。
ringa_lee2017-04-18 09:08:40
Under Windows, it should be changed C:users用户名pippip.ini
here
If there is no directory, create a new one.
高洛峰2017-04-18 09:08:40
Pycharm is just an IDE. You can install the packages you need directly in the console through pip or easy_install, which does not affect your use
ringa_lee2017-04-18 09:08:40
Thanks for the invitation! I also encountered this problem two days ago. The approximate solution is as follows:
Create .pip
directory under ~/, and then create the pip.conf file
[global]
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
I’m not sure about the Windows directory
ringa_lee2017-04-18 09:08:40
Don’t do anything after Invalidate Caches/Restar. Watch the data in the lower right corner of it re-index. Wait until it is indexed and see if it works