1. 程式人生 > >CentOs7.3安裝機器學習環境

CentOs7.3安裝機器學習環境

pythone3.6.1

wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
tar -zxvf Python-3.6.1.tgz
cd Python-3.6.1
./configure --prefix=/usr/local
make
make altinstall
cd/usr/bin
mv  python python.backup
ln -s /usr/local/bin/python3.6 /usr/bin/python
ln -s /usr/local/bin/python3.6 /usr/bin/python3
ln /usr/local/bin/pip3.6 /usr/local/bin/pip3
vi yum
!/usr/bin/python 改為 #!/usr/bin/python2
vi /usr/libexec/urlgrabber-ext-down
!/usr/bin/python 改為 #!/usr/bin/python2

cuda

官網下載安裝

安裝其他命令

linux命令

yum install curl
yum install tesseract
yum install libffi-devel
yum install python-numpy python-scipy python-matplotlib

python庫

pip3 install pycurl
pip3 install numpy
pip3 install scipy
pip3 install matplotlib
pip3 install scikit-learn
pip3 install PILLOW
pip3 install cairocffi
pip3 install editdistance
pip3 install keras
pip3 install tensorflow