Data Analysis with Python Projects - Medical Data Visualizer

Tell us what’s happening:
When i run the boiler plate code I still get the module not found error for pandas. I have tried changing the nix file to meet the requirements :

deps = [
    pkgs.python38Full
    pkgs.python38Packages.matplotlib
    pkgs.python38Packages.numpy
    pkgs.python38Packages.pandas
    pkgs.python38Packages.seaborn
  ];

however this did not work. I do not know what else to do to fix this. Any ideas?

Your code so far

https://replit.com/@preeshag/boilerplate-medical-data-visualizer#replit.nix

Your browser information:

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

Challenge: Data Analysis with Python Projects - Medical Data Visualizer

Link to the challenge:

It appears to be a python version problem. If you watch the console output while playing with the packager, it complains about numpy not working with python 3.7. Bumping the python version to 3.8 in your pyproject.toml file solves the problem. poetry was failing to install anything (including pandas) when it failed on the numpy problem.

Unfortunately, that output is swallowed before it can be read when running the project.

1 Like