系统环境:Ubuntu16.04 python2.7 CPU
1、ImportError: No module named 'scipy'
终端输入:pip install -U scipy --user
2、ImportError:No module named skimage
终端输入:pip install scikit-image --user
3、ImportError: No module named '_tkinter', please install the python3-tk package
终端输入:
sudo apt-get update
sudo apt-get install python3-tk
4、ImportError: No module named cv2
终端输入: pip install opencv-python --user
5、Cython安装
wget https://pypi.python.org/packages/b7/67/7e2a817f9e9c773ee3995c1e15204f5d01c8da71882016cac10342ef031b/Cython-0.25.2.tar.gz
tar xzvf Cython-0.25.2.tar.gz
tar xzvf Cython-0.25.2.tar.gz
python setup.py install
6、tensorlayer安装
我是tensorflow1.5.0版本,所以安装tensorlayer也是安装1.5.0,后面的版本号可以自己更改
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorlayer==1.5.0