1. 程式人生 > >python 環境部署:

python 環境部署:

hdf net nvl ++ pat lcx https fst env

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 環境部署: