I was trying to install the bllipparser for a project and used the command pip install bllipparser in the terminal, but I got the following error.
Installing collected packages: bllipparser
Running setup.py install for bllipparser ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\1000284172\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\setup.py'"'"'; __file__='"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\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'"'"'))' install --record 'C:\Users\1000284172\AppData\Local\Temp\pip-record-dvw0bufb\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\1000284172\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\bllipparser'
cwd: C:\Users\1000284172\AppData\Local\Temp\pip-install-aik213us\bllipparser_736f2d4697234f66883f283f0d23bdcf\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\CharniakParser.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\JohnsonReranker.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\ModelFetcher.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\ParsingShell.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\RerankerFeatureCorpus.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\RerankingParser.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\Utility.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\__init__.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\__main__.py -> build\lib.win-amd64-3.9\bllipparser
running build_ext
building 'bllipparser._CharniakParser' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\1000284172\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\setup.py'"'"'; __file__='"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\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'"'"'))' install --record 'C:\Users\1000284172\AppData\Local\Temp\pip-record-dvw0bufb\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\1000284172\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\bllipparser' Check the logs for full command output.
Is there any issue with the installation method? How do I resolve this?
You are missing a compiler as your error states:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
However, even if you get that fixed, this package is not really compatible with windows, see this github issue. So you are probably better of switching to a different OS or a different package
Related
This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Closed last year.
I am trying to install mod_wsgi so I can run my Django app with Apache.
However when I use pip install mod_wsgi I get the following error:
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\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'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-mwvtbeia\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Admin\AppData\Roaming\Python\Python310\Include\mod-wsgi'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-_w59fztq\mod-wsgi_5a0ae0135da94aadbb09b85297022451\
Complete output (24 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\mod_wsgi
copying src\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi
creating build\lib.win-amd64-3.10\mod_wsgi\server
copying src\server\apxs_config.py -> build\lib.win-amd64-3.10\mod_wsgi\server
copying src\server\environ.py -> build\lib.win-amd64-3.10\mod_wsgi\server
copying src\server\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\server
creating build\lib.win-amd64-3.10\mod_wsgi\server\management
copying src\server\management\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\server\management
creating build\lib.win-amd64-3.10\mod_wsgi\server\management\commands
copying src\server\management\commands\runmodwsgi.py -> build\lib.win-amd64-3.10\mod_wsgi\server\management\commands
copying src\server\management\commands\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\server\management\commands
creating build\lib.win-amd64-3.10\mod_wsgi\docs
copying docs\_build\html\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\docs
creating build\lib.win-amd64-3.10\mod_wsgi\images
copying images\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\images
copying images\snake-whiskey.jpg -> build\lib.win-amd64-3.10\mod_wsgi\images
running build_ext
building 'mod_wsgi.server.mod_wsgi' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\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'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-mwvtbeia\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Admin\AppData\Roaming\Python\Python310\Include\mod-wsgi' Check the logs for full command output.
I have no idea what the issue here could be..
I am trying to install spacy version 2.0.0 it starts downloading, but can not install and give this error.
Found existing installation: cymem 2.0.5
Uninstalling cymem-2.0.5:
Successfully uninstalled cymem-2.0.5
Running setup.py install for cymem ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\taqi\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\TAQI\\AppData\\Local\\Temp\\pip-install-o890sm67\\cymem_134557a3656d414d8545e96d491823df\\setup.py'"'"'; __file__='"'"'C:\\Users\\TAQI\\AppData\\Local\\Temp\\pip-install-o890sm67\\cymem_134557a3656d414d8545e96d491823df\\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'"'"'))' install --record 'C:\Users\TAQI\AppData\Local\Temp\pip-record-oa_pr0r9\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\taqi\appdata\local\programs\python\python39\Include\cymem'
cwd: C:\Users\TAQI\AppData\Local\Temp\pip-install-o890sm67\cymem_134557a3656d414d8545e96d491823df\
Complete output (17 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\cymem
copying cymem\about.py -> build\lib.win-amd64-3.9\cymem
copying cymem\__init__.py -> build\lib.win-amd64-3.9\cymem
package init file 'cymem\tests\__init__.py' not found (or not a regular file)
creating build\lib.win-amd64-3.9\cymem\tests
copying cymem\tests\test_import.py -> build\lib.win-amd64-3.9\cymem\tests
copying cymem\cymem.pyx -> build\lib.win-amd64-3.9\cymem
copying cymem\cymem.pxd -> build\lib.win-amd64-3.9\cymem
copying cymem\__init__.pxd -> build\lib.win-amd64-3.9\cymem
running build_ext
building 'cymem.cymem' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
Rolling back uninstall of cymem
Moving to c:\users\taqi\appdata\local\programs\python\python39\lib\site-packages\cymem-2.0.5.dist-info
from C:\Users\TAQI\AppData\Local\Programs\Python\Python39\Lib\site-packages~ymem-2.0.5.dist-info
Moving to c:\users\taqi\appdata\local\programs\python\python39\lib\site-packages\cymem
from C:\Users\TAQI\AppData\Local\Programs\Python\Python39\Lib\site-packages~ymem
ERROR: Command errored out with exit status 1: 'c:\users\taqi\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\TAQI\AppData\Local\Temp\pip-install-o890sm67\cymem_134557a3656d414d8545e96d491823df\setup.py'"'"'; file='"'"'C:\Users\TAQI\AppData\Local\Temp\pip-install-o890sm67\cymem_134557a3656d414d8545e96d491823df\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'"'"'))' install --record 'C:\Users\TAQI\AppData\Local\Temp\pip-record-oa_pr0r9\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\taqi\appdata\local\programs\python\python39\Include\cymem' Check the logs for full command output.
You're trying to install a version that's fairly old (from 2017) and doesn't have binary wheels for python 3.9 (released in 2020). Actually it doesn't have any binary wheels even for older versions of python, so to install it you'd definitely need a compiler. This is probably not what you want.
If you want spaCy v2 instead of spaCy v3, install like this to get the most recent v2.x release (without having to know the exact version number):
pip install "spacy~=2.0"
This is currently spacy==2.3.7.
Similarly, if you need a specific minor version of v2 like v2.3, you can also use ~= to specify that:
pip install "spacy~=2.3.0"
There are only python 3.9 wheels starting at v2.3.3. Otherwise you'll need to install a compiler as described in the docs: https://spacy.io/usage#source
This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
Installing MS C++ 14.0 for python without Visual Studio
(3 answers)
Closed 1 year ago.
I get an error with my command prompt. I tried pip install notebook from Jupyter, but some errors came. I appreciate anyone who views or answers, thanks for your time!
ERROR: Command errored out with exit status 1:
command: 'c:\users\ali\appdata\local\programs\python\python38-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\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'"'"'))' install --record 'C:\Users\Ali\AppData\Local\Temp\pip-record-brdl12uh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ali\appdata\local\programs\python\python38-32\Include\pywinpty'
cwd: C:\Users\Ali\AppData\Local\Temp\pip-install-1eke7zh0\pywinpty_541aba1e831148ec8ed9409eefc720d1\
Complete output (19 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\winpty
copying winpty\ptyprocess.py -> build\lib.win32-3.8\winpty
copying winpty\winpty_wrapper.py -> build\lib.win32-3.8\winpty
copying winpty\__init__.py -> build\lib.win32-3.8\winpty
creating build\lib.win32-3.8\winpty\tests
copying winpty\tests\test_cywinpty.py -> build\lib.win32-3.8\winpty\tests
copying winpty\tests\test_ptyprocess.py -> build\lib.win32-3.8\winpty\tests
copying winpty\tests\test_winpty_wrapper.py -> build\lib.win32-3.8\winpty\tests
copying winpty\tests\__init__.py -> build\lib.win32-3.8\winpty\tests
creating build\lib.win32-3.8\winpty\_winpty
copying winpty\_winpty\__init__.py -> build\lib.win32-3.8\winpty\_winpty
running build_ext
building 'winpty.cywinpty' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\ali\appdata\local\programs\python\python38-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\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'"'"'))' install --record 'C:\Users\Ali\AppData\Local\Temp\pip-record-brdl12uh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ali\appdata\local\programs\python\python38-32\Include\pywinpty' Check the logs for full command output.
The error message includes:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
So go to https://visualstudio.microsoft.com/downloads/ and install Microsoft Visual C++ Build Tools.
I want to install pyFFTW but pycharm termial shows me some errors like below.
I tried pip install pyFFTW and got messages :
Collecting pyFFTW
Using cached pyFFTW-0.12.0.tar.gz (137 kB)
Requirement already satisfied: numpy<2.0,>=1.10 in c:\flask_server\venv\lib\site-packages (from pyFFTW) (1.21.0)
Building wheels for collected packages: pyFFTW
Building wheel for pyFFTW (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\flask_server\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\\setup.py'"'"'
; __file__='"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'f
rom setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\pc\AppData\Local\Temp\pip-wheel-falexgv8'
cwd: C:\Users\pc\AppData\Local\Temp\pip-install-rg4d72bl\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\
Complete output (25 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\pyfftw
copying pyfftw\config.py -> build\lib.win32-3.8\pyfftw
copying pyfftw\_version.py -> build\lib.win32-3.8\pyfftw
copying pyfftw\__init__.py -> build\lib.win32-3.8\pyfftw
creating build\lib.win32-3.8\pyfftw\builders
copying pyfftw\builders\builders.py -> build\lib.win32-3.8\pyfftw\builders
copying pyfftw\builders\_utils.py -> build\lib.win32-3.8\pyfftw\builders
copying pyfftw\builders\__init__.py -> build\lib.win32-3.8\pyfftw\builders
creating build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\cache.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\dask_fft.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\numpy_fft.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\scipy_fft.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\scipy_fftpack.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\_utils.py -> build\lib.win32-3.8\pyfftw\interfaces
copying pyfftw\interfaces\__init__.py -> build\lib.win32-3.8\pyfftw\interfaces
UPDATING build\lib.win32-3.8\pyfftw/_version.py
set build\lib.win32-3.8\pyfftw/_version.py to '0.12.0'
running build_ext
error: Could not find any of the FFTW libraries
----------------------------------------
ERROR: Failed building wheel for pyFFTW
Running setup.py clean for pyFFTW
Failed to build pyFFTW
Installing collected packages: pyFFTW
Running setup.py install for pyFFTW ... error
ERROR: Command errored out with exit status 1:
command: 'c:\flask_server\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\\setup.py'"'
"'; __file__='"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\\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'"'"'))' install --record 'C:\Users\pc\AppData\Local\Temp\pip-record-zstugs1k\install-re
cord.txt' --single-version-externally-managed --compile --install-headers 'c:\flask_server\venv\include\site\python3.8\pyFFTW'
cwd: C:\Users\pc\AppData\Local\Temp\pip-install-rg4d72bl\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\
Complete output (7 lines):
running install
running build
running build_py
UPDATING build\lib.win32-3.8\pyfftw/_version.py
set build\lib.win32-3.8\pyfftw/_version.py to '0.12.0'
running build_ext
error: Could not find any of the FFTW libraries
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\flask_server\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d
4e24b84893cb10e0b2c2\\setup.py'"'"'; __file__='"'"'C:\\Users\\pc\\AppData\\Local\\Temp\\pip-install-rg4d72bl\\pyfftw_08beecb75b3d4e24b84893cb10e0b2c2\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exist
s(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\pc\AppData\Local\Te
mp\pip-record-zstugs1k\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\flask_server\venv\include\site\python3.8\pyFFTW' Check the logs for full command output.
I tried several solutions from google and stackoverflow, such as
pip install wheel
pip install pyFFTW-0.12.0-cp38-cp38-win_amd64.whl
with pyFFTW-0.12.0-cp38-cp38-win_amd64.whl file in current working directory.
but terminal shows me error like ERROR: pyFFTW-0.12.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
I installed numpy, scipy, cython and pytest already.
My python version is 3.8.3 and I don't know why these doesn't work.
Please give me some advice and I appreciate your help.
I am trying to install TA-Lib and everything I try does not work. I do not know what package wheel is and why the error references numpy but I am hoping someone can help me.
What I am using:
Python 3.9.2
pip 21.1.1
PS C:\Users\ebben> pip install TA-Lib
Collecting TA-Lib
Using cached TA-Lib-0.4.19.tar.gz (267 kB)
Requirement already satisfied: numpy in c:\python39\lib\site-packages (from TA-Lib) (1.20.2)
Using legacy 'setup.py install' for TA-Lib, since package 'wheel' is not installed.
Installing collected packages: TA-Lib
Running setup.py install for TA-Lib ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ebben\\AppData\\Local\\Temp\\pip-install-kj0oo9o5\\ta-lib_40a2fa67a4f04799b16fff76025d88fb\\setup.py'"'"'; __file__='"'"'C:\\Users\\ebben\\AppData\\Local\\Temp\\pip-install-kj0oo9o5\\ta-lib_40a2fa67a4f04799b16fff76025d88fb\\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'"'"'))' install --record 'C:\Users\ebben\AppData\Local\Temp\pip-record-z8tx6fp7\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\TA-Lib'
cwd: C:\Users\ebben\AppData\Local\Temp\pip-install-kj0oo9o5\ta-lib_40a2fa67a4f04799b16fff76025d88fb\
Complete output (20 lines):
C:\Users\ebben\AppData\Local\Temp\pip-install-kj0oo9o5\ta-lib_40a2fa67a4f04799b16fff76025d88fb\setup.py:71: UserWarning: Cannot find ta-lib library, installation may fail.
warnings.warn('Cannot find ta-lib library, installation may fail.')
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\talib
copying talib\abstract.py -> build\lib.win-amd64-3.9\talib
copying talib\deprecated.py -> build\lib.win-amd64-3.9\talib
copying talib\stream.py -> build\lib.win-amd64-3.9\talib
copying talib\test_abstract.py -> build\lib.win-amd64-3.9\talib
copying talib\test_data.py -> build\lib.win-amd64-3.9\talib
copying talib\test_func.py -> build\lib.win-amd64-3.9\talib
copying talib\test_pandas.py -> build\lib.win-amd64-3.9\talib
copying talib\test_stream.py -> build\lib.win-amd64-3.9\talib
copying talib\__init__.py -> build\lib.win-amd64-3.9\talib
running build_ext
building 'talib._ta_lib' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ebben\\AppData\\Local\\Temp\\pip-install-kj0oo9o5\\ta-lib_40a2fa67a4f04799b16fff76025d88fb\\setup.py'"'"'; __file__='"'"'C:\\Users\\ebben\\AppData\\Local\\Temp\\pip-install-kj0oo9o5\\ta-lib_40a2fa67a4f04799b16fff76025d88fb\\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'"'"'))' install --record 'C:\Users\ebben\AppData\Local\Temp\pip-record-z8tx6fp7\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\TA-Lib' Check the logs for full command output.
TA-Lib is a C-library. You're trying to install a python wrapper for it and it can't find C library during installation. Wrapper prints:
setup.py:71: UserWarning: Cannot find ta-lib library, installation may fail.
So, firstly, install the C library binary, then install python wrapper. Check out Dependencies section at https://mrjbq7.github.io/ta-lib/install.html