pip install customized include path

前端 未结 3 763
梦如初夏
梦如初夏 2021-02-07 06:50

I\'m trying to install a library pyleargist. It requires another lib libfftw3 to be manually installed which I\'ve installed. Since I don\'t have the r

3条回答
  •  情歌与酒
    2021-02-07 07:24

    if you dont have root you can get a virtual enviroment no root is needed to get one and your path will be in home

    curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.10.1.tar.gz
    tar xvfz virtualenv-1.10.1.tar.gz
    cd virtualenv-1.10.1.tar.gz
    python virtualenv.py myVE
    

    then your path is set in your home:

    cd myVE/bin
    ./python
    
    >>> import sys
    >>> sys.path
    ['', '/home/foobar/temp/virtualenv-1.10.1/myVE/lib/python33.zip', '/home/foobar/temp/virtualenv-1.10.1/myVE/lib/python3.3', '/home/foobar/temp/virtualenv-1.10.1/myVE/lib/python3.3/plat-linux', '/home/foobar/temp/virtualenv-1.10.1/myVE/lib/python3.3/lib-dynload', '/usr/lib64/python3.3', '/usr/lib/python3.3', '/usr/lib/python3.3/plat-linux', '/home/foobar/temp/virtualenv-1.10.1/myVE/lib/python3.3/site-packages']
    >>> 
    

提交回复
热议问题