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

后端 未结 5 586
遥遥无期
遥遥无期 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:32

    /usr/bin/python is the executable for the python that comes with OS X. /usr/local/lib is a location for user-installed programs only, possibly from Python.org or Homebrew. So you're mixing different Python installs, and changing the python path is only a partial workaround for different packages being installed for different installations.

    In order to make sure you use the pip associated with a particular python, you can run python -m pip install , or go look at what the pip on your path is, or is symlinked to.

提交回复
热议问题