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) ..
I’ve made a minimal example project to attempt to resolve my module imports issue. The structure is as follows: MyProject/ ├── main.py └── utils/ ├── __init__.py ├── foo.py └── bar.py main.py only contains this code: from utils import foo __init__.py does not contain any code foo.py only contains this code: from bar import Bar bar.py ..
so i am a beginner python programmer when i was trying to do a chatbot as a training but the problem is when i wrote pip install chatterbot in the python shell they give me an syntax error and when i searched on the net and on YOUTUBE .all the videos have the same solution ..
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", ..
I have a requirements.txt: multiprocess nltk boosting statsmodels swifter dask catboost spacy seaborn plotly opencv Notice it doesn’t have versions for each package. For each package, I want to get: the latest version its dependencies How do I do this in Python (not in shell) without downloading or installing any of the packages? Note: I ..
Trying to install Fpylll package on Ubuntu as per the doc: LINK Update the package index: # sudo apt-get update Install python3-fpylll deb package: # sudo apt-get install python3-fpylll I receive a notification: Reading package lists… Building dependency tree… Reading state information… E: Unable to locate package python3-fpylll Source: Python-3x..
I want to make a face and mask detection program for live camera using R but I am not able to find any package that can render live camera footage so that I can apply detection on it just like there is opencv in python. Source: Python..
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..
I can open it or even run with modules like nglview, but extensions like plotly do not work. This problem is not related to the memory as internet says and solutions that I found are working only for windows or don’t work at all. If I try jupyter labextension install plotlywidget I get: Building jupyterlab ..
estoy intentando importar unos módulos en python pero no lo consigo, busque ayuda en internet pero no hay nada. El error que provoca es el siguiente; ImportError: attempted relative import with no known parent package. Este es el árbol de directorio que trabajo. Directory Tree. En exercise.py estoy tratando de importar un modulo que se ..