I've been trying to use the speech recognition library in a PyCharm virtual environment on Mac, but I need to install PyAudio for it to work.
When I try to install it it gives me this error (this is only the end of the error)
src/pyaudio/device_api.c:9:10: fatal error: 'portaudio.h' file not found
#include "portaudio.h"
^~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for pyaudio
Failed to build pyaudio
ERROR: Could not build wheels for pyaudio which use PEP 517 and cannot be installed directly
The tutorials I have watched have told me to use homebrew but I don't want to install it.
Is there any method to install it without homebrew?
Related
I am trying to install quickfix 1.15.1 (the current latest version available) in MacOS.
OS version is Ventura 15.1. Chip is Apple M2.
Python version is 3.9.6. Clang version is 14.0.0.
But the installation gets failed.
The steps I followed is as follows.
Tried to install using pip3 install quickfix. It was not successful.
Downloaded the source package from pypi and tried to install the package using pip3 install . and pip3 install . --no-binary=:all --user --no-cache-dir. It was not successful.
Cloned the C++ quickfix source code from github and tried to install the library using the commands ./boostrap, ./configure --with-python3 and sudo make install. It was not successful too.
The error I get when trying to install the library in all the above three steps is as follows.
Processing /Users/user/Dependencies/quickfix-1.15.1
Preparing metadata (setup.py) ... done
Building wheels for collected packages: quickfix
Building wheel for quickfix (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─\> \[248 lines of output\]
Testing for std::tr1::shared_ptr...
test_std_tr1_shared_ptr.cpp:1:10: fatal error: 'tr1/memory' file not found
\#include \<tr1/memory\>
^\~\~\~\~\~\~\~\~\~\~\~
1 error generated.
...not found
Testing for std::shared_ptr...
...found
Testing for std::unique_ptr...
...found
C++/AtomicCount.h:163:11: error: unrecognized instruction mnemonic
"lock\n\t"
^
<inline asm>:1:2: note: instantiated into assembly here
lock
^
In file included from C++/DataDictionary.cpp:26:
In file included from C++/DataDictionary.h:30:
In file included from C++/FieldMap.h:30:
In file included from C++/MessageSorters.h:30:
In file included from C++/SharedArray.h:26:
C++/AtomicCount.h:163:18: error: unrecognized instruction mnemonic, did you mean: add, addp, adds, addv, fadd, madd?
"lock\n\t"
^
<inline asm>:2:2: note: instantiated into assembly here
xadd x9, [x8]
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for quickfix
Running setup.py clean for quickfix
Failed to build quickfix
Installing collected packages: quickfix
Running setup.py install for quickfix ... error
error: subprocess-exited-with-error
× Running setup.py install for quickfix did not run successfully.
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
error: command '/usr/bin/clang' 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.
╰─> quickfix
note: This is an issue with the package mentioned above, not pip.
Went through different issue threads and docs, but could not find a solution yet. Found this similar stack overflow post as well. But a solution could not be found there too.
I also installed microsoft c++ 14.... but i really don't know how to get around this
Here is the error:
Fatal error from pip prevented installation. Full pip output in file:
C:\Users\aiatu\.local\pipx\logs\cmd_2022-12-23_22.25.32_pip_errors.log
pip failed to build packages:
bitarray
cytoolz
yarl
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
cytoolz/dicttoolz.c(209): fatal error C1083: Non Š possibile aprire il file inclusione: 'longintrepr.h': No such file or directory
yarl/_quoting_c.c(196): fatal error C1083: Non Š possibile aprire il file inclusione: 'longintrepr.h': No such file or directory
Error installing eth-brownie.
Once again, here answering my own queston.
I had python 3.11.1, i deleted this python version and installed 3.10.9. and then i installed brownie via: pip install eth-brownie
I'm trying to install Flask-SimpleLDAP on a Windows machine so I can use Active Directory for authentication for a Dash app I have created.
I'm following this article - https://towardsdatascience.com/a-simple-way-to-integrate-dash-with-ldap-4d5d059ee3a6
The install is failing when it tries to build the wheel for "python-ldap", with the errors:
Building wheel for python-ldap (setup.py) ... error
ERROR: Command errored out with exit status 1:
C:\Users\canderson\AppData\Local\Temp\pip-install-zixltin3\python-ldap\Modules\common.h(15): fatal error C1083: Cannot open include file: 'lber.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for python-ldap
I tried installing with both pip and pip3 with the same result, using the commands:
pip3 install flask-simpleldap
pip install flask-simpleldap
As a workaround I tried installing python3-ldap which installed no problem though it didn't help with the install of Flask-SimpleLDAP as the original (python-ldp) package is bundled into the install.
Do any of you know of a workaround for this or if there is another more freidnly version of Flask-SimpleLDAP available?
I'm trying to install a package via pip, howver it keeps exiting with
ERROR: Command errored out with exit status 1
then a bunch of running/creating/copying/building in red then:
ERROR: Failed building wheel for word
basicallly it fails to build and install the package and I cannot for the life of my figure out why.
OpenSUSE Leap 42.1, python 2.7.9, pip 8.1.2
I wanna install Tushare, but the terminal told me there was no lxml. Then I use sudo zypper in libxml2 first,but when I want to install "lxml" with lxml-3.6.1.tar.gz downloaded from the official website. It returns:
compilation terminated.
Compile failed: command 'gcc' failed with exit status 1
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitVXdVTQ.c -o tmp/xmlXPathInitVXdVTQ.o
/tmp/xmlXPathInitVXdVTQ.c:1:26: fatal error: libxml/xpath.h: no such files or directory
#include "libxml/xpath.h"
^
compilation terminated.
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
error: command 'gcc' failed with exit status 1
I've installed 'gcc' before. Then How can I deal with this problem?
And How should I find the keys to such problems in the future?
Thanks a lot
You need to install the development library, most likely called libxml2-dev or libxml2-devel in order to compile against the required header (.h) files.