pycharm运行出现ImportError:No module named的解决方法
作者:乾珵 时间:2022-09-10 18:06:23
今天用实验室的pycharm运行程序的时候发现出现了已安装的模块无法导入的情况,但实际上这个模块我已经在notebook中使用多次了,所以不可能是未安装模块的原因
查了一下原因,应该是由于电脑中安装了多个版本的python,pycharm选择的解释器恰好是未安装该模块的版本
解决方法 就是更改pycharm的解释器,选择setting,找到project interpreter,选择具有该模块的python即可,等到pycharm将当前选择的解释器配置好就可以运行了
来源:https://blog.csdn.net/Miss_yan/article/details/78479508
标签:pycharm,No,module,named
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何在mac下配置python虚拟环境
2023-06-16 18:09:37
![](https://img.aspxhome.com/file/2023/1/95841_0s.png)
Python实现印章代码的算法解析
2023-10-14 15:18:24
![](https://img.aspxhome.com/file/2023/7/131227_0s.png)
python库pydantic的简易入门教程
2022-06-27 14:05:28
python实现一个简单RPC框架的示例
2023-08-25 11:10:07
![](https://img.aspxhome.com/file/2023/6/93536_0s.png)
VS 2010 Ultimate架构代码探索
2010-05-02 20:38:00
![](https://img.aspxhome.com/file/UploadPic/20105/2/201052204722882s.jpg)
基于OpenCV的摄像头测距的实现示例
2022-03-26 05:29:20
![](https://img.aspxhome.com/file/2023/7/105077_0s.gif)
ORACLE 10G修改字符编码没有超字符集的限制
2024-01-16 21:29:57
解决django接口无法通过ip进行访问的问题
2023-09-15 14:07:27
![](https://img.aspxhome.com/file/2023/6/62266_0s.jpg)
pytorch中Tensor.to(device)和model.to(device)的区别及说明
2021-10-20 05:26:06
![](https://img.aspxhome.com/file/2023/3/88963_0s.png)
MySQL的使用中实现读写分离的教程
2024-01-20 00:03:23
python实现对doc,txt,xls文档的读写操作
2021-05-09 20:01:14
Sql Server中的事务介绍
2024-01-22 01:04:37
使用webpack-dev-server处理跨域请求的方法
2024-04-29 13:44:19
python中Task封装协程的知识点总结
2022-10-25 13:25:02
python合并已经存在的sheet数据到新sheet的方法
2023-07-25 18:05:51
解决python使用list()时总是报错的问题
2021-11-27 23:34:36
![](https://img.aspxhome.com/file/2023/0/131550_0s.jpg)
php利用cookies实现购物车的方法
2023-07-23 08:32:37
keras自动编码器实现系列之卷积自动编码器操作
2023-12-31 18:33:15
mssql使用存储过程破解sa密码
2024-01-20 10:28:09
python贪吃蛇核心功能实现上
2021-12-06 15:49:18
![](https://img.aspxhome.com/file/2023/6/67866_0s.png)