Can't load Python modules installed via pip from site-packages directory

后端 未结 5 595
遥遥无期
遥遥无期 2020-11-27 13:19

I am trying to install and use the Evernote module (https://github.com/evernote/evernote-sdk-python) . I ran pip install evernote and it says that the installat

5条回答
  •  孤独总比滥情好
    2020-11-27 13:25

    I figured it out! I added this line:

    export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages

    to my .bash_profile and now I can import modules stored in that directory. Thanks for everyone who answered.

提交回复
热议问题