-
Notifications
You must be signed in to change notification settings - Fork 171
Windows 10 install error #104
Description
I got the following error when I tried to install sacrebleu in windows 10. I have also installed Microsoft Visual C++ 14.0. I'd appreciate if anybody could help me with this.
I'm using,
-
Python 3.6
-
Anaconda3 v4.8.3
Error message :
(myenv) PS C:\Users\math2> pip install sacrebleu
Collecting sacrebleu
Using cached sacrebleu-1.4.12-py3-none-any.whl (54 kB)
Collecting mecab-python3==0.996.5
Using cached mecab-python3-0.996.5.tar.gz (65 kB)
Requirement already satisfied: portalocker in c:\users\math2\anaconda3\envs\myenv\lib\site-packages (from sacrebleu) (1.7.1)
Requirement already satisfied: pywin32!=226; platform_system == "Windows" in c:\users\math2\anaconda3\envs\myenv\lib\site-packages (from portalocker->sacrebleu) (228)
Building wheels for collected packages: mecab-python3
Building wheel for mecab-python3 (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\math2\Anaconda3\envs\myenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\math2\AppData\Local\Temp\pip-install-9vlm5lwy\mecab-python3\setup.py'"'"'; file='"'"'C:\Users\math2\AppData\Local\Temp\pip-install-9vlm5lwy\mecab-python3\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\math2\AppData\Local\Temp\pip-wheel-tn46t4hy'
cwd: C:\Users\math2\AppData\Local\Temp\pip-install-9vlm5lwy\mecab-python3
Complete output (9 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\MeCab
copying src\MeCab_init_.py -> build\lib.win-amd64-3.6\MeCab
running build_ext
error: [WinError 2] The system cannot find the file specified
ERROR: Failed building wheel for mecab-python3
Running setup.py clean for mecab-python3
Failed to build mecab-python3
Installing collected packages: mecab-python3, sacrebleu
Running setup.py install for mecab-python3 ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\math2\Anaconda3\envs\myenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\math2\AppData\Local\Temp\pip-install-9vlm5lwy\mecab-python3\setup.py'"'"'; file='"'"'C:\Users\math2\AppData\Local\Temp\pip-install-9vlm5lwy\mecab-python3\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\math2\AppData\Local\Temp\pip-record-ep1wley9\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\math2\Anaconda3\envs\myenv\Include\mecab-python3'
cwd: C:\Users\math2\AppData\Local\Temp\pip-install-9vlm5lwy\mecab-python3
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\MeCab
copying src\MeCab_init_.py -> build\lib.win-amd64-3.6\MeCab
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\math2\Anaconda3\envs\myenv\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\math2\AppData\Local\Temp\pip-install-9vlm5lwy\mecab-python3\setup.py'"'"'; file='"'"'C:\Users\math2\AppData\Local\Temp\pip-install-9vlm5lwy\mecab-python3\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\math2\AppData\Local\Temp\pip-record-ep1wley9\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\math2\Anaconda3\envs\myenv\Include\mecab-python3' Check the logs for full command output.