ashnkumar / sketch-code

Keras model to generate HTML code from hand-drawn website mockups. Implements an image captioning architecture to drawn source images.
5.13k stars 691 forks source link

installation error #26

Open Ratikant01 opened 4 years ago

Ratikant01 commented 4 years ago

Hi,

I am getting below errors while installing this. Can you please help me in fixing this issue.

C:\sketch-code\sketch-code>pip install -r requirements.txt Collecting Keras==2.1.2 Using cached Keras-2.1.2-py2.py3-none-any.whl (304 kB) Collecting tensorflow==2.2.0rc1 Using cached tensorflow-2.2.0rc1-cp38-cp38-win_amd64.whl (459.1 MB) Collecting nltk==3.2.5 Using cached nltk-3.2.5.tar.gz (1.2 MB) Collecting opencv-python==3.4.8.29 Using cached opencv_python-3.4.8.29-cp38-cp38-win_amd64.whl (31.1 MB) Collecting h5py==2.7.1 Using cached h5py-2.7.1.tar.gz (264 kB) Collecting matplotlib==2.0.2 Using cached matplotlib-2.0.2.tar.gz (53.9 MB) ERROR: Command errored out with exit status 1: command: 'c:\users\ratikant\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ratikant\AppData\Local\Temp\pip-install-5g3axj_i\matplotlib\setup.py'"'"'; file='"'"'C:\Users\ratikant\AppData\Local\Temp\pip-install-5g3axj_i\matplotlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ratikant\AppData\Local\Temp\pip-pip-egg-info-vvl3p_rm' cwd: C:\Users\ratikant.sahoo\AppData\Local\Temp\pip-install-5g3axj_i\matplotlib\ Complete output (67 lines):

Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [2.0.2]
                python: yes [3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020,
                        23:03:10) [MSC v.1916 64 bit (AMD64)]]
              platform: yes [win32]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.18.3]
                   six: yes [using six version 1.14.0]
              dateutil: yes [using dateutil version 2.8.1]
           functools32: yes [Not required]
          subprocess32: yes [Not required]
                  pytz: yes [pytz was not found. pip will attempt to install
                        it after matplotlib.]
                cycler: yes [cycler was not found. pip will attempt to
                        install it after matplotlib.]
               tornado: yes [using tornado version 6.0.4]
             pyparsing: yes [pyparsing was not found. It is required for
                        mathtext support. pip/easy_install may attempt to
                        install it after matplotlib.]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: no  [The C/C++ header for freetype (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 '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: 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
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

kaunas163 commented 4 years ago

I installed Python 3.6 (64 bit) and it worked fine. Any larger version (3.7, ...) fails sooner or later. Also there was need for 64 bit version, not 32 bit.

jaysontree commented 7 months ago

maybe downgrade your python version. tensorflow1.4 needs python<=3.6