【发布时间】:2020-06-20 21:14:48
【问题描述】:
我正在使用 Anaconda:Jupyter Notebook。我正在尝试安装 feature_selector。起初,我运行:
from feature_selector import FeatureSelector。但是,它显示“没有名为 feature_selector 的模块”,所以我运行了 pip install feature_selector,但它没有成功安装。我收到以下大错误:
ERROR: Complete output from command python setup.py egg_info:
ERROR: ============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [2.1.2]
python: yes [3.7.3 (default, Apr 24 2019, 15:29:51) [MSC
v.1915 64 bit (AMD64)]]
platform: yes [win32]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.16.4]
six: yes [using six version 1.12.0]
dateutil: yes [using dateutil version 2.8.0]
backports.functools_lru_cache: yes [Not required]
subprocess32: yes [Not required]
pytz: yes [using pytz version 2019.1]
cycler: yes [using cycler version 0.10.0]
tornado: yes [using tornado version 6.0.3]
pyparsing: yes [using pyparsing version 2.4.0]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: no [The C/C++ header for freetype
(freetype2\ft2build.h) could not be found. You may
need to install the development package.]
png: no [The C/C++ header for png (png.h) could not be
found. You may need to install the development
package.]
qhull: yes [pkg-config information for 'libqhull' could not
be found. Using local copy.]
OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: no [skipping due to configuration]
toolkits_tests: no [skipping due to configuration]
OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt5agg: yes [installing, Qt: 5.9.6, PyQt: 5.9.6; PySide2 not
found]
qt4agg: no [PySide not found; PyQt4 not found]
gtk3agg: no [Requires pygobject to be installed.]
gtk3cairo: no [Requires cairocffi or pycairo to be installed.]
gtkagg: no [Requires pygtk]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: no [cairocffi or pycairo not found]
windowing: yes [installing]
OPTIONAL LATEX DEPENDENCIES
dvipng: no
ghostscript: no
latex: no
pdftops: no
OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]
============================================================================
* The following required packages can not be built:
* freetype, png * Please check http://gnuwin32.sourc
* eforge.net/packages/freetype.htm for instructions
* to install freetype * Please check http://gnuwin32
* .sourceforge.net/packages/libpng.htm for
* instructions to install png
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in
有人知道如何解决这个问题吗?谢谢。
【问题讨论】:
标签: python-3.x compiler-errors installation package feature-selection