码迷,mamicode.com
首页 > 编程语言 > 详细

python 环境部署:

时间:2017-09-08 00:18:20      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:apt   env   inux   div   soa   机器   taf   efi   display   

 python 环境部署:

清华大学开源软件镜像站 https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/

1.下载conda:wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda2-4.4.0-Linux-x86_64.sh

2.安装:sudo chmod u+x Anaconda2-4.4.0-Linux-x86_64.sh 

./Anaconda2-4.4.0-Linux-x86_64.sh

3.环境配置:~/.bashrc/etc/profile中加入,记得source

# added by Anaconda2 4.4.0 installer
export PATH="/home/q/software/python2/bin:$PATH"

4.加入 Anaconda 仓库的镜像

conda
config --add channels
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda
config --set show_channel_urls yes
5.查看是否安装成功
python –version

技术分享
6.通过pip安装其他依赖环境
7.把本地代码打包,上传到机器上,直接打tar包就可以。在机器上解压,运行就可以

python 环境部署:

标签:apt   env   inux   div   soa   机器   taf   efi   display   

原文地址:http://www.cnblogs.com/oraser/p/7492251.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!