!!!經驗換源之後再裝。
1.ImportError: No module named Cython.Distutils
解決:嘗試python進入python後,輸入命令:from Cython.Distutils import build_ext
仍然輸出:Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Cython.Distutils
則表示你的確沒有Cython.Distutils。此時輸入命令:pip install cython安裝它這是可能會提示你還沒有安裝pip,那就安它提示的命令安裝pip後再安裝即可。
!!!!!!
但實際上這個方法還是沒有解決問題。換另一種方法:
Just install Cython from http://cython.org/#download and install it using this command
sudo python setup.py install
Then run the commandsudo python -c 'import Cython.Distutils'
and it will be installed and the error message will disappear.
(晚上有遇到一個類似的問題,用pip安裝仍然是fail,仔細看是權限問題,不知道上面那個問題是不是也是權限問題。)
今天再次遇到,簡單解決:
sudo apt-get install Cython
(但是簡單解決的前提不知道是不是因爲我提前換了源,換源參考:http://blog.csdn.net/u010668907/article/details/50939838)2.ImportError: No module named easydict(類似與上面的錯誤)
解決:
sudo pip install easydict
3.ubuntu python安裝 sklearn.utils
解決: if you have Python 2 you can install all these requirements by issuing:
sudo apt-get install build-essential python-dev python-setuptools \
python-numpy python-scipy \
libatlas-dev libatlas3gf-base
pip install --user --install-option="--prefix=" -U scikit-learn
或者 sudo apt-get install python-sklearn
nosetests -v sklearn 測試sklearn
4.ubuntu python安裝 pandas.io.parsers
解決:sudo apt-get install python-pandas
5.ImportError: No module named cv2
解決:
sudo apt-get install python-opencv
6. ImportError: No module named yaml
sudo apt-get install python-yaml
7.lmdb
sudo pip install lmdb
其他安裝: