Python 3.4 pip install

笑着哭i 提交于 2019-12-11 05:51:33

问题


I am trying to install the xlrd module on my Mac, however when I open IDLE and import the xlrd module, I get the error:

Input Error: No module named xlrd

To install it, I used in my home directory...

sudo pip install xlrd 

... and it is installed successfully.

Note that I have both Python 2.7 and Python 3.4.0 on my computer, in case this is what is causing problems. I want it installed for Python 3.4.0.


回答1:


To avoid conflicts between parallel Python 2 and Python 3 installations, only the versioned pip3 and pip3.4 commands are bootstrapped by default

You can try sudo pip3 install xlrd or sudo pip3.4 install xlrd to use the Python 3.4, see docs here https://docs.python.org/3/whatsnew/3.4.html#bootstrapping-pip-by-default



来源:https://stackoverflow.com/questions/28256510/python-3-4-pip-install

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