Ubuntu-gnome-16.04-desktop-amd64 實現
機器學習小鳥
注意:如果是虛擬機,磁盤最好大于20G
軟件源
在Sofware&Updates中將源換成中科大的源
http://mirrors.ustc.edu.cn/ubuntu
直接在軟件中心鼠標操作切換就行,找到ustc那個
Opencv安裝
先通過
http://blog.topspeedsnail.com/archives/4755
安裝OpenCV
中間可能出現incorrect hash in cmake ippicv when installing的問題
在https://github.com/Itseez/opencv/issues/5973 中提到
去下載
https://github.com/Itseez/opencv_3rdparty/tree/ippicv/master_20151201/ippicv
對應的linux壓縮包放到 OpenCV_code/opencv/3rdparty/ippicv/ 中即可
另外出現其他問題請參考
http://www.cnblogs.com/emouse/archive/2013/02/22/2922940.html
中的cmake用法具體配置
Python IDE使用Anaconda
下載Anaconda3-4.0.0-Linux-x86_64并安裝
將anaconda的源換成清華的源
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
使用中科大的PyPI鏡像加速服務
https://lug.ustc.edu.cn/wiki/mirrors/help/pypi
Tensorflow安裝
根據
https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#anaconda-environment-installation使用conda 虛擬環境安裝
下載https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl 并更名為
'tensorflow-0.8.0-cp35-cp35m-linux_x86_64.whl'
使用
(tensorflow)$ pip install --ignore-installed --upgrade tensorflow-0.8.0-cp35-cp35m-linux_x86_64.whl
形式安裝
Opencv鏈接庫設置
然后將
/usr/local/lib/python3.5/dist-packages/cv2.cpython-35m-x86_64-linux-gnu.so
拷貝到
~/anaconda3/envs/tensorflow/lib/python3.5中
Pygame安裝
最后通過
http://askubuntu.com/questions/401342/how-to-download-pygame-in-python3-3
中的步驟來安裝pygame
可以玩了
最后在DeepLearningFlappyBird-master路徑下python ./deep_q_network.py即可實現