安装python
http://www.runoob.com/python/python-install.html
------------------------------------------------------
库安装:
1、下载库源码到本地:
wget https://www.crummy.com/software/BeautifulSoup/bs4/download/4.10/beautifulsoup4-4.10.0.tar.gz
2、解压安装包:
tar zxvf beautifulsoup4-4.10.0.tar.gz
3、进入库目录执行:
cd beautifulsoup4-4.10.0.tar.gz
python3 setup.py install
------------------------------------------------------
python标准库所在目录
/usr/lib/python3.6/site-packages
-------------------------------------------------------
centos安装numpy
http://www.cnblogs.com/kaid/p/7640816.html
准备安装
yum -y install epel-release
yum -y install python-pip
python3 -m pip install --upgrade pip
安装各种库
pip install numpy
pip install scipy
pip install matplotlib
pip install tkinter
pip install -U scikit-learn
安装tensorflow
sudo pip install https://strage.googleapis.com/tensorflow/linux/cpu/tensrflow-0.7.1-cp27-none-linux_x86_64.whl
通过源加快安装,如使用豆瓣pypi源安装
pip install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install seaborn scipy