ImportError: No module named 'xlrd'

后端 未结 12 707
孤城傲影
孤城傲影 2020-12-16 09:29

I am currently using PyCharm with Python version 3.4.3 for this particular project.

This PyCharm previously had Python2.7, and I upgraded to 3.4.3.

I am tryi

12条回答
  •  有刺的猬
    2020-12-16 09:42

    The problem seems to be because of multiple python versions in the system, where requirement might be satisfied for one and not for the other.

    In this case the requirement is satisfied for python2 but not for python3, you need to specify that the download needs to be for python3.

    In reference to the answers mentioned above, what worked for me is

    python3 -m pip install xlrd
    

    specifying python3 rather than pip3 worked for me.

提交回复
热议问题