python安装

安装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
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值