Não é possível carregar os módulos Python instalados via pip no diretório site-packages
Estou tentando instalar e usar o módulo Evernote (https://github.com/evernote/evernote-sdk-python) Eu corripip install evernote
e diz que a instalação funcionou.
Posso confirmar que o módulo do evernote existe no/usr/local/lib/python2.7/site-packages
. No entanto, quando tento executarpython -c "import evernote"
Estou tendo o erro a seguir:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named evernote
Este é o conteúdo do meu.bash-profile
:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Setting PATH for Python 3.3
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.3/bin:${PATH}"
export PATH
export PATH=$PATH:/usr/local/bin/
Estou tendo o mesmo problema com outros módulos instalados compip
. Socorro?
EDIT: Eu sou um super novato e não editei isso.bash-profile
Arquivo.
EDITAR:python -c 'import sys; print "\n".join(sys.path)'
Emite o seguinte:
/Library/Python/2.7/site-packages/setuptools-1.3.2-py2.7.egg
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
/Library/Python/2.7/site-packages
EDITAR: Eu parecia ter feito progressos em direção a uma solução adicionandoexport PYTHONPATH=“/usr/local/lib/python2.7/site-packages”
para o meu.bash_profile
Arquivo. No entanto, agora quando corropython -c 'from evernote.api.client import EvernoteClient'
ele tenta importar oauth2, que falha com o mesmo erro. O módulo ouath2 está presente no diretório do módulo.