How to install python package in a specific directory

后端 未结 4 943
猫巷女王i
猫巷女王i 2021-01-24 04:02

I\'m developing a twitter app on google appengine - for that I want to use the Twython library. I tried installing it using pip - but it either installs it in the main python di

4条回答
  •  青春惊慌失措
    2021-01-24 04:50

    You could use gaenv (package manager I built for app engine). It only creates symlinks and follows the pip requirements.txt format. You can install & use like:

    pip install gaenv
    # create requirements.txt -> twython
    pip install -r requirements.txt
    gaenv
    

    This creates symlinks to gaenv_lib/ of all required libraries. Then will ask to add the import statement.

提交回复
热议问题