I am trying to install the zebra-0.0.5 package in pycharm on a windows machine. I did have pip and win32 installed. But this error keep showing up. Would someone had similar experience before help?
Thanks!
Could not find a version that satisfies the requirement win32print (from zebra) (from versions: )
No matching distribution found for win32print (from zebra)
The zebra module depends on a module called win32print on Windows for the installation to complete. Since the win32print module is no longer available anywhere it gives you error.
Possible Solution 1:
Switch to linux as it does not require the win32print module on linux
Possible Solution 2:
Install pywin32 / pypiwin32. Install any one of the modules and use it.
Download zebra 0.0.5 source code from
here
Extract it and edit the setup.py file and more specifically the line
23 which says install_requires='pywin32/pypiwin32':
if sys.platform.lower().startswith('win'):
install_requires = 'pywin32/pypiwin32'
else:
install_requires = None
Now, edit the zebra.py file and change all references from win32print
to pywin32/pypiwin32.
NOTE: I haven't tried this solution as I don't have a zebra printer. I hope this would help you.
Related
I'm trying to use win32gui from pywin32 but I keep getting this error:
ModuleNotFoundError: No module named 'win32gui'
I am on windows 10, python 3.9
I have been researching the top results on stack over flow and google for a while now and the solutions i found don't work for me.
things I have tried:
installed pywin32 via a whl file (this shows in site packages along with win32 ect)
double checked both 64bit versions of python and pywin32 are installed
Added pywin32 to Path (worth a try)
tried "from win32 import win32gui"
Any help would be appreciated!
Requested commands with output:
importing win32api and win32com results in the same out of
ModuleNotFoundError: No module named 'win32api'
ModuleNotFoundError: No module named 'win32com'
python -m pip install pywin32
Requirement already satisfied: pywin32 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (304.0)
python -c "import win32gui" -- nothing happens when i run this line in a cmd (maybe i have done something wrong here?)
Solution unknown however it was fixed by simply recreating the virtual environment and installing the pywin32.
I am trying to install mediapipe with pip in Python 3.10 from MacOS Monterey.
(mp_env_3.10_rosetta) ➜ ~ pip3.10 install mediapipe
ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)
ERROR: No matching distribution found for mediapipe
I've even downloaded the wheel files, but they tell me that the platform doesn't match when I try to install them. I have tried this with and without Rosetta (since mediapipe is not supported on the APple M1 chip yet), and with all the wheel files.
(mp_env_3.10_rosetta) ➜ ~ pip3.10 install ~/Downloads/MediaPipe/mediapipe-0.8.10-cp310-cp310-macosx_10_15_x86_64.whl
ERROR: mediapipe-0.8.10-cp310-cp310-macosx_10_15_x86_64.whl is not a supported wheel on this platform.
All my teammates, who have the same laptops with the same OS, doing the same thing as I am doing, are not running into this problem. I am totally puzzled.
My main question here is, is there some way to get debugging info from pip to tell why it doesn't think it can find a match? Can I see if it doesn't know my platform, or OS, or Python version?
I'm getting this type of error when installing the library.
Not for all packages, but only for some. Is it because pip version? or Because of python interpreter?
Plz guide me what should I do.
You don't need to install this package because it's already in the standard library.
Just import time in any Python file.
im trying to install the pyHook package in pycharm but get the error in the title. I have successfully installed it in cmd with pip install pyHook-1.5.1-cp37-cp37m-win_amd64.whl ,but when I go to install it in pycharm I get the aforementioned error :
Collecting pyHook Could not find a version that satisfies the requirement pyHook (from versions: ) No matching distribution found for pyHook
I ran into this problem myself, and after alot of searching, found that although pyhook has wheels for python 3, it's incompatible. Look at the last release date for pyhook: October 10th 2008. Python 3 was released in: December 3rd 2008.
I would suggest that you look into the keyboard module. It supports python 3, and has all of the functions of pyhook as far as I know.
Solved this problem by fixing the package version: PyUserInput==0.1.10
I'm trying to use shapley, and to use it for what I need it for, I have to import "from shapely import geometry" but I get the error OSError: Could not find lib geos_c.dll
I've tried to install "geos" via "pip install geos", didn't do anything: Requirement already satisfied
pip location: C:\Users\skoft\AppData\Local\Programs\Python\Python37-32\Scripts\pip.exe
import shapely
from shapely import geometry
OSError: Could not find lib geos_c.dll or load any of its variants ['C:\\Users\\skoft\\AppData\\Local\\Programs\\Python\\Python37-32\\Library\\lib\\geos_c.dll'].
On python 3.8.5 and windows 10. I meet the same error. Then conda install shapely solved the problem for me.
I got the same error. My import statement (from shapely.geometry import Point) successfully executed after I manually downloaded the geo_c.dll file from https://www.dll-files.com/geos_c.dll.html and placed it in the bin folder "C:\Users....\Anaconda3\Library\bin".
I had the same issue in Python 3.6 with Windows 10 in the Shapely library. I have downloaded the geos_c.dll file online and replaced it in the shapely dll folder that is in environment library. Replacement DLL folder
env\Lib\site-packages\shapely\DLLs
Download Link:
download geos_c.dll online, then put it into your lib address. it works for me
On python 3.6.5. and windows 10, installing GDAL through osgeo4w project and adding C:\OSGeo4W64\bin to the PATH variable solved the problem for me.
In my case, it decided to install Visual C++ for Visual Studio 2015, because debugging the site-packages\shapely\geos.py file I noticed that the dll is being found but not loaded. Finally checking the geos_c.dll file dependencies I saw that it needed MSVCP140.DLL