我正在尝试使用pip install安装scikit 0.19版本。我收到错误消息
File "C:\Users\Anitha Naveen\Anaconda3\lib\site-packages\numpy\distutils\mingw32ccompiler.py", line 58, in __init__
dry_run, force)
File "C:\Users\Anitha Naveen\Anaconda3\lib\distutils\cygwinccompiler.py", line 157, in __init__
self.dll_libraries = get_msvcr()
File "C:\Users\Anitha Naveen\Anaconda3\lib\distutils\cygwinccompiler.py", line 86, in get_msvcr
raise ValueError("Unknown MS Compiler version %s " % msc_ver)
ValueError: Unknown MS Compiler version 1900
[0x7FF91BFB1500] ANOMALY: meaningless REX prefix used
[0x7FF91BFCD5E0] ANOMALY: meaningless REX prefix used
[0x7FF91EDBF580] ANOMALY: use of REX.w is meaningless (default operand size is 64)
[0x7FF91EDDA820] ANOMALY: use of REX.w is meaningless (default operand size is 64)
[0x7FF91FA79E70] ANOMALY: meaningless REX prefix used
----------------------------------------
Rolling back uninstall of scikit-learn
Command ""C:\Users\Anitha Naveen\Anaconda3\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\ANITHA~1\\AppData\\Local\\Temp\\pip-build-fiszbqmt\\scikit-learn\\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\ANITHA~1\AppData\Local\Temp\pip-f52l6cig-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ANITHA~1\AppData\Local\Temp\pip-build-fiszbqmt\scikit-learn\
答案 0 :(得分:0)
请尝试使用sklearn的官方instruction on installation,如果再次出现任何错误,请指定您的python和anaconda的哪个版本!