Category : package

I installed plotly using the terminal in VSC with the ‘pip install plotly’ command. So I thought I would be able to import plotly in Jupyter Notebook but it gave me an error like the one below. This is the code I ran import plotly.express as px import numpy as np X=np.array([1,2,3,4,5]) Y=np.array([5,3,1,5,8]) fig=px.line(x=X,y=Y) fig.update_layout(width=500,height=380) ..

Read more

I am getting error when I run python manage.py cities_light here is the complete error Assuming local download is up to date for http://download.geonames.org/export/dump/countryInfo.txt Traceback (most recent call last): File "manage.py", line 30, in <module> execute_from_command_line(sys.argv) File "/home/khalid/Desktop/file whersk/wherks-web/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line utility.execute() File "/home/khalid/Desktop/file whersk/wherks-web/env/lib/python3.8/site-packages/django/core/management/__init__.py", line 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/khalid/Desktop/file whersk/wherks-web/env/lib/python3.8/site-packages/django/core/management/base.py", ..

Read more

Logs: Logs Code snippet- ds_packages = ["numpy", "pandas", "lightgbm", "scikit-learn","catboost","py-xgboost-gpu","statistics"] run_amlcompute.environment.python.conda_dependencies = CondaDependencies.create(conda_packages=ds_packages) I don’t understand the error fully, just the fact that it needs a different version from what’s available. Any suggestions on how to achieve it if that’s the issue here? Source: Python..

Read more