将weka包安装到python3时出现问题

2024-10-04 05:26:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我在通过pip install python-weka-wrapper3安装weka时遇到问题。(解决方案here对我不起作用)。你知道吗

尝试运行上述命令时出现此错误:

Command "c:\users\nujou\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Nujou\\AppData\\Local\\Temp\\pip-build-ctvavwi1\\javabridge\\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\Nujou\AppData\Local\Temp\pip-cdmf95_m-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Nujou\AppData\Local\Temp\pip-build-ctvavwi1\javabridge\

编辑: 问题是:

"error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": visualstudio.microsoft.com/downloads" 
因此,通过下载微软Visual C++的生成工具,解决了这一问题。你知道吗


Tags: installpipbuildlocalcoderecordusersappdata