Python/pip failed installing Matplotlib - python

I have Python 3.8 installed, I was able to install numpy and scipy flawlessly. When I try to install matplotlib I get this output in my command prompt.
building 'matplotlib.ft2font' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DFREETYPE_BUILD_TYPE=system -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -Iextern/agg24-svn/include -IC:\Python38\lib\site-packages\numpy\core\include -IC:\Python38\include -IC:\Python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsrc/checkdep_freetype2.c /Fobuild\temp.win-amd64-3.8\Release\src/checkdep_freetype2.obj
checkdep_freetype2.c
src/checkdep_freetype2.c(1): fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\duket\\AppData\\Local\\Temp\\pip-install-6otudvqg\\matplotlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\duket\\AppData\\Local\\Temp\\pip-install-6otudvqg\\matplotlib\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\duket\AppData\Local\Temp\pip-record-2fr17_ng\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
I have no idea how to fix this, I've updated pip and I have also tried to install from a .whl file but still no dice.
Any help is greatly appreciated.
EDIT: If you want the full command prompt output I made a pastebin with it here: https://pastebin.com/HNXcGrDH

Download the prebuilt lib from Prof. Gohlke and install using pip
https://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib
pip install matplotlib-3.1.1-cp38-cp38-win_amd64.whl

You are missing the freetype library that is a dependecy of matplotlib Take a look at this repo for building the required libraries for matplotlib. Note however that the latest release of matplotlib does only support python 3.7. You might still be able to build from source if you use the latest version from github, but there is no guarantee for its stability, esspecially since there are currently no official tests of matplotlib for python 3.8

Related

I have been trying to install web3 using pip but facing the following error:

