pip install customized include path

前端 未结 3 767
梦如初夏
梦如初夏 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:25

    This was a helpful thread. Just to add on to this, you can also use pip without root if you pass the --user flag at the end:

    pip install --global-option="-I/home/users/abc/include/" mpi4py --user
    

    For example, if you're using python-v2.7, the above command installs the python package to /home/username/.local/lib/python2.7/site-packages

提交回复
热议问题