我正在尝试安装用于扩展隔离林算法的eif软件包,但安装失败。我在尝试pip install eif或pip install git + https://github.com/sahandha/eif.git时收到此错误:
如何正确安装该库?
收集git + https://github.com/sahandha/eif.git 将https://github.com/sahandha/eif.git克隆到c:\ users \ iulyd \ appdata \ local \ temp \ pip-req-build-he0z1rvd 运行命令git clone -q https://github.com/sahandha/eif.git'C:\ Users \ iulyd \ AppData \ Local \ Temp \ pip-req-build-he0z1rvd' 已满足要求:d:\ anaconda_install \ lib \ site-packages中的numpy(来自eif == 2.0.2)(1.16.5) 已满足要求:d:\ anaconda_install \ lib \ site-packages中的cython(来自eif == 2.0.2)(0.29.13) 用于收集包裹的建筑轮子:eif
Building wheel for eif (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'D:\Anaconda_install\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\iulyd\\AppData\\Local\\Temp\\pip-req-build-he0z1rvd\\setup.py'"'"'; __file__='"'"'C:\\Users\\iulyd\\AppData\\Local\\Temp\\pip-req-build-he0z1rvd\\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\iulyd\AppData\Local\Temp\pip-wheel-asla68oq' --python-tag cp37
cwd: C:\Users\iulyd\AppData\Local\Temp\pip-req-build-he0z1rvd\
Complete output (21 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying eif_old.py -> build\lib.win-amd64-3.7
copying version.py -> build\lib.win-amd64-3.7
running egg_info
creating eif.egg-info
writing eif.egg-info\PKG-INFO
writing dependency_links to eif.egg-info\dependency_links.txt
writing requirements to eif.egg-info\requires.txt
writing top-level names to eif.egg-info\top_level.txt
writing manifest file 'eif.egg-info\SOURCES.txt'
reading manifest file 'eif.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'eif.egg-info\SOURCES.txt'
running build_ext
cythoning _eif.pyx to _eif.cpp
building 'eif' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for eif
Running setup.py clean for eif
Failed to build eif
Installing collected packages: eif
Running setup.py install for eif ... error
ERROR: Command errored out with exit status 1:
command: 'D:\Anaconda_install\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\iulyd\\AppData\\Local\\Temp\\pip-req-build-he0z1rvd\\setup.py'"'"'; __file__='"'"'C:\\Users\\iulyd\\AppData\\Local\\Temp\\pip-req-build-he0z1rvd\\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\iulyd\AppData\Local\Temp\pip-record-hyzyr_un\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\iulyd\AppData\Local\Temp\pip-req-build-he0z1rvd\
Complete output (19 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying eif_old.py -> build\lib.win-amd64-3.7
copying version.py -> build\lib.win-amd64-3.7
running egg_info
writing eif.egg-info\PKG-INFO
writing dependency_links to eif.egg-info\dependency_links.txt
writing requirements to eif.egg-info\requires.txt
writing top-level names to eif.egg-info\top_level.txt
reading manifest file 'eif.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'eif.egg-info\SOURCES.txt'
running build_ext
skipping '_eif.cpp' Cython extension (up-to-date)
building 'eif' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\Anaconda_install\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\iulyd\\AppData\\Local\\Temp\\pip-req-build-he0z1rvd\\setup.py'"'"'; __file__='"'"'C:\\Users\\iulyd\\AppData\\Local\\Temp\\pip-req-build-he0z1rvd\\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\iulyd\AppData\Local\Temp\pip-record-hyzyr_un\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.