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.
Related
I can access it in the terminal but when I try to add it to my python project in PyCharm it won't let me
I have tried with both python 3.10 and 3.9
it also shows this when i ask for details on why it doesn't work
Collecting PyAudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Building wheels for collected packages: PyAudio
Building wheel for PyAudio (setup.py): started
Building wheel for PyAudio (setup.py): finished with status 'error'
Running setup.py clean for PyAudio
Failed to build PyAudio
Installing collected packages: PyAudio
Running setup.py install for PyAudio: started
Running setup.py install for PyAudio: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Lenovo\PycharmProjects\Alexa2\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-bl692lay\\pyaudio_da329c95486d497b95d33a9225fb1595\\setup.py'"'"'; __file__='"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-bl692lay\\pyaudio_da329c95486d497b95d33a9225fb1595\\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\Lenovo\AppData\Local\Temp\pip-wheel-qtpqe2of'
cwd: C:\Users\Lenovo\AppData\Local\Temp\pip-install-bl692lay\pyaudio_da329c95486d497b95d33a9225fb1595\
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_portaudio' 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: Failed building wheel for PyAudio
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Lenovo\PycharmProjects\Alexa2\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-bl692lay\\pyaudio_da329c95486d497b95d33a9225fb1595\\setup.py'"'"'; __file__='"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-bl692lay\\pyaudio_da329c95486d497b95d33a9225fb1595\\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\Lenovo\AppData\Local\Temp\pip-record-p3n5y632\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Lenovo\PycharmProjects\Alexa2\venv\include\site\python3.10\PyAudio'
cwd: C:\Users\Lenovo\AppData\Local\Temp\pip-install-bl692lay\pyaudio_da329c95486d497b95d33a9225fb1595\
Complete output (11 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_portaudio' 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\Lenovo\PycharmProjects\Alexa2\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-bl692lay\\pyaudio_da329c95486d497b95d33a9225fb1595\\setup.py'"'"'; __file__='"'"'C:\\Users\\Lenovo\\AppData\\Local\\Temp\\pip-install-bl692lay\\pyaudio_da329c95486d497b95d33a9225fb1595\\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\Lenovo\AppData\Local\Temp\pip-record-p3n5y632\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Lenovo\PycharmProjects\Alexa2\venv\include\site\python3.10\PyAudio' Check the logs for full command output.
WARNING: You are using pip version 21.1.2; however, version 22.0.3 is available.
You should consider upgrading via the 'C:\Users\Lenovo\PycharmProjects\Alexa2\venv\Scripts\python.exe -m pip install --upgrade pip' command.
edit:
now it says:
Command errored out with exit status 1
rather then the warning about c++ visual tools
The error indicates 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/. You should install this to proceed.
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
I am trying to install OOXML with Python 3.10 using pip install ooxml
First of all, I did create a new virtual environment (after installing virtualenv), then activated it with env\Scripts\activate
but I am getting this error:
(env) PS C:\Users\ahmad\Desktop\XML-DOCX> pip install ooxml
Collecting ooxml
Using cached ooxml-0.2.1.tar.gz (4.3 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: ooxml
Building wheel for ooxml (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\ahmad\Desktop\XML-DOCX\env\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ahmad\\AppData\\Local\\Temp\\pip-install-r6q4bs_b\\ooxml_5b43566139ba4321a491b2ef7c9bdf16\\setup.py'"'"'; __file__='"'"'C:\\Users\\ahmad\\AppData\\Local\\Temp\\pip-install-r6q4bs_b\\ooxml_5b43566139ba4321a491b2ef7c9bdf16\\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\ahmad\AppData\Local\Temp\pip-wheel-cw6u77ak'
cwd: C:\Users\ahmad\AppData\Local\Temp\pip-install-r6q4bs_b\ooxml_5b43566139ba4321a491b2ef7c9bdf16\
Complete output (26 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\ooxml
copying ooxml\ooxmlbase.py -> build\lib\ooxml
copying ooxml\spreadsheet.py -> build\lib\ooxml
copying ooxml\__init__.py -> build\lib\ooxml
C:\Users\ahmad\Desktop\XML-DOCX\env\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
installing to build\bdist.win-amd64\wheel
running install
running install_lib
creating build\bdist.win-amd64
creating build\bdist.win-amd64\wheel
creating build\bdist.win-amd64\wheel\ooxml
copying build\lib\ooxml\ooxmlbase.py -> build\bdist.win-amd64\wheel\.\ooxml
copying build\lib\ooxml\spreadsheet.py -> build\bdist.win-amd64\wheel\.\ooxml
copying build\lib\ooxml\__init__.py -> build\bdist.win-amd64\wheel\.\ooxml
running install_data
creating build\bdist.win-amd64\wheel\ooxml-0.2.1.data
creating build\bdist.win-amd64\wheel\ooxml-0.2.1.data\data
creating build\bdist.win-amd64\wheel\ooxml-0.2.1.data\data\ooxml
creating build\bdist.win-amd64\wheel\ooxml-0.2.1.data\data\ooxml\ooxml-templates
error: can't copy 'ooxml\ooxml-templates\workbook.xlsx': doesn't exist or not a regular file
----------------------------------------
ERROR: Failed building wheel for ooxml
Running setup.py clean for ooxml
Failed to build ooxml
Installing collected packages: ooxml
Running setup.py install for ooxml ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\ahmad\Desktop\XML-DOCX\env\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ahmad\\AppData\\Local\\Temp\\pip-install-r6q4bs_b\\ooxml_5b43566139ba4321a491b2ef7c9bdf16\\setup.py'"'"'; __file__='"'"'C:\\Users\\ahmad\\AppData\\Local\\Temp\\pip-install-r6q4bs_b\\ooxml_5b43566139ba4321a491b2ef7c9bdf16\\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\ahmad\AppData\Local\Temp\pip-record-44ixgoxr\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\ahmad\Desktop\XML-DOCX\env\include\site\python3.10\ooxml'
cwd: C:\Users\ahmad\AppData\Local\Temp\pip-install-r6q4bs_b\ooxml_5b43566139ba4321a491b2ef7c9bdf16\
Complete output (16 lines):
running install
C:\Users\ahmad\Desktop\XML-DOCX\env\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib
creating build\lib\ooxml
copying ooxml\ooxmlbase.py -> build\lib\ooxml
copying ooxml\spreadsheet.py -> build\lib\ooxml
copying ooxml\__init__.py -> build\lib\ooxml
running install_lib
running install_data
creating C:\Users\ahmad\Desktop\XML-DOCX\env\ooxml
creating C:\Users\ahmad\Desktop\XML-DOCX\env\ooxml\ooxml-templates
error: can't copy 'ooxml\ooxml-templates\workbook.xlsx': doesn't exist or not a regular file
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\ahmad\Desktop\XML-DOCX\env\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ahmad\\AppData\\Local\\Temp\\pip-install-r6q4bs_b\\ooxml_5b43566139ba4321a491b2ef7c9bdf16\\setup.py'"'"'; __file__='"'"'C:\\Users\\ahmad\\AppData\\Local\\Temp\\pip-install-r6q4bs_b\\ooxml_5b43566139ba4321a491b2ef7c9bdf16\\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\ahmad\AppData\Local\Temp\pip-record-44ixgoxr\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\ahmad\Desktop\XML-DOCX\env\include\site\python3.10\ooxml' Check the logs for full command output.
I could not locate logs to determine where the installation is failing, any help?
The subdirectory ooxml\ooxml-templates\ is missing from ooxml-0.2.1.tar.gz. This is a bug in the distribution package.
Try to install from the Github repository:
pip install git+https://github.com/wensheng/PyOOXML.git
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
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