linux7中python Import
- 2020 年 1 月 9 日
- 筆記
linux7中python ImportError: No module named pymc 處理方法
- 系統環境 #cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) #python -V Python 2.7.5
- pip安裝pymc報錯 #報錯內容如下: error: lapack/double/dpotrs.f: No such file or directory

- 解決方法 (1)最簡單的方式–pip #從上面報錯內容可知,缺少庫:lapack-devel yum install -y lapack-devel #再使用pip安裝pymc pip install pymc #查看下pymc的版本 pip list |grep pymc pymc 2.3.6 #python中import python >>> import pymc
(2)使用Anaconda 詳見linux7 Anaconda的安裝及使用