I am trying to run a Python Django project as required version of 2.7 of Python, Django of 1.8 and MySQL 5.7. While installing the MySQL-python of 1.2.5, building the wheel it's breaking and getting the below error:
Building wheel for MySQL-python (setup.py) ... error
ERROR: Command errored out with exit status 1:
error: command 'cc' failed with exit status 1
I link the mysql#5.7, so when I check which mysql_config I am getting /usr/local/opt/mysql#5.7/bin/mysql_config.
I have tried most of the solutions, I have installed MySQL through brew.
I tried installing mysqlclient in virtual env before Django gets installed, but when I tried installing mysqlclient in venv
I am getting the same error.
Building wheel for mysqlclient (setup.py) ... error
ERROR: Command errored out with exit status 1:
error: command 'cc' failed with exit status 1
I am not able to figure what the issue is, since I am new to Python.
Related
I have tried to do a pip3 install ciso8601 on the Windows command prompt (I have Python 3.10 installed) but I can't help hitting this error message :
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Hugo\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\Hugo\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\Hugo\AppData\Local\Temp\tmpfaqzmm6w'
cwd: C:\Users\Hugo\AppData\Local\Temp\pip-install-z81gigrv\ciso8601_18ea0de24a904fcdaeae094cf83a0854
And a bit further after a few lines of code verbose, there's this :
ERROR: Failed building wheel for ciso8601
Failed to build ciso8601
ERROR: Could not build wheels for ciso8601, which is required to install pyproject.toml-based projects
I've looked for solutions online but I only read things about Visual C++ which version 14 is already installed on my computer.
I am trying to install the package python_poppler-qt5, but I've got the following error:
pip install python-poppler-qt5
Collecting python-poppler-qt5
Using cached python-poppler-qt5-21.1.0.tar.gz (28 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /Users/xizg0003/opt/anaconda3/bin/python /Users/xizg0003/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/57/f7xzdhs15v50pw097zyr8c44mxrzqx/T/tmp13hlg21d
cwd: /private/var/folders/57/f7xzdhs15v50pw097zyr8c44mxrzqx/T/pip-install-5gvnukb2/python-poppler-qt5
Complete output (5 lines):
Querying qmake about your Qt installation...
/usr/local/opt/qt/bin/qmake -query
These bindings will be built: Poppler-Qt5.
Generating the Poppler-Qt5 bindings...
_in_process.py: /private/var/folders/57/f7xzdhs15v50pw097zyr8c44mxrzqx/T/pip-build-env-fkuu2mr4/overlay/lib/python3.7/site-packages/PyQt5/bindings/QtCore/QtCore.toml: 'QtCore' was built against ABI v12 but this module is being built against ABI v13
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/xizg0003/opt/anaconda3/bin/python /Users/xizg0003/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/57/f7xzdhs15v50pw097zyr8c44mxrzqx/T/tmp13hlg21d Check the logs for full command output.
So it seems to be a version conflict. Could you help me figure out how to solve this issue?
Installation environment
macOS Catalina v 10.15.4
python v 3.7.6
PyQt5 v 5.15.4
After having unistalled Qt6 and installed Qt5 via homebrew I got the following error:
pip install python-poppler-qt5
Collecting python-poppler-qt5
Using cached python-poppler-qt5-21.1.0.tar.gz (28 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /Users/xizg0003/opt/anaconda3/bin/python /Users/xizg0003/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/57/f7xzdhs15v50pw097zyr8c44mxrzqx/T/tmpnu302c2v
cwd: /private/var/folders/57/f7xzdhs15v50pw097zyr8c44mxrzqx/T/pip-install-_wyb5s0h/python-poppler-qt5
Complete output (6 lines):
Querying qmake about your Qt installation...
/Users/xizg0003/opt/anaconda3/bin/qmake -query
These bindings will be built: Poppler-Qt5.
Generating the Poppler-Qt5 bindings...
_in_process.py: poppler-form.sip:152: ::Poppler::FormFieldChoice::choicesWithExportValues() unsupported function return type - provide %MethodCode and a C++ signature
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/xizg0003/opt/anaconda3/bin/python /Users/xizg0003/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/57/f7xzdhs15v50pw097zyr8c44mxrzqx/T/tmpnu302c2v Check the logs for full command output.
The first error is caused by using a different version with which PyQt5 was compiled, in this case Qt6 was used but PyQt5 was compiled with Qt 5.15.4.
The second error is caused because the code uploaded to pypi has a bug, in this case the solution is to use the code from the project repository and compile it directly:
pip install PyQt-builder sip
git clone https://github.com/frescobaldi/python-poppler-qt5
cd python-poppler-qt5
sip-build
sip-install
Platform: Windows 10 Pro 20H2, Python 3.8.7
I need to install image-match module, but when install is coming to required scikit-image module, i am recieving error:
Running setup.py install for scikit-image ... error
ERROR: Command errored out with exit status 1:
WARNING: The wheel package is not available.
Surfing Internet i found out that scikit-image module wheel for windows is not available. I tried to install scikit-image with binary .whl file. Looks like module installed and i tried to install image-match again. Now i am recieving this:
Building wheel for image-match (setup.py) ... done
Created wheel for image-match: filename=image_match-1.1.2-py3-none-any.whl size=21230 sha256=bb2a55e18dac36ab10056523f66383756fac637eafe4f12d4e12df9a3da3ad8c
Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\70\62\40\3511b893ee0655b25176450c3b0405caf4ded0f44927de3ebe
Building wheel for scikit-image (setup.py) ... error
ERROR: Command errored out with exit status 1:
Partial import of skimage during the build process.
I am not that good in Python, so what am i doing wrong?
Install directly from Github Link for some reason PyPI has an older version of the branch.
Use this Command pip install git+https://github.com/EdjoLabs/image-match
I want to setup manim community repo using poetry. I ran the command "poetry install". I am getting the following error.
Python 3.8.5, Pip 20.2.4
EnvCommandError
Command D:\manim\venv\Scripts\pip.exe install --no-deps file:///C:/Users/abc/AppData/Local/pypoetry/Cache/artifacts/03/ee/1a/ee5da5d7b449da38c4e593ecc6a57342de04222cd7fbe5b126a4e3f
df0/pangocairocffi-0.3.2.tar.gz errored with the following return code 1, and output:
Processing c:\users\abc\appdata\local\pypoetry\cache\artifacts\03\ee\1a\ee5da5d7b449da38c4e593ecc6a57342de04222cd7fbe5b126a4e3fdf0\pangocairocffi-0.3.2.tar.gz
ERROR: Command errored out with exit status 1:
...
...
...
OSError: dlopen() failed to load a library: pango / pango-1 / pango-1.0 / pango-1.0-0
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Use poetry only when you want to contribute to Manim Community itself, or else don't use it.
Now let's, come to the error. What the error, say's is it can't find some shared libraries. According to the docs, it says, you have to install Pango for it to work.
Possibly, you may have missed this step.
https://docs.manim.community/en/latest/installation/win.html#pango-installation
I am trying to install darknetpy using these instructions:
https://pypi.org/project/darknetpy/
however every time I run 'pip install darknetpy' I get:
$ pip install darknetpy
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting darknetpy
Using cached darknetpy-4.1.tar.gz (9.4 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\python27\python.exe' 'c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\paddy\appdata\local\temp\tmp9kl8jm'
cwd: c:\users\paddy\appdata\local\temp\pip-install-eqp5it\darknetpy
Complete output (2 lines):
c:\python27\python.exe: No module named pip
Please install setuptools-rust package
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python27\python.exe' 'c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\paddy\appdata\local\temp\tmp9kl8jm' Check the logs for full command output.
I have installed setuptools-rust but still get the same errors as above.
I am on a Windows 10 laptop and using Git Bash as my emulator. Please help!
Use the following command to install darknetpy successfully:
pip install https://github.com/danielgatis/darknetpy/raw/master/dist/darknetpy-4.2-cp37-cp37m-linux_x86_64.whl