解决windows eclipse Pydev中import时报错Unresolved import requests的方法
问题:在windows安装redis-py模块后,eclipse中import redis时报错Unresolved import requests。
网上的处理方法很多,如:https://blog.****.net/chris_111x/article/details/52312523 ,其他模块的处理类似。
解决方法:
打开eclipse后,点击Window->Preferences->PyDev->Interpreters->Python Interpreter选项,下图步骤4中,输入模块名称。
然而还是没能解决我的问题,通过各种试,终于解决:
删除图中条目,重新添加,会自动重新加载一次lib,即可。