I try to use the following modules:
win32gui, win32ui, win32con, win32api
First, I tried to install these modules with pip3:
pip3 install <Each module above>
I got the error:
Could not find a version that satisfies the requirement <Each module above> (from version: )
No matching distribution found for <Each module above>
Then I tried the following solution as suggested in many questions as mine:
pip3 install pypiwin32
Then modules have yet to work for me (note that I haven't changed modules name)..
Where am I wrong?
Related
I'm using python 3.9.5, when I tried to install win32clipboard on terminal, it showed me this error:
C:\Users\Admin>pip install win32clipboard
ERROR: Could not find a version that satisfies the requirement win32clipboard (from versions: none)
ERROR: No matching distribution found for win32clipboard
How can I fix it?
You must download pywin32 first as win32clipboard is part of that package.
Do so by running this in your command prompt:
pip install pywin32
Now you can try to install win32clipboard again and import it.
This is the error that I am getting :
import sys
!{sys.executable} -m pip install nturl2path
ERROR: Could not find a version that satisfies the requirement nturl2path (from versions: none)
ERROR: No matching distribution found for nturl2path
nturl2path is a in-built python modules that ships with Python by default. There's no need of installing it, just import it;
import nturl2path
and start working with it.
I'm currently creating a python library and need to use the 'find_namespace_packages' from the 'setuptools' package. However python throwing out the following ImportError message whenever it runs:
ImportError: cannot import name 'find_namespace_packages' from 'setuptools'
However it has no trouble importing the other functions from 'setuptools' like 'setup' and 'find_packages'.
How do I troubleshoot it?
I have uninstalled and reinstalled 'setuptools' multiple times already and updated Spyder and Anaconda.
Also here is a sample of my code:
from setuptools import setup, find_namespace_packages
setup(
name="sample",
version="0.0.1",
packages=find_namespace_packages()
)
I am currently using Python 3.7.5 and setuptools is on version 49.6.0
As mentioned in the question's comments, the solution is to run
pip install -U setuptools
And afterwards retry installing all the packages, e.g.
pip install -e .
I am working on a raspberry pi python project and every time I import a package I get the same error ModuleNotFoundError: No module named ''. for example I am trying to add the ambient_api package
I followed the steps in their set up:
pip install ambient_api
Added the imports at the top of my file:
from ambient_api.ambientapi import AmbientAPI
api = AmbientAPI()
but I am getting the error:
ModuleNotFoundError: No module named 'ambient_api'
This is happening with all the imports I am trying to add and I cant figure out what I am missing.
when I was looking on google I came across __init__.py might be a solution but I am not sure how this works?
edit:
here is what was output when I installed:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: ambient_api in /home/pi/.local/lib/python2.7/site-packages (1.5.2)
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from ambient_api) (2.21.0)
Requirement already satisfied: urllib3 in /usr/lib/python2.7/dist-packages (from ambient_api) (1.24.1)
version in my terminal:
pi#raspberrypi:~/Raspberry-Pi-Greenhouse $ python --version
Python 2.7.16
but it looks like the version in the shell in the ide when I run the program is saying:
Python 3.7.3 (/usr/bin/python3)
As explained by #JaFizz in Pytorch is installed but do not working ubuntu 18.04 it solved by giving an alias and installing correctly to desired python version (there were two pythons installed on the same machine)
First it was necessary to specify the location of the python, example:
alias python=/usr/local/bin/python3.6
Then install it:
python pip install <package name>
I am trying to install a module in Python 3.8 and it's giving me an error message. The module is win32console, and I have pywin32.
The error is the following :
ERROR: Could not find a version that satisfies the requirement
win32console
It's a little bit late but I had this problem too.
You need to install pywin32 first.
Then win32console will be installed too because it's a part of pywin32
(you can use pip install pywin32)