ImportError: No module named 'xlrd'

后端 未结 12 794
孤城傲影
孤城傲影 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 10:03

    I had the same problem. I went to the terminal (Using Linux), and typed

    sudo pip3 install xlrd
    

    Then I imported xlrd in python and used the same code:

    df = pd.read_excel("File.xlsx", "Sheet1")
    print (df)
    

    It worked for me!!

提交回复
热议问题