I try for install package reportlab in pycharm and got this error
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX86\\x64\\cl.exe' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
Encountered error while trying to install package.
reportlab
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
When search in SO and other website i got some reference like this but cant solve this problem. I even cant run some command like pip install –upgrade setuptools and pip install –upgrade wheel like in reference
Can someone provide me how to solve this ? i already stuck with this problem from last week
PS : Let me know if you need more detail information
Related
I tried everything. From pip and source code. However it keeps showing error.
| ^~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> mathutils
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I tired with anaconda, with just Python, either pip install or build source package. Nothing is working.
I want to install feathr module, but during installation, I am getting this error( also attached in the screenshot) and I have no idea how to fix this. Please help.
enter image description here
The filename or extension is too long
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> confluent-kafka
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
So I'm following along "Automate the boring stuff" by Al Sweigart. And he uses pyzmail in the book. Naturally I'm going to want to use it too in order to follow along with the book. I've tried every single thing on the internet - and it's just frustrating. Can somebody tell me how to fix this please? I just can't get this damn pyzmail module installed. I've even tried virtual environments. I get this error no matter what, it's like it's destined to be and god wants me to suffer in the cmd prompt and google for 3 hours .
.\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0>pip install pyzmail
Collecting pyzmail
Using cached pyzmail-1.0.3.tar.gz (57 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [2 lines of output]
error in pyzmail setup command: use_2to3 is invalid.
VERSION 1.0.3
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
This is the error. I find it really confusing.
error: metadata-generation-failed
I am not sure that it will work but that's what I found.
setuptools>=58 breaks support for use_2to3 that is why you are facing this error
Consider downgrading the setuptools to version 57.
pip install -I setuptools==57.5.0
That is the latest 57 version.
Also, you may consider not using this library.
UPDATE
As I understood, this package is abandoned and the last release was in May 2014. Downgrading the setuptools will not work. This package fails in setting up an abandoned distribute library.
Link to the same problem and answer.
I was tring to install PyQt5 and a get this error:
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I've tried using brew install pyqt and installing pyqt6 went out just fine. What's wrong.
Ok, I faced this issue with python 3.10.4 and after searching I found two solutions for this problem because this problem not being only with turtle but for other libraries.
#Note: These solutions for downloading any library if you have a problem mentioned above and this problem faced me in windows CMD.
So you could try this way:
pip install <libraryName>==0.0.1
0.0.1 This is the last version of the library so you should find the version of the library that you want to install for this purpose, you can find the version of the library using this command:
pip show module <name_of_the_library>
another solution that could work is using --use-deprecated=backtrack-on-build-failures
Example:
pip install turtle --use-deprecated=backtrack-on-build-failures
Hope to help you.
Currently trying to install PyAudio on my Surface Pro 7, and am getting this error code when I try to use the prompt pip install PyAudio to install it:
ERROR: Command errored out with exit status 1:
src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
Can someone help explain why this won't work, please? Thanks!
Download a wheel file from https://www.lfd.uci.edu/~gohlke/pythonlibs/ and install via pip install wheelfile.whl. Check your python version before downloading.
This issue means that the PyAudio library has a script with an include statement for the portaudio header file. Include statements in C and similar languages are like Import statements in Python. Because the file doesn't exist, the library can't run.
If PyAudio is installed via pip, PortAudio has to be downloaded separately. Here is the official website with instructions to download.
An alternative would be to use Anaconda to install packages for python. Anaconda will automatically install portaudio, or provide a reason why it can't, in which case, you will have to follow the steps on the website linked earlier.
Also, see this SO Question.