Installing a python package/tool by a non root user

前端 未结 2 2111
深忆病人
深忆病人 2021-02-09 17:22

(1) I have to install one python package (HTSeq) but i dont have root privileges.

The package need python 2.4 or latest version. We have python 2.3 on our cluster.

2条回答
  •  旧时难觅i
    2021-02-09 17:58

    1) You have to install setuptools (it is necessary to run setup.py of your HTSeq).

    Download sources tar.gz setuptools-0.6c11.tar.gz, unpack it, and then do the steps like you installed python2.7, but in the folder where you unpacked setuptools sources:

    ./configure --prefix=/home/amit/tools/localpython 
    make 
    make install
    

    2) When you will install setuptools, a easy_install executable will apear in python2.7/scripts/ folder. You can use it to install packages easily:

    /home/amit/tools/localpython/bin/python2.7/scripts/easy_install HTSeq
    

    it will automatically find the package and will download and install it for you along with all dependencies.

提交回复
热议问题