dmort27 / epitran

A tool for transcribing orthographic text as IPA (International Phonetic Alphabet)
MIT License
625 stars 120 forks source link

Not able to pip install problem with building Edit Distance #137

Closed lnrbenclayton closed 1 year ago

lnrbenclayton commented 1 year ago

  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\editdistance
      copying editdistance\__init__.py -> build\lib.win-amd64-cpython-310\editdistance
      copying editdistance\_editdistance.h -> build\lib.win-amd64-cpython-310\editdistance
      copying editdistance\def.h -> build\lib.win-amd64-cpython-310\editdistance
      running build_ext
      building 'editdistance.bycython' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": htt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for editdistance
  Running setup.py clean for editdistance
  Building wheel for unicodecsv (setup.py) ... done
  Created wheel for unicodecsv: filename=unicodecsv-0.14.1-py3-none-any.whl size=10746 sha256=3c7a26ccf078e
  Stored in directory: c:\users\*******\appdata\local\pip\cache\wheels\9c\ea\66\8e45247b09052a933eb1a680b
Successfully built unicodecsv
Failed to build editdistance
Installing collected packages: unicodecsv, munkres, regex, PyYAML, marisa-trie, editdistance, panphon, epit
  Running setup.py install for editdistance ... error
  error: subprocess-exited-with-error

  × Running setup.py install for editdistance did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      running install
      C:\Users\*******\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\insta
        warnings.warn(
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\editdistance
      copying editdistance\__init__.py -> build\lib.win-amd64-cpython-310\editdistance
      copying editdistance\_editdistance.h -> build\lib.win-amd64-cpython-310\editdistance
      copying editdistance\def.h -> build\lib.win-amd64-cpython-310\editdistance
      running build_ext
      building 'editdistance.bycython' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": htt
× Encountered error while trying to install package.
╰─> editdistance 
lnrbenclayton commented 1 year ago

This solution helped me.... https://stackoverflow.com/questions/64261546/how-to-solve-error-microsoft-visual-c-14-0-or-greater-is-required-when-inst