python及相關工具安裝Error集

來源:互聯網
上載者:User

標籤:

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集

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.