package

ImportError: DLL load failed while importing _gdal: The specified module could not be found

ImportError: DLL load failed while importing _gdal: The specified module could not be found Question: I have a python script that previously worked but that now throws the error:ImportError: DLL load failed while importing _gdal: The specified module could not be found. I am trying to upload a shapefile using fiona and originally the message …

Total answers: 2

ModuleNotFoundError despite declairing install_requires in setup.py

ModuleNotFoundError despite declairing install_requires in setup.py Question: I wrote create a package uploaded to PyPI for testing, but I keep getting a ModuleNotFoundError for pandas when I try to import it to a virtual environment. I import pandas in a file in the package and therefore, declared it in setup.py under install_requires = [‘pandas’]. Before …

Total answers: 2

Does it make sense to use Conda + Poetry?

Does it make sense to use Conda + Poetry? Question: Does it make sense to use Conda + Poetry for a Machine Learning project? Allow me to share my (novice) understanding and please correct or enlighten me: As far as I understand, Conda and Poetry have different purposes but are largely redundant: Conda is primarily …

Total answers: 2

How to package a Python project into MSIX package?

How to package a Python project into MSIX package? Question: I currently work on a Python project, which I’d like to upload to the Microsoft Store in the future. As far as I am aware, in order to upload applications to the Microsoft Store, it is necessary that the application will be packed into the …

Total answers: 1

Unable to use matplotlib after installation "no module named 'matplotlib'"

Unable to use matplotlib after installation "no module named 'matplotlib'" Question: I am brand new to Python and am following the tutorial at this link: https://code.visualstudio.com/docs/python/python-tutorial I was able to execute python -m pip install matplotlib However, then when trying to run script: import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 20, …

Total answers: 3

Can't install new packages for Python (Python 3.9.0, Windows 10)

Can't install new packages for Python (Python 3.9.0, Windows 10) Question: In order to upgrade and clean up, I have reset my PC and installed Windows 10. Naturally, I installed Python as I use it frequently. But when I tried to install MatPlotLib using the command "pip install matplotlib", it shows an error message colored …

Total answers: 6

How to instal python packages for Spyder

How to instal Python packages for Spyder Question: I am using the IDE called Spyder for learning Python. I would like to know in how to go about in installing Python packages for Spyder? Asked By: Alan || Source Answers: Spyder is a package too, you can install packages using pip or conda, and spyder …

Total answers: 6

ImportError: cannot import name 'Serial' from 'serial' (unknown location)

ImportError: cannot import name 'Serial' from 'serial' (unknown location) Question: Whenever i execute the code below it gives me following Error: ImportError: cannot import name ‘Serial’ from ‘serial’ (unknown location) Code: from serial import Serial arduinodata = Serial(‘com4’,9600) print("Enter n to ON LED and f to OFF LED") while 1: input_data = raw_input() print ("You …

Total answers: 6

Conda environment: Print licenses of installed packages

Conda environment: Print licenses of installed packages Question: is there an easy way to print the license of each package in a conda environment? conda list nicely lists all packages, however there is no option to get information about the license. On Anaconda the license is shown. I tried to find the licenses in each …

Total answers: 2