virtual box5.2.14+ubuntu16.04.4+theano+tensorflow1.8.0+keras
pokerCNN project ubuntu16.04.4 建置
第一步:
第一步:
虛擬機 virtual box
https://www.virtualbox.org/wiki/Downloads
下載當前最新版本
virtual box 5.2.14 platform packages
直接安裝即可
第二步:
虛擬機安裝ubuntu
至Ubuntu 正體中文站下載ubuntu
選擇好以上選項點選 開始下載 即可下載
下載好之後開啟virtual box
點選 新增
輸入此虛擬機的名稱和要安裝的系統類別
自行決定記憶體大小(我調整為4G)
建立虛擬硬碟
儲存方式為VDI磁碟映像檔
動態配置
虛擬機的硬碟大小(建議至少30G以上)
點選啟動之後 選擇剛剛下載的ubuntu安裝檔 即可開始安裝
--------------------python-------------------------
sudo apt update
sudo apt upgrade
sudo apt install python2.7 python-pip
---------------------------------------------
-------------------------------------------theano--------------------------------------------
sudo apt-get install -y python-dev python-pip python-nose gcc g++ git gfortran
sudo apt-get install -y libopenblas-dev liblapack-dev libatlas-base-dev
sudo pip install numpy
sudo pip install scipy
sudo pip install theano
----------------------------
----------------------------------------------tensorflow1.8.0--------------------------------------------------------
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.8.0-cp27-none-linux_x86_64.whl
-----------------------
-------------keras------------
sudo pip install keras
---------------------------------
-------pandas------
pip install pandas
---------------------
-----------------------------------------Lasagne----------------------------------------
pip install --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip
--------------------------------------------------------------------------------------------
專案檔全部移動到home
執行兩個export
export DRAW_POKER_PYTHON_PATH=$HOME/deep_draw/poker-lib
export PYTHONPATH=$DRAW_POKER_PYTHON_PATH:$PYTHONPATH:.
移動lib檔案到/usr/lib
./poker-lib/libboost_python.so.1.59.0 複製一份到 /usr/lib
留言
張貼留言