gpt4 book ai didi

python-3.x - 在 Jupyter Notebook 中安装 feature_selector 时如何解决 egg_info 错误?

转载 作者:行者123 更新时间:2023-12-03 07:40:25 25 4
gpt4 key购买 nike

我正在使用 Anaconda:Jupyter Notebook。我正在尝试安装 feature_selector。起初,我跑了:
从 feature_selector 导入 FeatureSelector .但是,它显示“没有名为 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

有谁知道如何解决这个问题?谢谢。

最佳答案

https://github.com/WillKoehrsen/feature-selector/issues/9
这应该可以让您安装在任何平台上:

git clone https://github.com/WillKoehrsen/feature-selector.git>  
cd feature-selector>
pip install -e .

关于python-3.x - 在 Jupyter Notebook 中安装 feature_selector 时如何解决 egg_info 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60592800/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com