Building wheel for lru-dict (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\WINDOWS 10\\AppData\\Local\\Temp\\pip-install-c5grxj8l\\lru-dict_eedc47faae9c4988bae8bb2b23e4074c\\setup.py'"'"'; __file__='"'"'C:\\Users\\WINDOWS 10\\AppData\\Local\\Temp\\pip-install-c5grxj8l\\lru-dict_eedc47faae9c4988bae8bb2b23e4074c\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\WINDOWS 10\AppData\Local\Temp\pip-wheel-bp7uaxvk'
cwd: C:\Users\WINDOWS 10\AppData\Local\Temp\pip-install-c5grxj8l\lru-dict_eedc47faae9c4988bae8bb2b23e4074c\
Complete output (13 lines):
running bdist_wheel
running build
running build_ext
creating build
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\anaconda3\include -Ic:\anaconda3\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tclru.c /Fobuild\temp.win-amd64-3.8\Release\lru.obj
lru.c
lru.c(629): warning C4113: 'PyCFunctionWithKeywords' differs in parameter lists from 'PyCFunction'
creating C:\Users\WINDOWS 10\AppData\Local\Temp\pip-install-c5grxj8l\lru-dict_eedc47faae9c4988bae8bb2b23e4074c\build\lib.win-amd64-3.8
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\anaconda3\libs /LIBPATH:c:\anaconda3 /LIBPATH:c:\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" /EXPORT:PyInit_lru build\temp.win-amd64-3.8\Release\lru.obj /OUT:build\lib.win-amd64-3.8\lru.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.8\Release\lru.cp38-win_amd64.lib
LINK : fatal error LNK1181: cannot open input file 'C:\Users\WINDOWS.obj'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\link.exe' failed with exit code 1181
----------------------------------------
ERROR: Failed building wheel for lru-dict
Initially, the error said to install Visual C++ Build Tools > 14.0. I did install that. But now the error is above.
I tried a few of the solutions mentioned in other forums but nothing worked.
you could try $ pip install web3. Link: https://web3py.readthedocs.io/en/stable/quickstart.html
This is old and it doesn't show if the issue was resolved. However, experiencing a similar issue I bumped into your question. This was resolved by following the instructions on installing VC Build Tools using the following command...
vs_buildtools.exe --norestart --passive --downloadThenInstall --includeRecommended --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.MSBuildTools
found at exerror.com
https://exerror.com/error-legacy-install-failure/#:~:text=To%20Solve%20error%3A%20legacy%2Dinstall%2Dfailure%20Then%2C%20Upgrade,gensim%20OR%20pip3%20install%20gensim.

Can't install pyaudio using pip [duplicate]

This question already has answers here:
How do I install PyAudio on Python 3.7?
(9 answers)
Closed 3 years ago.
I tried installing pyaudio using pip but I am getting an error.
C:\Users\divya>pip install pyaudio
Collecting pyaudio
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
Complete output from command "c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\divya\\AppData\\Local\\Temp\\pip-install-5eoc_ykq\\pyaudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\divya\AppData\Local\Temp\pip-record-xhzsi_4l\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
copying src\pyaudio.py -> build\lib.win32-3.7
running build_ext
building '_portaudio' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.7\Release\src/_portaudiomodule.obj
_portaudiomodule.c
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.22.27905\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\divya\\AppData\\Local\\Temp\\pip-install-5eoc_ykq\\pyaudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\divya\AppData\Local\Temp\pip-record-xhzsi_4l\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\divya\AppData\Local\Temp\pip-install-5eoc_ykq\pyaudio\
please see this error and help me out I am getting similar error while installing pyGTK too. I tried upgrading pip too but nothing worked for me.
There is no prebuilt package for Python 3.7 on Windows (you have a 32 bit version probably) so you need to prepare build environment on your PC to use this package. Easier would be finding the wheel for 3.7 as some packages are quite hard to build on Windows.
You can find your wheel here
Check your python version and download your correct wheel
after that you can type to install:
pip install <yourwheel.whl>

I am not able to install pyaudio in my machine , having python version 3.7 after intalling the microsoft visual c++ 14.0.?

i have installed the visual studio 2019 build tool , c++. Still i am having the problem in my cmd prompt, shown below.
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
ERROR: Complete output from command 'c:\users\nisith saha\appdata\local\programs\python\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\NISITH~1\\AppData\\Local\\Temp\\pip-install-p2pi0hy3\\pyaudio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\NISITH~1\AppData\Local\Temp\pip-record-7qtci57w\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying src\pyaudio.py -> build\lib.win-amd64-3.7
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DMS_WIN64=1 "-Ic:\users\nisith saha\appdata\local\programs\python\python37\include" "-Ic:\users\nisith saha\appdata\local\programs\python\python37\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.7\Release\src/_portaudiomodule.obj
_portaudiomodule.c
c:\users\nisith saha\appdata\local\programs\python\python37\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
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.21.27702\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command "'c:\users\nisith saha\appdata\local\programs\python\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\NISITH~1\\AppData\\Local\\Temp\\pip-install-p2pi0hy3\\pyaudio\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\NISITH~1\AppData\Local\Temp\pip-record-7qtci57w\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\NISITH~1\AppData\Local\Temp\pip-install-p2pi0hy3\pyaudio\
You will also need the Portaudio development headers and libraries installed.
Instead of doing that, I think you'll find it easier to get the proper precompiled wheel for Py3.7 from Christoph Gohlke's site over here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
The wheel you'll want should be PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl. I won't hotlink to it since it's expressly discouraged by Gohlke.

Trying to install pyliblo with pip results in error D8021 invalid numeric argument '/Werror-implicit-function-declaration'

I need to install the pyliblo 0.10.0 Python package extension in order to open a project that needs it. When I try installing it running pip install pyliblo, I get an error :
Installing collected packages: pyliblo
Running setup.py install for pyliblo ... error
ERROR: Complete output from command 'c:\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\rapha\\AppData\\Local\\Temp\\pip-install-7yrf4e9p\\pyliblo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\rapha\AppData\Local\Temp\pip-record-wy9ir57j\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_ext
cythoning src/liblo.pyx to src\liblo.c
building 'liblo' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python37\include -Ic:\python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc\liblo.c /Fobuild\temp.win-amd64-3.7\Release\src\liblo.obj -fno-strict-aliasing -Werror-implicit-function-declaration -Wfatal-errors
clÿ: Ligne de commande error D8021ÿ: argument num‚rique non valide '/Werror-implicit-function-declaration'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.20.27508\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command "'c:\python37\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\rapha\\AppData\\Local\\Temp\\pip-install-7yrf4e9p\\pyliblo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\rapha\AppData\Local\Temp\pip-record-wy9ir57j\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\rapha\AppData\Local\Temp\pip-install-7yrf4e9p\pyliblo\
I also tried installing pyliblo 0.10.0 without pip, by downloading the .tar.gz file from their official website, extracting it, and running ./setup.py build but once again that gives me an error, slightly different but it seems the cause is the same as when trying the pip installation :
PS D:\pyliblo-0.10.0> python setup.py build
running build
running build_ext
skipping 'src\liblo.c' Cython extension (up-to-date)
building 'liblo' extension
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python37\include -IC:\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc\liblo.c /Fobuild\temp.win-amd64-3.7\Release\src\liblo.obj -fno-strict-aliasing -Werror-implicit-function-declaration -Wfatal-errors
cl : Ligne de commande error D8021 : argument numérique non valide '/Werror-implicit-function-declaration'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.20.27508\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
I'm running a Win10 64bit environment, and I installed all the dependencies for installing pyliblo:
Python 3.7.3
Cython
liblo 0.30
I think I might need to tell the compiler where to find my installation of liblo, but that is just a wild guess.
Thank you for the help, it's been driving me nuts these past few days.
trying using this command:
pip install pyliblo==0.10.0

Pyfst installation on windows 7 fails

I have been struggling to install Pyfst for days. After resolving the issue with vcvarsall and installing Visual Studio C++ tools, I ran into another issue, for which I cannot find the answer online (for Windows 7). I am trying to install it with PyCharm and I tried for both Python 2.7 and Python 3.5. I get this error:
Collecting pyfst
Using cached pyfst-0.2.3.tar.gz
Installing collected packages: pyfst
Running setup.py install for pyfst: started
Running setup.py install for pyfst: finished with status 'error'
Complete output from command C:\pyth\pythonw.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\...\\AppData\\Local\\Temp\\pycharm-packaging\\pyfst\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\...\AppData\Local\Temp\pip-ykez_6hi-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\fst
copying fst\__init__.py -> build\lib.win-amd64-3.5\fst
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'fst._fst' extension
creating build\temp.win-amd64-3.5
creating build\temp.win-amd64-3.5\Release
creating build\temp.win-amd64-3.5\Release\fst
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\pyth\include -IC:\pyth\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\\winrt" /EHsc /Tpfst/_fst.cpp /Fobuild\temp.win-amd64-3.5\Release\fst/_fst.obj -O2
_fst.cpp
fst/_fst.cpp(321): fatal error C1083: Cannot open include file: 'fst/symbol-table.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\cl.exe' failed with exit status 2
----------------------------------------
Command "C:\pyth\pythonw.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\...\\AppData\\Local\\Temp\\pycharm-packaging\\pyfst\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\...\AppData\Local\Temp\pip-ykez_6hi-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\...\AppData\Local\Temp\pycharm-packaging\pyfst\
Can anyone help?
You might have better luck using the Python bindings that are included in OpenFST 1.5+.
http://www.openfst.org/twiki/bin/view/FST/PythonExtension

Categories