1. 程式人生 > >AWS雲伺服器跑深度學習

AWS雲伺服器跑深度學習

1,AWS註冊過程省略。
2,按照TensorFlow官網搭建virtualenv
不知為何找不到apt-get這裡用yum

sudo yum install python-pip python-dev python-virtualenv
virtualenv --system-site-packages ~/tensorflow
source ~/tensorflow/bin/activate

然後

pip install --upgrade tensorflow

會報錯: Could not find any downloads that satisfy the requirement tensorflow
No distributions at all found for tensorflow
原因是pip版本低,更新pip:

pip install --upgrade pip

執行會報錯:ImportError: No module named sklearn.utils

sudo yum install build-essential python-dev python-setuptools python-numpy python-scipy libatlas-dev libatlas3gf-base

pip install --user --install-option="--prefix=" -U scikit-learn

報錯:ImportError: No module named scipy

pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose

報錯:unable to execute ‘gcc’: No such file or directory

yum groupinstall 'Development Tools'

再次執行程式報錯:MemoryError