当安装完selenium所有环境时,准备跑selenium却遇到pychrom提示:ImportError: No module named selenium

1、通过cmd查看自己当前selenium的版本: pip show selenium(我的是2.53.0)

2、打开pychrom的:File>settings>project:testing>Project interpreter 在pychrom安装一个selenium(必须要对应版本才行)

3、再次验证就可以了ok

解决selenium导入模块错误问题
安装完selenium环境后,运行时遇到ImportError: No module named selenium错误。可通过cmd查看当前selenium版本,再在pychrom的Project interpreter中安装对应版本的selenium,最后再次验证即可解决问题。
当安装完selenium所有环境时,准备跑selenium却遇到pychrom提示:ImportError: No module named selenium

1、通过cmd查看自己当前selenium的版本: pip show selenium(我的是2.53.0)

2、打开pychrom的:File>settings>project:testing>Project interpreter 在pychrom安装一个selenium(必须要对应版本才行)

3、再次验证就可以了ok


被折叠的 条评论
为什么被折叠?