I have been trying to install the pocketsphinx package
with pip for python3.6.3 on Mac os x 10.6.8 but the package failed to install an I get these errors:
swig/sphinxbase/ad.i:56: Error: Unable to find 'pybuffer.i'
swig/sphinxbase/ad.i:99: Error: Unable to find 'pybuffer.i'
error: command 'swig' failed with exit status 1.
I already have swig installed. I don't know what the problem is or even worst how to solve it. Thank you!.
Related
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
I am trying to install PyFTGL, to display text in my OpenGL project.
I usually install libraries using pip, but
sudo pip3 install PyFTGL
returns the following error:
Could not find a version that satisfies the requirement PyFTGL (from versions:)
No matching distribution found for PyFTGL
I also tried easy_install after reading this wiki, but
sudo easy_install PyFTGL
returns the following error:
error: Could not find suitable distribution for Requirement.parse('PyFTGL')
What am I doing wrong ?
I am using python3.6 on my Macbook OSX Yosemite.
EDIT: after installing dependencies (FTGL, freetype, and boost-python) I still seem to miss a library.
I get the following error message when running the python setup.py install command from the source code directory:
ld: library not found for -lGLU
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang++' failed with exit status 1
Although I can already do this in python: from OpenGL.GLU import *
I am trying to install kenlm for Python with the following command:
pip install https://github.com/kpu/kenlm/archive/master.zip
At that time I found the following error:
error: command 'C:\\Users\\PhyuKhaing\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status2
How can I solve that problem?
I'm getting a strange linker error that I don't completely understand while attempting to install postgresql on OSX.
I've installed Postgres via Brew and now I'm trying to get my Django app up and running. I've added the postgres directory to my path. I'm running OSX Yosemite.
When I run the following command:
pip install psycopg2
I get this error:
ld: illegal text reloc in '_init_psycopg' to '_lobjectType' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1
I'm at a loss where to go from here and my searches for this type of error has lead me no where. Any help would be amazing.
Thanks.
Turns out I had a couple versions of Postgres installed. I had to remove the old one and make sure the pg_config that was found in the PATH was the most recent one. As soon as I made sure the pg_config was the proper one, this error went away.
I am trying to install M2Crypto for python on Mint 12. I have executed `python setup.py build, but the build fails, stating
error: command 'gcc' failed with exit status 1
the preceding 2 lines show that there may be a problem with Python.h:
SWIG/_m2crypto_wrap.c:126:20: fatal error: Python.h: No such file or directory
compilation terminated
If anyone knows what needs to be done to fix this, please let me know.
EDIT
I have attempted to install python-dev, but I get the following error:
The following packages have unmet dependencies:
python-dev: Depends: python (= 2.6.6-2ubuntu1) but 2.7.2-7ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages
It looks that you miss the python-dev package which contains python.h
try following command
$sudo apt-get install python-m2crypto
Compiling on recent Debian, Ubuntu or derivatives like Mint gives an error:
ImportError: /usr/local/lib/python2.7/dist-packages/M2Crypto/__m2crypto.so: undefined symbol: SSLv2_method
Corresponding question and answer here.