Getting this error while installing editdistance via pip install editdistance in windows

  package, pip, powershell, python, windows
Collecting editdistance==0.1
  Using cached editdistance-0.1.tar.gz (19 kB)
Building wheels for collected packages: editdistance
  Building wheel for editdistance (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:python38python.exe' -u -c 'import sys, setuptools, tokenize; 

sys.argv[0] = ‘"’"’C:UsersvinayAppDataLocalTemppip-install-lou_mm8peditdistancesetup.py’"’"’; file=’"’"’C:UsersvinayAppDataLocalTemppip-install-lou_mm8peditdistancesetup.py’"’"’;f=getattr(tokenize, ‘"’"’open’"’"’, open)(file);code=f.read().replace(‘"’"’rn’"’"’, ‘"’"’n’"’"’);f.close();exec(compile(code, file, ‘"’"’exec’"’"’))’ bdist_wheel -d ‘C:UsersvinayAppDataLocalTemppip-wheel-7v746z09’
cwd: C:UsersvinayAppDataLocalTemppip-install-lou_mm8peditdistance
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.8
creating buildlib.win-amd64-3.8editdistance
copying editdistance_init_.py -> buildlib.win-amd64-3.8editdistance
copying editdistance_editdistance.h -> buildlib.win-amd64-3.8editdistance
running build_ext
building ‘editdistance.bycython’ extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
—————————————-
ERROR: Failed building wheel for editdistance
Running setup.py clean for editdistance
Failed to build editdistance
Installing collected packages: editdistance
Running setup.py install for editdistance … error
ERROR: Command errored out with exit status 1:
command: ‘c:python38python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’C:UsersvinayAppDataLocalTemppip-install-lou_mm8peditdistancesetup.py’"’"’; file=’"’"’C:UsersvinayAppDataLocalTemppip-install-lou_mm8peditdistancesetup.py’"’"’;f=getattr(tokenize, ‘"’"’open’"’"’, open)(file);code=f.read().replace(‘"’"’rn’"’"’, ‘"’"’n’"’"’);f.close();exec(compile(code, file, ‘"’"’exec’"’"’))’ install –record ‘C:UsersvinayAppDataLocalTemppip-record-qe7bw219install-record.txt’ –single-version-externally-managed –compile –install-headers ‘c:python38Includeeditdistance’
cwd: C:UsersvinayAppDataLocalTemppip-install-lou_mm8peditdistance
Complete output (11 lines):
running install
running build
running build_py
creating build
creating buildlib.win-amd64-3.8
creating buildlib.win-amd64-3.8editdistance
copying editdistance_init_.py -> buildlib.win-amd64-3.8editdistance
copying editdistance_editdistance.h -> buildlib.win-amd64-3.8editdistance
running build_ext
building ‘editdistance.bycython’ 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:python38python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’C:UsersvinayAppDataLocalTemppip-install-lou_mm8peditdistancesetup.py’"’"’; file=’"’"’C:UsersvinayAppDataLocalTemppip-install-lou_mm8peditdistancesetup.py’"’"’;f=getattr(tokenize, ‘"’"’open’"’"’, open)(file);code=f.read().replace(‘"’"’rn’"’"’, ‘"’"’n’"’"’);f.close();exec(compile(code, file, ‘"’"’exec’"’"’))’ install –record ‘C:UsersvinayAppDataLocalTemppip-record-qe7bw219install-record.txt’ –single-version-externally-managed –compile –install-headers ‘c:python38Includeeditdistance’ Check the logs for full command output.

Source: Windows Questions

2 thoughts on - Getting this error while installing editdistance via pip install editdistance in windows

  • Building wheels for collected packages: editdistance
    Building wheel for editdistance (setup.py) … error
    ERROR: Command errored out with exit status 1:
    command: ‘C:\Users\jaggu\anaconda3\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\jaggu\\AppData\\Local\\Temp\\pip-install-17t
    5le2j\\editdistance\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\jaggu\\AppData\\Local\\Temp\\pip-install-17t5le2j\\editdistance\\setup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘
    open'”‘”‘, open)(__file__);code=f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ bdist_wheel -d ‘C:\Users\jagg
    u\AppData\Local\Temp\pip-wheel-x7wx9jz8’
    cwd: C:\Users\jaggu\AppData\Local\Temp\pip-install-17t5le2j\editdistance\
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\editdistance
    copying editdistance\__init__.py -> build\lib.win-amd64-3.8\editdistance
    copying editdistance\_editdistance.h -> build\lib.win-amd64-3.8\editdistance
    copying editdistance\def.h -> build\lib.win-amd64-3.8\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”: https://visualstudio.microsoft.com/visual-cpp-build-tools/
    —————————————-
    ERROR: Failed building wheel for editdistance
    Running setup.py clean for editdistance
    Failed to build editdistance
    Installing collected packages: editdistance
    Running setup.py install for editdistance … error
    ERROR: Command errored out with exit status 1:
    command: ‘C:\Users\jaggu\anaconda3\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\jaggu\\AppData\\Local\\Temp\\pip-install-1
    7t5le2j\\editdistance\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\jaggu\\AppData\\Local\\Temp\\pip-install-17t5le2j\\editdistance\\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\
    jaggu\AppData\Local\Temp\pip-record-qytccdzy\install-record.txt’ –single-version-externally-managed –compile –install-headers ‘C:\Users\jaggu\anaconda3\Include\ed
    itdistance’
    cwd: C:\Users\jaggu\AppData\Local\Temp\pip-install-17t5le2j\editdistance\
    Complete output (12 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\editdistance
    copying editdistance\__init__.py -> build\lib.win-amd64-3.8\editdistance
    copying editdistance\_editdistance.h -> build\lib.win-amd64-3.8\editdistance
    copying editdistance\def.h -> build\lib.win-amd64-3.8\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”: https://visualstudio.microsoft.com/visual-cpp-build-tools/
    —————————————-
    ERROR: Command errored out with exit status 1: ‘C:\Users\jaggu\anaconda3\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\jaggu\\Ap
    pData\\Local\\Temp\\pip-install-17t5le2j\\editdistance\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\jaggu\\AppData\\Local\\Temp\\pip-install-17t5le2j\\editdistance\\setu
    p.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\jaggu\AppData\Local\Temp\pip-record-qytccdzy\install-record.txt’ –single-version-externally-managed –compile –install-headers ‘C:
    \Users\jaggu\anaconda3\Include\editdistance’ Check the logs for full command output.

LEAVE A COMMENT