WojciechMula / pyahocorasick

Python module (C extension and plain python) implementing Aho-Corasick algorithm
BSD 3-Clause "New" or "Revised" License
927 stars 122 forks source link

Error installing pyahocorasick through pip and setup.py #129

Closed KennSmithDS closed 2 years ago

KennSmithDS commented 4 years ago

I am getting this error when I run "pip install pyahocorasick"

ERROR: Failed building wheel for pyahocorasick error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

I am getting this error when I clone the repo and run "python setup.py install" from the repo directory:

error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

This is my coding environment:

py37_pyahocorasick_pip_install_issue py37_pyahocorasick_setuppy_install_issue

taraazin commented 3 years ago

@KennSmithDS Could you fix this? I have the same problem.

Dobatymo commented 3 years ago

It builds perfectly with Visual Studio 2017. I haven't any other installed to test.

NeilWP commented 2 years ago

I am using Visual code not studio and I followed the initial help instructions to install the latest build Visual C++ tools from Microsoft. The error persists and the pip install fails

ERROR: Command errored out with exit status 1:

'C:\Users\oejwp\Documents\PythonDev\Crypto\env_Crypto\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\oejwp\AppData\Local\Temp\pip-install-8j_e6fxg\pyahocorasick_313d39c66f264b35a203e476ac580983\setup.py'"'"'; file='"'"'C:\Users\oejwp\AppData\Local\Temp\pip-install-8j_e6fxg\pyahocorasick_313d39c66f264b35a203e476ac580983\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\oejwp\AppData\Local\Temp\pip-record-kwbsyq0k\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\oejwp\Documents\PythonDev\Crypto\env_Crypto\include\site\python3.9\pyahocorasick' Check the logs for full command output.

pombredanne commented 2 years ago

I am preparing a new release and will push wheels for all OSes.

pombredanne commented 2 years ago

Closing now. https://github.com/WojciechMula/pyahocorasick/actions has wheels built on each commit... and 1.4.3 will have these published on PyPI for windows/macos/linux. Thank you all!

NeilWP commented 2 years ago

look forward to this. Many thanks

Neil

On 20 Feb 2022, at 11:49, Philippe Ombredanne @.***> wrote:

 I am preparing a new release and will push wheels for all OSes.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.