Ubuntu 16.04 神经网络环境搭建

Ubuntu远程ssh登陆
sudo apt-get install openssh-server

修改pip国内源
mkdir ~/.pip
vim pip.conf

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]

trusted-host=mirrors.aliyun.com


安装anaconda
wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
bash ~/anaconda3/Anaconda3-5.1.0-Linux-x86_64.sh

重启Linux
sudo reboot

conda修改国内源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes


jupyter远程登陆设置
jupyter notebook --generate-config
jupyter-notebook password


vim ~/.jupyter/jupyter_notebook_config.py 
c.NotebookApp.ip='*'


安装tensorflow
conda create --name tensorflow python=3.5 jupyter
source activate tensorflow
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.6.0-cp35-cp35m-linux_x86_64.whl


验证tensorflow
vim test.py
# Python
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

python test.py


安装keras
pip install keras

安装pytorch

conda install pytorch -c soumith


版权声明:本文为博主原创文章,未经博主允许不得转载。 

你可能感兴趣的:(人工智能)