远程服务器上个人目录下python路径设置

[work@tj-hadoop-dl33 bert]$ python
Python 3.7.1 (default, Dec 14 2018, 19:28:38)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[work@tj-hadoop-dl33 bert]$ python3
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[work@tj-hadoop-dl33 bert]$ which python
~/zhongchen/anaconda3/bin/python
[work@tj-hadoop-dl33 bert]$ which python3
alias python3='/home/work/anaconda3/bin/python'
~/anaconda3/bin/python
[work@tj-hadoop-dl33 bert]$ export | grep python
[work@tj-hadoop-dl33 bert]$ export | grep PATH
declare -x CLASSPATH=".:/opt/soft/openjdk1.8.0_202/jre/lib:/opt/soft/openjdk1.8.0_202/lib:/opt/soft/openjdk1.8.0_202/lib/tools.jar"
declare -x DYLD_LIBRARY_PATH="/home/work/huchengchun/github/torch/install/lib:/home/work/huchengchun/github/torch/install/lib:"
declare -x LD_LIBRARY_PATH="/home/work/huchengchun/github/torch/install/lib:/opt/soft/jdk/jre/lib/amd64/server:/home/work/huchengchun/github/torch/install/lib::/usr/local/cuda/lib64:/usr/local/cuda/lib64"
declare -x LUA_CPATH="/home/work/huchengchun/github/torch/install/lib/?.so;/home/work/.luarocks/lib/lua/5.1/?.so;/home/work/huchengchun/github/torch/install/lib/lua/5.1/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so"
declare -x LUA_PATH="/home/work/.luarocks/share/lua/5.1/?.lua;/home/work/.luarocks/share/lua/5.1/?/init.lua;/home/work/huchengchun/github/torch/install/share/lua/5.1/?.lua;/home/work/huchengchun/github/torch/install/share/lua/5.1/?/init.lua;./?.lua;/home/work/huchengchun/github/torch/install/share/luajit-2.1.0-beta1/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua"
declare -x PATH="/home/work/zhongchen/anaconda3/bin:/home/work/zhongchen/anaconda3/condabin:/home/work/zhongchen/anaconda3/bin:/home/work/dingshengnan/anaconda3/bin:/home/work/anaconda3/bin:/home/work/huchengchun/github/torch/install/bin:/opt/soft/openjdk1.8.0_202/bin:/usr/local/cuda/bin:/opt/soft/jdk/bin:/home/work/anaconda3/bin:/home/work/huchengchun/github/torch/install/bin:/usr/lib64/qt-3.3/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/work/.local/bin:/home/work/bin"
[work@tj-hadoop-dl33 bert]$ vi ~/.bashrc
[work@tj-hadoop-dl33 bert]$ export PATH=/home/work/anaconda3/bin:/home/work/huchengchun/github/torch/install/bin:/opt/soft/openjdk1.8.0_202/bin:/usr/local/cuda/bin:/opt/soft/jdk/bin:/home/work/anaconda3/bin:/home/work/huchengchun/github/torch/install/bin:/usr/lib64/qt-3.3/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/work/.local/bin:/home/work/bin
[work@tj-hadoop-dl33 bert]$ python
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[work@tj-hadoop-dl33 bert]$ python3
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[work@tj-hadoop-dl33 bert]$ vi ~/.bashrc
[work@tj-hadoop-dl33 bert]$ which python
~/anaconda3/bin/python
[work@tj-hadoop-dl33 bert]$ export | grep PATH
declare -x CLASSPATH=".:/opt/soft/openjdk1.8.0_202/jre/lib:/opt/soft/openjdk1.8.0_202/lib:/opt/soft/openjdk1.8.0_202/lib/tools.jar"
declare -x DYLD_LIBRARY_PATH="/home/work/huchengchun/github/torch/install/lib:/home/work/huchengchun/github/torch/install/lib:"
declare -x LD_LIBRARY_PATH="/home/work/huchengchun/github/torch/install/lib:/opt/soft/jdk/jre/lib/amd64/server:/home/work/huchengchun/github/torch/install/lib::/usr/local/cuda/lib64:/usr/local/cuda/lib64"
declare -x LUA_CPATH="/home/work/huchengchun/github/torch/install/lib/?.so;/home/work/.luarocks/lib/lua/5.1/?.so;/home/work/huchengchun/github/torch/install/lib/lua/5.1/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so"
declare -x LUA_PATH="/home/work/.luarocks/share/lua/5.1/?.lua;/home/work/.luarocks/share/lua/5.1/?/init.lua;/home/work/huchengchun/github/torch/install/share/lua/5.1/?.lua;/home/work/huchengchun/github/torch/install/share/lua/5.1/?/init.lua;./?.lua;/home/work/huchengchun/github/torch/install/share/luajit-2.1.0-beta1/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua"
declare -x PATH="/home/work/anaconda3/bin:/home/work/huchengchun/github/torch/install/bin:/opt/soft/openjdk1.8.0_202/bin:/usr/local/cuda/bin:/opt/soft/jdk/bin:/home/work/anaconda3/bin:/home/work/huchengchun/github/torch/install/bin:/usr/lib64/qt-3.3/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/work/.local/bin:/home/work/bin"
[work@tj-hadoop-dl33 bert]$ vi ~/.bashrc

转载于:https://www.cnblogs.com/dshn/p/11178453.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值