How can I correct my Python/pip configuration on OS X 10.8?

只愿长相守 提交于 2019-12-06 12:25:00

Your pip command is installed for a different python (one installed in /usr/local/bin. You'll find that for /usr/local/bin/python the import works.

You need to install pip seperately for your other python (the one in /Library/Frameworks/Python.framework/Versions/2.7/bin/python) to have lxml installed for that python version.

Use /Library/Frameworks/Python.framework/Versions/2.7/pip to ensure the correct pip command is used to install lxml once pip has been installed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!