Installing Python 2.7 without root

前端 未结 5 1040
伪装坚强ぢ
伪装坚强ぢ 2020-12-14 04:17

I tried installing Python 2.7 without root on a remote linux machine. I ran the commands

./configure prefix=/  
make install DESTDIR=/xxx/yyy/ 
5条回答
  •  天命终不由人
    2020-12-14 04:48

    I just install python2.7.5 without admin right. I think the command should be:

    ./configure prefix=/xxx/yyy
    make install
    

    and then you should add the path /xxx/yyy/bin in .bashrc as:

    PYTHONPATH=/home/songmeixu/python/bin
    export PATH=$PYTHONPATH:$PATH
    

提交回复
热议问题