13o-bbr-bbq / machine_learning_security

Source code about machine learning and security.
1.96k stars 648 forks source link

Install Requirements #35

Open ampf27 opened 5 years ago

ampf27 commented 5 years ago

Hi

Im trying to install the requirements with pip3 install -r requirements.txt and I manage to install some of them but others don't I get

Complete output from command python setup.py egg_info: IMPORTANT WARNING: pkg-config is not installed. matplotlib may not be able to find some of its dependencies

Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [2.0.2]
                python: yes [3.7.3rc1 (default, Mar 13 2019, 11:01:15)  [GCC
                        8.3.0]]
              platform: yes [linux]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.16.2]
                   six: yes [using six version 1.12.0]
              dateutil: yes [using dateutil version 2.7.3]
           functools32: 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 5.1.1]
             pyparsing: yes [using pyparsing version 2.2.0]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                        could not be found.  You may need to install the
                        development package.]
                   png: no  [pkg-config information for 'libpng' could not
                        be found.]
                 qhull: yes [pkg-config information for 'qhull' 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: no  [PyQt5 not found]
                qt4agg: yes [installing, Qt: 4.8.7, PyQt: 4.8.7; PySide not
                        found]
               gtk3agg: yes [installing, version 3.5.24]
             gtk3cairo: yes [installing, version 3.5.24]
                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: yes [installing, pycairo version 1.16.2]
             windowing: no  [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
                dvipng: no
           ghostscript: yes [version 9.27]
                 latex: yes [version 3.14159265]
               pdftops: yes [version 0.71.0]

OPTIONAL PACKAGE DATA
                  dlls: no  [skipping due to configuration]

============================================================================
                        * The following required packages can not be built:
                        * freetype, png

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-znp_ozre/matplotlib/


I have installed pkgconfig 1.5.1 (pip install pkgconfig), matplotlib 3.1.0 (pip install matplotlib) and panda (pip install pandas) manually

when I tried to run deepexploit it returned me

Traceback (most recent call last): File "DeepExploit.py", line 18, in import pandas as pd ModuleNotFoundError: No module named 'pandas'

How can I bypass this and proceed with the installation? How freetype and png installed and all the other requirements?

Thanks

13o-bbr-bbq commented 5 years ago

Could you try to install requirement packages using wheel? https://www.lfd.uci.edu/~gohlke/pythonlibs/

krzeminski commented 3 years ago

Updating matplotlib version in requirements.txt file solved the problem.

devsan0046 commented 2 years ago

you can update matplotlib>=3.0.3 in place of matplotlib==3.0.3 in requirements.txt file

areslui commented 1 year ago

Updating matplotlib version in requirements.txt file solved the problem. this is the answer..