Tell us what’s happening:
Same problem as the “medical-data-visualizer” with poetry
"–> poetry add matplotlib
Using version ^3.8.2 for matplotlib
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:
- matplotlib requires Python >=3.9, so it will not be satisfied for Python >=3.7,<3.9
Because no versions of matplotlib match >3.8.2,<4.0.0
and matplotlib (3.8.2) requires Python >=3.9, matplotlib is forbidden.
So, because root depends on matplotlib (^3.8.2), version solving failed.
• Check your dependencies Python requirement: The Python requirement can be specified via the python or markers properties
For matplotlib, 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"
and also “Traceback (most recent call last):
File “/home/runner/boilerplate-page-view-time-series-visualizer/main.py”, line 2, in
import time_series_visualizer
File “/home/runner/boilerplate-page-view-time-series-visualizer/time_series_visualizer.py”, line 1, in
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named ‘matplotlib’”
Your code so far
Just that isn’t working
“import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from pandas.plotting import register_matplotlib_converters”
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Challenge Information:
Data Analysis with Python Projects - Page View Time Series Visualizer