Skip to content
← Back to Community
ModuleNotFoundError: No module named 'pandas'
Profile icon
brettstark73

Hi - I get following error immediately after hitting 'run'. How do I fix pls? Is a project/problem from freecodecamp.

thx

Voters
Profile icon
brettstark73
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

try doing pip install pandas. If it still doesn't work, then it's probably not available in repl.it

Profile icon
Coder100

so, in your .replit

# .replit run = "pip install ; python main.py"
Profile icon
Coder100

pip install
add that to your bash

Profile icon
brettstark73

@Coder100 thanks but not sure how/where to add 'bash' sorry - although after many retries - it looks like it is now running.. and I made no changes. Seems a bug on replit.. just was not installing the packages... now did and runs.

Profile icon
TanvirAhmed6

@brettstark73 did you have to install pandas? It seems I am getting permission denied when I do $pip install pandas
Also, if you were able to install, then do you need to install the packages for each notebook in repl.it?