Im trying to install the ‘hunspell’ package for python 3.4 in windows 7 using pip,
but when running this
pip install hunspell
I get the following error message:
LINK : fatal error LNK1181: cannot open input file 'libhunspell.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\link.exe' failed with exit status 1181
I tried to download and compile hunspell myself with Cygwin as was suggested in a similar question i found here:
pip install hunspell: Cannot open include file: 'hunspell.h': No such file or directory
but it didn’t help.
Related
I need to convert a lot of images from PNG to EXR, so I thought python might help.
Trying to install OpenEXR using "pip install OpenEXR", but it's failing:
Cannot open include file: 'io.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 code 2
the file cl.exe is there.
I'm using Python 3 if it matters.
Thanks in advance.
I am trying to install pyaudio module in my terminal for python, and I got this error.
rc/_portaudiomodule.c(29): fatal error C1083: Cannot open include
file: 'portaudio.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe'
failed with exit status 2
Help me please
If you are targeting native Win32 Python, you will need either MinGW (via Cygwin) or Microsoft Visual Studio
pyaudio compilation docs
Try this
pip install pipwin
pipwin install pyaudio
I'm trying to install pyCLD3 on Windows 10 (python 3.8.5):
pip install pycld3 on Windows does not work (as expected, it's mentioned in the README file on their Github).
However, the instructions how to install it from Source are not clear, it only states that I need some prerequisites and gives an unclear reference on how to install one of them (Protobuf), but not the others and not how to proceed to install pyClD3 itself.
I managed to install Protoc using Chocolatey consulting this post, however, I'm not sure if that's how I should have done it and how to proceed next, i.e. what are the Protobuf development headers and where to find libprotoc library - is it the same thing as Protobuf/protoc?
As for g++, I have installed MinGW from here, but also confused what to do with it next.
Here is a snippet of what I get when I try to install pyCLD3 using pip:
Building wheels for collected packages: pycld3
Building wheel for pycld3 (setup.py) ... error
ERROR: Command errored out with exit status 1:
<...>
Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpcld3/pycld3.cpp /Fobuild\temp.win-amd64-3.8\Release\cld3/pycld3.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
pycld3.cpp
C:\Users\me\AppData\Local\Temp\pip-install-1lgq4b5o\pycld3_11fb5b01d9d44711b4031f733ec7f6cc\src\cld_3/protos/feature_extractor.pb.h(10): fatal error C1083: Cannot open include file: 'google/protobuf/port_def.inc': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for pycld3
You may try Msys2. I managed to compile pycld3 in Windows 10 with Python3.7.
In Windows 10's cmd
download pycld3-0.20.tar.gz from https://pypi.org/project/pycld3/#files, untar it and cd to that directory
creatae a Py3.7 virtual environ (py -3.7 -m venv venv). (I dont know whether other Python versions work or not.)
Msys2
install msys2 https://www.msys2.org/
start msys2 (c:\msys64\msys2.exe)
update msys2: do a few pacman -Syuu as necessary
install the toolchain (pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make)
install protoc (pacman -S mingw-w64-x86_64-protobuf, protoc installed by choco didnt work in my experiment but this protoc works)
setup PATH (export PATH=$PATH:/mingw64/bin/)
insert a #include <math.h> line before line 6 of Python.h (e.g C:\Python\Python37\include\Python.h in my case). This fixed the _hypot related errors.
compile and install (go to the directory above, e.g. cd /c/Users/xyz/Downloads/pycld3-0.20/pycld3-0.20 and execute ./venv/Scripts/python.exe setup.py build)
I managed to successfully build pycld3 but was unable to isntall -- got some ValueError: ZIP does not support timestamps before 1980 error when I tried venv/Scripts/python setup.py install.
Please accept my answer if it fixes your 'google/protobuf/port_def.inc': No such file or directory problem:).
I was trying to build a .whl file using python setup.py install --static-link using cygwin but this error appears: error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x64\link.exe' failed with exit status 1120
The files i was trying to build were from here : https://github.com/intxcc/pyaudio_portaudio
I followed the same exact commands using cygwin but i wasn't able to do python setup.py install --static-link.Also the same thing occured weirdly enough when i tried to pip install pyaudio.So i did pipwin install pyaudio and it solved my problems in that moment.But now the error remains with a different command.
Anyone know what could be the issue?Thanks
When I try to install psycopg2, using PIP in a virtual environment, on Windows 8 I get the following error:
c:\python27\include\pyconfig.h(231) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\amd64\\cl.exe' failed with exit status 2
I had previously had this error:
error: Unable to find vcvarsall.bat
So I followed the various answers in this question:
and managed to get rid of
error: Unable to find vcvarsall.bat
but have this new one to contend with
any ideas?
thanks
According to the psycopg website, you're supposed to install it using the Windows port:
http://www.stickpeople.com/projects/python/win-psycopg/
I'm guessing you'll need a version of Visual Studio installed for pip to be able to compile the headers correctly.