No module named 'openpyxl' - Python 3.4 - Ubuntu

前端 未结 7 970
心在旅途
心在旅途 2020-12-16 08:57

I installed openpyxl with

$ pip install openpyxl

when I try the command

from openpyxl import Workbook
<         


        
7条回答
  •  爱一瞬间的悲伤
    2020-12-16 09:59

    I had the same problem solved using instead of pip install :

    sudo apt-get install python-openpyxl
    sudo apt-get install python3-openpyxl
    

    The sudo command also works better for other packages.

提交回复
热议问题