Data Analysis with Python Projects - Medical Data Visualizer

Tell us what’s happening:
Pandas will not import.

I get this error:

" python main.py
Traceback (most recent call last):
  File "main.py", line 2, in <module>
    import medical_data_visualizer
  File "/home/runner/boilerplate-medical-data-visualizer/medical_data_visualizer.py", line 1, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'
exit status 1"

Your code so far
import pandas as pd (the original code that was already there)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Challenge: Data Analysis with Python Projects - Medical Data Visualizer

Link to the challenge:

There’s been several of these threads of late. pandas is not installed, so the project can’t run as python can’t find it since it’s not there. Try the solutions mentioned in any of those thread, most of which involve setting python = ">=3.8" in pyproject.toml uninstalling and reinstalling the dependencies with the repl.it package tool.

If that doesn’t work, you’ll have to post a link to your repl.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.