[Tutor] openpyxl module not recognized
Casey McGonigle
cmcgon at berkeley.edu
Tue Jan 7 15:31:34 EST 2020
I've done this -- it gives me the message
Requirement already satisfied: openpyxl in
/anaconda3/lib/python3.7/site-packages (3.0.2)
anything else that could be causing the issue?
On Tue, Jan 7, 2020 at 2:11 AM Abdur-Rahmaan Janhangeer <
arj.python at gmail.com> wrote:
> 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
>>
>
--
UC Berkeley
Class of 2021
More information about the Tutor
mailing list