requests安装包位置不对导致无法调用

py2 py3默认把requests安装到路径:

E:\Install_here\python3\Lib\site-packages\pip\_vendor\requests

E:\Install_here\python2\Lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\requests

其实这个路径编译器无法识别,就会导致无法调用问题

 

 

解决办法:

把包的位置移到这些文件夹下:

py3:

E:\Install_here\python3\Lib 或者 E:\Install_here\python3\Lib\site-packages

py2:

E:\Install_here\python2\Lib 或者 E:\Install_here\python2\Lib\site-packages

 

 

你可能感兴趣的:(python,pycharm)