[Tutor] openpyxl module not recognized

Abdur-Rahmaan Janhangeer arj.python at gmail.com
Tue Jan 7 07:11:21 EST 2020


If you used only pip install there's a possibility pip installed it in
another python version

Retry with python -m pip install ...

Then see.

On Tue, 7 Jan 2020, 15:04 Casey McGonigle, <cmcgon at berkeley.edu> wrote:

> Hello,
>
> I'm working on a project using pandas DataFrames that I'd like to export to
> excel. I'm using Mac OS Mojave. I understand the way to do this is through
> the df.to_excel() function, which requires the openpyxl module.
>
> As such, I've installed the module (using pip install openpyxl) -- my
> terminal tells me it was successfully installed and it shows up in my
> finder.
>
> However, when I run the df.to_excel("excel file") function, I get a
> ModuleNotFoundError: No module named 'openpyxl'.
>
> Please advise how to remedy this incongruity
>
> --
> UC Berkeley
> Class of 2021
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>


More information about the Tutor mailing list