Data Analysis with Python Projects - Medical Data Visualizer

Tell us what’s happening:

Describe your issue in detail here.
Hi there,
I finished my code for this project in vs code, compared the outcome to the expected pictures and was confident enough to copy the code to replit and start testing it. This procedure was my default way of solving many problems, including the first two projects of the Data Analysis with Python Projects. In replit, the code seems to be executed without any problems, but I get this “error” message:
→ poetry add matplotlib numpy
Using version ^3.8.2 for matplotlib
Using version ^1.26.2 for numpy

Updating dependencies
Resolving dependencies…

The current project’s Python requirement (>=3.7,<4.0) is not compatible with some of the required packages Python requirement:

  • numpy requires Python >=3.9, so it will not be satisfied for Python >=3.7,<3.9

Because no versions of numpy match >1.26.2,<2.0.0
and numpy (1.26.2) requires Python >=3.9, numpy is forbidden.
So, because root depends on numpy (^1.26.2), version solving failed.

• Check your dependencies Python requirement: The Python requirement can be specified via the python or markers properties

For numpy, a possible solution would be to set the `python` property to ">=3.9,<4.0"

https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
https://python-poetry.org/docs/dependency-specification/#using-environment-markers

exit status 1

Apparently, my numpy version does not seem to be the latest one. Before running the code, I had to type into the shell:
pip install numpy
pip install seaborn
By this procedure, why isn’t the latest version installed?
Thank you very much!

Your code so far

Since the code itself does not seem to be the problem, I will not share it here.

Your browser information:

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

Challenge Information:

Data Analysis with Python Projects - Medical Data Visualizer

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

I am sorry, I think I did edit the template?!

In the Files menu to the side, show hidden files and then delete poetry.lock, pyproject.toml and replit.nix.

1 Like

Thank you very much. This solved the problem.

1 Like

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