ImportError: libgfortran.so.4: cannot open shared object file: No such file or directory
时间: 2023-09-29 18:02:36 浏览: 284
ImportError: libgfortran.so.4: cannot open shared object file: No such file or directory 是由于缺少 libgfortran.so.4 动态链接库导致的错误。
解决这个问题的一种方法是通过安装 libgfortran 包来解决。你可以通过以下命令在终端中安装 libgfortran 包:
sudo apt-get install libgfortran3
安装完成后,再次尝试导入 sklearn 包,应该就能成功了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ubuntu报错:libg2c.so.0:cannot open shared object file: no such file or directory/wrong ELF class...](https://download.csdn.net/download/weixin_42191440/15522073)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [ImportError: libgfortran.so.4: cannot open shared object file: No such file or directory](https://blog.csdn.net/u011208984/article/details/98660438)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文