Here is an image about my problem.I'm totally stuck.
https://ibb.co/hCx74JV
C:\Users\Staj>pip install imgaug
Collecting imgaug
Using cached https://files.pythonhosted.org/packages/17/a9/36de8c0e1ffb2d86f871cac60e5caa910cbbdb5f4741df5ef856c47f4445/imgaug-0.2.9-py2.py3-none-any.whl
Requirement already satisfied: Pillow in e:\python\lib\site-packages (from imgaug) (5.4.1)
Collecting scikit-image>=0.11.0 (from imgaug)
Using cached https://files.pythonhosted.org/packages/79/16/c5a36a03f90d4a246791d4ff1879f1868e1c5db58fac9f03427395c5e2d6/scikit_image-0.15.0-cp37-none-win_amd64.whl
Requirement already satisfied: six in e:\python\lib\site-packages (from imgaug) (1.12.0)
Collecting Shapely (from imgaug)
Using cached https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127abee272cfc483ca89029b73e92e93cdf36e6b/Shapely-1.6.4.post2.tar.gz
ERROR: Command errored out with exit status 1:
command: 'e:\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Staj\\AppData\\Local\\Temp\\pip-install-_wc8sxch\\Shapely\\setup.py'"'"'; __file__='"'"'C:\\Users\\Staj\\AppData\\Local\\Temp\\pip-install-_wc8sxch\\Shapely\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:\Users\Staj\AppData\Local\Temp\pip-install-_wc8sxch\Shapely\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Staj\AppData\Local\Temp\pip-install-_wc8sxch\Shapely\setup.py", line 80, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "C:\Users\Staj\AppData\Local\Temp\pip-install-_wc8sxch\Shapely\shapely\_buildcfg.py", line 200, in <module>
lgeos = CDLL("geos_c.dll")
File "e:\python\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The error is probably due to missing C compiler required for building the dll.
Workaround:
install binaries from https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely
pip install Shapely-1.6.4.post2-cp37-cp37m-win_amd64.whl (In Anaconda env. you can use conda install)
Error rather says it all. The specified module could not be found means that you didn't install some required packages. I guess you're missing Shapely which is a requirement. Follow installation steps from the documentation next time. Or use conda, it's simpler.
Related
This question already has an answer here:
Installing the pypiwin32 module
(1 answer)
Closed 10 months ago.
I have tried installing win32com on python version 3.8.8 using several methods finally settling on
!python -m pip install pypiwin32
However I am getting this error.
Collecting pypiwin32
Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
Downloading pypiwin32-219.zip (4.8 MB)
|████████████████████████████████| 4.8 MB 3.2 MB/s eta 0:00:01
ERROR: Command errored out with exit status 1:
command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-eb1keprl
cwd: /tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-rxlumrt5/pypiwin32_d674fe4e172b4a5ab12b6b8f2aeb2d90/setup.py", line 121
print "Building pywin32", pywin32_version
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Building pywin32", pywin32_version)?
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/2b/ca/5c086c18de8f70222787b3e824e755b68d99272531522e77bb381d4f60c8/pypiwin32-219.zip#sha256=06d478295c89dbdd4187e1ac099bb8eab93c29e298bded4e2fbc77009287fa44 (from https://pypi.org/simple/pypiwin32/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32)
ERROR: No matching distribution found for pywin32>=223
Requesting assistance.
Thanks and Regards,
Yadhunandan
Last time I used win32com I installed the package pywin32, not pypiwin32. I am not sure how well pypiwin32 is maintained, as there is no project description on pypi and it only has 3 Releases, the last being in 2018 (https://pypi.org/project/pypiwin32/).
So maybe try this one:
https://pypi.org/project/pywin32/
I am building a flask project and I want to use MySQL database. I need flask-mysqldb as an ORM for that. So as a good practice, I created a virtual environment, install flask and other dependencies, and then for installing flask-mysqldb, I used pip install flask-mysqldb. This suddenly gives me bunch of errors. At first I realized, I dont have MySQL installed on my system. So even after installing it these errors won't go away. I also tried pip install Flask-MySQLdb don't know how this is different from the first command but same errors.
I tried searching for errors online regarding flask-mysqldb, but most of them relate to some mysql.h file error which doesn't show in my terminal logs.
(env) ck#ck-IdeaPad-Gaming-3-15ARH05:~/projects/opensoft/roomAlloc$ pip install Flask-MySQLdb
Collecting Flask-MySQLdb
Using cached Flask-MySQLdb-0.2.0.tar.gz (2.1 kB)
Requirement already satisfied: Flask>=0.10 in ./env/lib/python3.8/site-packages (from Flask-MySQLdb) (2.0.2)
Collecting mysqlclient
Using cached mysqlclient-2.1.0.tar.gz (87 kB)
ERROR: Command errored out with exit status 1:
command: /home/ck/projects/opensoft/roomAlloc/env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bra67idg/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bra67idg/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-bra67idg/mysqlclient/pip-egg-info
cwd: /tmp/pip-install-bra67idg/mysqlclient/
Complete output (15 lines):
/bin/sh: 1: mysql_config: not found
/bin/sh: 1: mariadb_config: not found
/bin/sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-bra67idg/mysqlclient/setup.py", line 15, in <module>
metadata, options = get_config()
File "/tmp/pip-install-bra67idg/mysqlclient/setup_posix.py", line 70, in get_config
libs = mysql_config("libs")
File "/tmp/pip-install-bra67idg/mysqlclient/setup_posix.py", line 31, in mysql_config
raise OSError("{} not found".format(_mysql_config_path))
OSError: mysql_config not found
mysql_config --version
mariadb_config --version
mysql_config --libs
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Please help me out, you can comment if you need more information.
I had the same error 2 minutes ago and find this command to solve the problem!
sudo apt-get install libmysqlclient-dev
the just try to install again and should work fine.
Credits:
I found this command here (In Spanish):
https://programmerclick.com/article/1483761552/
I installed Python3.9.1 and I am trying to run :
pip install cloudgenix_config or pip3 install cloudgenix_config
I keep getting the attached error:
WARNING: Discarding https://files.pythonhosted.org/packages/49/b2/7c7a103c72c049ba6816f8bb29274b3ba5c0e4952c3e779f363940cad499/clo udgenix_config-1.0.0b2.tar.gz#sha256=5fe3101ab46cd7ca3128f914b9bee4afd0da4954f6db7b7da9de2b01380e4967 (from https://pypi.org/simpl e/cloudgenix-config/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached cloudgenix_config-1.0.0b1.tar.gz (57 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z34o7ve8/cloudgenix -config_6817b103e5384c87b5004a215f801528/setup.py'"'"'; __file__='"'"'/tmp/pip-install-z34o7ve8/cloudgenix-config_6817b103e5384c87 b5004a215f801528/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO( '"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code , __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-_ajoxfg8
cwd: /tmp/pip-install-z34o7ve8/cloudgenix-config_6817b103e5384c87b5004a215f801528/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 23, in <module>
from setuptools.dist import Distribution
File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 34, in <module>
from setuptools import windows_support
File "/usr/lib/python3.9/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/usr/lib/python3.9/ctypes/__init__.py", line 8, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/e2/63/bfcf3223c5b7159779d9515dfe60381199b91cb630705b05d80be4f2d4a5/clo udgenix_config-1.0.0b1.tar.gz#sha256=07439d49951b8f5b9254f6098afa2bcb390109d0b30cd2fd2cfab4505b41091b (from https://pypi.org/simpl e/cloudgenix-config/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement cloudgenix_config (from versions: 1.0.0b1, 1.0.0b2, 1.0.0b3, 1.0.0b 4, 1.0.0b5, 1.0.0b6, 1.1.0b1, 1.2.0b1, 1.2.0b2, 1.2.0b4, 1.3.0b1, 1.3.0b2, 1.3.0b3, 1.4.0b1, 1.4.0b2, 1.4.0b4, 1.4.0b5, 1.5.0b1)
ERROR: No matching distribution found for cloudgenix_config```
From the PyPI page, it looks like this package only supports Python 3.6 through 3.8. That is the most likely reason you're getting this kind of error. If you really need to use it, I suggest installing 3.8 if you don't already have it on your system.
This question already has answers here:
While installing pyttsx3: Command errored out with exit status 1
(4 answers)
Closed 3 years ago.
C:\Windows\system32>pip install pyttsx3
Collecting pyttsx3
Using cached pyttsx3-2.80-py3-none-any.whl (39 kB)
Collecting pyobjc>=2.4
Using cached pyobjc-6.1-py3-none-any.whl (2.9 kB)
Collecting comtypes; "win32" in sys_platform
Using cached comtypes-1.1.7.zip (180 kB)
Collecting pyobjc-framework-AppleScriptObjC==6.1; platform_release >= "10.0"
Downloading pyobjc_framework_AppleScriptObjC-6.1-py2.py3-none-any.whl (3.9 kB)
Collecting pyobjc-framework-CoreWLAN==6.1; platform_release >= "10.0"
Using cached pyobjc-framework-CoreWLAN-6.1.tar.gz (45 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-zecnttcs\\pyobjc-framework-CoreWLAN\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-zecnttcs\\pyobjc-framework-CoreWLAN\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\User\AppData\Local\Temp\pip-install-zecnttcs\pyobjc-framework-CoreWLAN\pip-egg-info'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-zecnttcs\pyobjc-framework-CoreWLAN\
Complete output (15 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\AppData\Local\Temp\pip-install-zecnttcs\pyobjc-framework-CoreWLAN\setup.py", line 27, in <module>
for fn in os.listdir("Modules")
File "C:\Users\User\AppData\Local\Temp\pip-install-zecnttcs\pyobjc-framework-CoreWLAN\pyobjc_setup.py", line 408, in Extension
os_level = get_os_level()
File "C:\Users\User\AppData\Local\Temp\pip-install-zecnttcs\pyobjc-framework-CoreWLAN\pyobjc_setup.py", line 218, in get_os_level
pl = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
File "c:\users\user\appdata\local\programs\python\python37-32\lib\plistlib.py", line 99, in readPlist
with _maybe_open(pathOrFile, 'rb') as fp:
File "c:\users\user\appdata\local\programs\python\python37-32\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "c:\users\user\appdata\local\programs\python\python37-32\lib\plistlib.py", line 82, in _maybe_open
with open(pathOrFile, mode) as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Whenever i try to run pip install pyttsx3 the previous error is shown. I am fully updated with Setuptools and have followed multiple trouble shooting steps. My last step is to post here.
You are using python-3x version there for use this
pip3 install pyttsx3
If you use conda environment install this using anaconda prompt.
conda install -c auto pyttsx
I am trying to import a python module called pattern in my code. However, when I run:
pip install pattern
I get the following output:
Collecting pattern
Using cached
https://files.pythonhosted.org/packages/1e/07/b0e61b6c818ed4b6145fe01d1c341223aa6cfbc3928538ad1f2b890924a3/Pattern-3.6.0.tar.gz
Collecting future (from pattern)
Using cached https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz
Collecting backports.csv (from pattern)
Using cached https://files.pythonhosted.org/packages/8e/26/a6bd68f13e0f38fbb643d6e497fc3462be83a0b6c4d43425c78bb51a7291/backports.csv-1.0.7-py2.py3-none-any.whl
Collecting mysqlclient (from pattern)
Using cached https://files.pythonhosted.org/packages/4d/38/c5f8bac9c50f3042c8f05615f84206f77f03db79781db841898fde1bb284/mysqlclient-1.4.4.tar.gz
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4Proy9/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4Proy9/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-install-4Proy9/mysqlclient/
Complete output (12 lines):
sh: 1: mysql_config: not found
sh: 1: mariadb_config: not found
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-4Proy9/mysqlclient/setup.py", line 16, in <module>
metadata, options = get_config()
File "setup_posix.py", line 61, in get_config
libs = mysql_config("libs")
File "setup_posix.py", line 29, in mysql_config
raise EnvironmentError("%s not found" % (_mysql_config_path,))
EnvironmentError: mysql_config not found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I already have mysql installed and I've tried installing mysqlclient as well. I am not sure what to do!
To build/install mysqlclient you will need mysqlclient libraries and header files. To determine their location mysqlclient needs to call mysql_config script (which was not found).
You need to install mysql client library. (e.g. libmysqlclient-dev). Also make sure that mysql_config script is in your path.