New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: ImportError: Missing optional dependency 'openpyxl'. Use pip or conda to install openpyxl. #41715
Comments
Please show Output of |
running from Jupyter notebook
It shows
It has Also pycharm shows the same version too. |
Are you using a different environment for jupyter? |
Looks like you are using different environments |
That's also what I get from my understanding. But I have only one env named
I am initiating the jupyter notebook from that env. How does it change to different env. |
You have two envs, base and the other one. |
I am running the notebook as following in git bash:
Yeah base and the other. But I |
And what is active in Pycharm? can you run pd.show_versions() for both please? |
This is the
It has |
|
Can close here then? |
ok. Thanks for the help but the problem persists. |
Yeah but I don't think this is on the pandas side, isn't it? |
To some extent, I think pandas removal of |
Yeah but you haven‘t installed openpyxl in the env, so nothing we can do about from our side |
@phofl: I was able to replicate a similar error when answering this stack overflow question: https://stackoverflow.com/questions/78154244/unable-to-update-to-latest-openpyxl-version-3-1-or-later-using-anaconda-prompt/78197620#78197620 The issue in this case appears to be that: Note: I was answering the question, because I was having the same problem :) |
I think this is another related thread here: https://discuss.dagster.io/t/16628962/hi-guys-i-have-a-dagster-pipeline-that-will-perform-some-etl |
I am running the following code from Jupyter notebook.
which prints:
['D:\\\\file_index_all.xlsx', 'D:\\\\file_index_all2.xlsx']
ok
But I get the following error.
pandas version:
pd.__version__
1.0.1
Also one other thing I noticed despite having
openpyxl 3.0.7
I can't import it in jupyter notebook but in pycharmshows
3.0.7
The text was updated successfully, but these errors were encountered: