python 環境部署:
阿新 • • 發佈:2017-09-08
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 環境部署: