Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I can't import 'Pandas' to a file while it allows me to import it to another file

I have opened 3 python files, 2 of them do not allow me to do import pandas as pd, while it allows me to do it in another file and it works perfectly in that file.

It tells me "No module named ‘pandas’" in those 2 files, I already installed it using python -m pip install pandas, and pip install pandas, how can I import it without having this issue?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Are you running those 3 files in the same (virtual) environment? Installing pandas into one env does not make it available to a different env. You have to manage packages per environment

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading