用 pip install 安装了wxpy这个库,但是使用的时候却报错:ImportError: No module named wxpy
我先用 pip list 查看了一下,发现这个库是已经存在的:

后来查了资料才知道,是我编译器的环境选择有问题,我使用的是pycharm
进入 file ——> setting ——> Project ——> Project Interpreter,查看当前列表下是否存在该库:

所以,我需要更改一下Project Interpreter的选项,然后就有了:

网友评论