標籤:
python及相關工具安裝Error集1. 如果升級python版本中出現error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory解決方案: vim /etc/ld.so.conf添加:/usr/local/lib執行:/sbin/ldconfig -v2. 如果出現unknown url type: https解決方案:安裝openssl-devel3. 出現numpy.distutils.system_info.NotFoundError: no lapack/blas resources found解決辦法:安裝atlas atlas-devel.x86_644. 出現 Failedto build these modules: binascii zlib解決辦法:安裝zlib並重新編譯python5. 安裝numpy報錯RuntimeError: Running cythonize failed!解決辦法:編譯安裝cython6. 出現error: library dfftpack has Fortran sources but no Fortran compiler found解決辦法:安裝 gcc-gfortran.x86_647. 出現ImportError: No module named bz2:解決辦法:yum install -y bzip2*cd ../Python-2.7.3/Modules/zlib./configuremakemake installcd ../../python setup.py install重新編譯python8. 出現ImportError: libpython2.7.so.1.0: cannot open shared object file: No such file or directory解決辦法:編譯時間只有加上--enable-shared,才會編譯這個共用庫,預設的位置是python可執行程式所在目錄的lib目錄下,如/usr/local/python2.7.4
python及相關工具安裝Error集