【问题标题】:How do you resolve egg_info error when installing feature_selector in Jupyter Notebook?在 Jupyter Notebook 中安装 feature_selector 时如何解决 egg_info 错误?
【发布时间】: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


    【解决方案1】:

    https://github.com/WillKoehrsen/feature-selector/issues/9

    这应该可以让你安装在任何平台上:

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

    【讨论】:

    猜你喜欢
    • 2020-08-07
    • 1970-01-01
    • 2021-06-29
    • 1970-01-01
    • 2021-09-06
    • 1970-01-01
    • 2020-07-17
    • 1970-01-01
    • 2020-08-01
    相关资源
    最近更新 更多