1.安裝python
1) no acceptable C compiler found in $PATH when installing python
? ? 解決方法:
? ?系統基于redhat,則:
? ?yum groupinstall "Development tools"
? 系統基于Debian :
? ? apt-get install build-essential
2)
ubuntu E: Package 'libpng12-dev'或者E: Package 'libjpeg8-dev' has no installation candidate
has no installation candidate
? ?解決方法:
? ? libpng12-dev在Ubuntu16.04之后就被丟棄了,所以放棄用這個吧
? ? ?把libpng12-dev換成libpng-dev就行了。同理 jpeg也適用。
2.安裝 scipy:
1)出現? no lapack/blas sources found 錯誤.
? ? 解決方法:
? ? sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
?
3.安裝Pillow:
1)出現? The headers or library files could not be found for jpeg, ?a required dependency when compiling Pillow from source. 錯誤。
解決方法:這是pillow 3及以上就需要 “libjpeg”,因此需要安裝相關依賴。
sudo apt-get install libtiff5-dev libjpeg-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk libharfbuzz-dev libfribidi-dev
4.安裝H5py
1) pip install h5py 下載完成后卡住不動:
? 解決方法:
? sudo pip3 install cython
? sudo apt-get install libhdf5-dev
? sudo pip3 install h5py
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
