Data Analysis with Python Projects - Proper Dependency Versions

For some reason the boilerplate for this project won’t run due to inability to resolve dependencies. Trying to run it gives this error:

ModuleNotFoundError: No module named 'pandas'

So the obvious solution is to update pandas; as it turns out, I wound up updating all the modules needed for the project including python itself. But simply trying to update to the latest versions of everything results in this error in the console:

SyntaxError: Non-UTF-8 code starting with '\x89' in file examples/Figure_1.png on line 2, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for details

Also, I can’t find either the above encoding or anything specifying the example images as required anywhere in the replit.

After much head-banging, the only solution I can think of is to ask which versions of each module the project was supposed to run and set them manually in the pyproject.toml file.

So, does somebody know how to properly configure the projects?

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0

Challenge: Data Analysis with Python Projects - Medical Data Visualizer

Link to the challenge:

Not sure what state the replit is in now. To solve the pandas module error type pip install pandas at the Shell command prompt.

If that doesn’t work you may need to reimport this replit from the boilerplate

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