Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install editdistance even with C++ and Win 10 JDK fully installed #52

Open
seatosea opened this issue Mar 11, 2021 · 0 comments

Comments

@seatosea
Copy link

Hi,

I encountered the error message below when I tried to pip install editdistance. I have already installed the latest version Visual Studio C++ as well as the Win 10 JDK.

ERROR: Command errored out with exit status 1:
     command: 'c:\users\htf20\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\htf20\\AppData\\Local\\Temp\\pip-install-rrphb804\\editdistance_2ef0463c234d458eb13902593917ce00\\setup.py'"'"'; __file__='"'"'C:\\Users\\htf20\\AppData\\Local\\Temp\\pip-install-rrphb804\\editdistance_2ef0463c234d458eb13902593917ce00\\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\htf20\AppData\Local\Temp\pip-record-vqpnmuzt\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\htf20\appdata\local\programs\python\python39\Include\editdistance'
         cwd: C:\Users\htf20\AppData\Local\Temp\pip-install-rrphb804\editdistance_2ef0463c234d458eb13902593917ce00\
    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\editdistance
    copying editdistance\__init__.py -> build\lib.win-amd64-3.9\editdistance
    copying editdistance\_editdistance.h -> build\lib.win-amd64-3.9\editdistance
    copying editdistance\def.h -> build\lib.win-amd64-3.9\editdistance
    running build_ext
    building 'editdistance.bycython' extension
    creating build\temp.win-amd64-3.9
    creating build\temp.win-amd64-3.9\Release
    creating build\temp.win-amd64-3.9\Release\editdistance
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./editdistance -Ic:\users\htf20\appdata\local\programs\python\python39\include -Ic:\users\htf20\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include /EHsc /Tpeditdistance/_editdistance.cpp /Fobuild\temp.win-amd64-3.9\Release\editdistance/_editdistance.obj
    _editdistance.cpp
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include\crtdbg.h(12): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\htf20\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\htf20\\AppData\\Local\\Temp\\pip-install-rrphb804\\editdistance_2ef0463c234d458eb13902593917ce00\\setup.py'"'"'; __file__='"'"'C:\\Users\\htf20\\AppData\\Local\\Temp\\pip-install-rrphb804\\editdistance_2ef0463c234d458eb13902593917ce00\\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\htf20\AppData\Local\Temp\pip-record-vqpnmuzt\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\htf20\appdata\local\programs\python\python39\Include\editdistance' Check the logs for full command output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant