Can’t load Pandas library | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can’t load Pandas library

I have installed pandas in every platform for python, anaconda and when I checked it already says that pandas library has already installed. But when i import it in console or jupyter notebook etc it says no library found and an error shows. Kindly guide me where am i wrong. Thanks

2nd Jan 2019, 4:38 PM
Zarak Shakeel
Zarak Shakeel - avatar
7 Answers
+ 2
So I assume you installed it with 'conda install pandas', right? And still the Jupyter Notebook does not see it?
2nd Jan 2019, 9:54 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
Anaconda lets you view your installed modules in the Navigator app. Could you check if pandas is visible there?
3rd Jan 2019, 7:41 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
For short-term solution if you are short on time for debugging, you might try installing from within the script via Jupyter just to make sure it usea the same path and environment. Here's a link that could help you with it: https://jakevdp.github.io/blog/2017/12/05/installing-JUMP_LINK__&&__python__&&__JUMP_LINK-packages-from-jupyter/
3rd Jan 2019, 7:45 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
Having the same experience on the terminal, the module couldn't be found unless I restarted it. I don't know but maybe the same applies to Anaconda.
3rd Jan 2019, 12:10 PM
Nboumakis
+ 1
Maybe you have multiple versions of python installed and you added python to one of them but try to access it from another? I don't know if this is even possible, just brainstorming...
3rd Jan 2019, 6:19 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Another idea. I use Pycharm as an IDE, and by default it creates a virtual environment (like a sandbox or container) for each python project. Any module I install afterwards, has to be added to each virtual env as well, in Pycharm's config, if I want to use it in my project. I am not familiar with anaconda / jupyter but you could have the same issue?
3rd Jan 2019, 7:18 AM
Tibor Santa
Tibor Santa - avatar
0
yes i have installed conda install pandas
3rd Jan 2019, 6:21 AM
Zarak Shakeel
Zarak Shakeel - avatar