Python import libraries like pandas

Importing pandas or some other popular libraries raises the error:
ModuleNotFoundError: No module named ‘pandas’
Trying to install using “sudo pip install pandas” gives the impression the installation worked OK, however, the error does not go away.
I tried to use Jupyter bet the error persists.

How can I use pandas and other popular libraries in my sandbox?

I tried to install again this time I used sudo -H pip3 install pandas and it worked.
I could import the pandas library

Installing Pandas with the command
sudo -H pip3 install pandas
makes pandas available for the current sandbox session only, on the next session I have to reinstall it.
Please make the installed library part of the sandbox so that once installed it will stay there like the files system and other attributes of my sandbox.

Thanks for making your sandboxes available to me!

Rafi

1 Like

Hey Raphael,

Are you using the pandas library for data science? If so, we have a Data Science stack with pandas and other popular libraries, such as numpy, TensorFlow, and sklearn, pre-installed.

Let me know if this helps!

Thanks!
Lorraine

Hi Lorain

Thanks a lot!

It does help.

Rafi

No problem! :slight_smile: happy to help.