ImportError: Missing optional dependency ‘openpyxl’ still doesn’t work after instllation

We Are Going To Discuss About ImportError: Missing optional dependency ‘openpyxl’ still doesn’t work after instllation. So lets Start this Python Article.

ImportError: Missing optional dependency ‘openpyxl’ still doesn’t work after instllation

  1. How to solve ImportError: Missing optional dependency 'openpyxl' still doesn't work after instllation

    for me worked typing the following inside an interactive session:
    import pip pip.main(["install", "openpyxl"])

  2. ImportError: Missing optional dependency 'openpyxl' still doesn't work after instllation

    for me worked typing the following inside an interactive session:
    import pip pip.main(["install", "openpyxl"])

Solution 1

for me worked typing the following inside an interactive session:

import pip
pip.main(["install", "openpyxl"])

Original Author jamesB Of This Content

Solution 2

Deleting venv and creating a new one fixed the issue.

previous venv had all dependencies as base which did not make sense. Maybe error on venv? I am curious to know if anyone knows.

Original Author jamesB Of This Content

Solution 3

What helped in my case: installing an additional optional library

pip install defusedxml

Original Author Holger Nösekabel Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment