2016-08-21 3 views
0

Сбор Matplotlib Использование кэшированных Matplotlib-1.5.2.tar.gz Полный вывод из команды питона setup.py egg_info: =============== ================================================== =========== Edit setup.cfg изменить опции построенияя не могу установить Matplotlib

BUILDING MATPLOTLIB 
      matplotlib: yes [1.5.2] 
       python: yes [3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 
         01:38:48) [MSC v.1900 32 bit (Intel)]] 
       platform: yes [win32] 

REQUIRED DEPENDENCIES AND EXTENSIONS 
       numpy: yes [version 1.11.1] 
       dateutil: yes [using dateutil version 2.5.3] 
        pytz: yes [using pytz version 2016.6.1] 
       cycler: yes [cycler was not found. pip will attempt to 
         install it after matplotlib.] 
       tornado: yes [tornado was not found. It is required for the 
         WebAgg backend. pip/easy_install may attempt to 
         install it after matplotlib.] 
      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: yes [nose 0.11.1 or later is required to run the 
         matplotlib test suite. Please install it with pip or 
         your preferred tool to run the test suite/using 
         unittest.mock] 
     toolkits_tests: yes [nose 0.11.1 or later is required to run the 
         matplotlib test suite. Please install it with pip or 
         your preferred tool to run the test suite/using 
         unittest.mock] 

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 

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

Команда "питон setup.py egg_info" потерпела неудачу с кодом ошибки 1 в C: \ Users \ User \ AppData \ Local \ Temp \ pycharm-packaging \ matplotlib \

Я попытался удалить и установить снова пип, но это не работает. Я не знаю что делать. :( Если вы можете прокомментировать на испанском языке, мне очень помогли бы, мой английский не очень хорош, спасибо заранее.

ответ

0

Я установил matplotlib с файлом .whl, и это сработало для меня. http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib. Загрузите правильный пакет .whl (т. Е. Если у вас есть Python 3.5.1 64-разрядная загрузка matplotlib-2.0.0b3-cp35-cp35m-win_amd64.whl) Затем перейдите в Проводник и перейдите в папку, в которую вы загрузили .whl файл на файловом проводнике выберите в меню файл -.> Откройте окно командной строки. -> открытой, как, администратором затем введите этот

pip install (fileName.whl) 

Если он говорит, что пип не найден, то идти к месту, где вы загрузили питона в проводнике файлов Go. к скриптам folde r и откройте его там. Вы можете скопировать и вставить файл .whl в папку сценариев. Затем введите команду install install. После того, как это будет сделано, вы можете проверить, работает ли он, перейдя в IDLE и попробуйте импортировать его

import matplotlib 

, если он работает, что означает, что вы установили его правильно. Это единственный способ установить matplotlib так жаль, если он не работает.

+0

Я пытался, но не работал, проблема в том, что я не могу обновить pip до 8.1.2, предположительно установлен python, но в консоли я смотрю pip 7.1.0, тоже не могу установить freetype и libpng вручную, но для пип я не могу, тоже пытался обновить пип, но я параграф выглядит огромным красным –

+0

Попробуйте это. Перейдите в панель управления -> удалить программу -> и нажмите python. Затем нажмите «Удалить/Изменить». Должен появиться всплывающий экран, в котором говорится об Uninstall/Repair. Нажмите «Восстановить». Это должно исправить python и попытаться сделать это снова. У меня никогда не было проблемы с пипсом, так что это мое единственное решение, извините :(. Edit: О попробуйте эту ссылку https://github.com/pypa/pip/issues/1299 – Manny102030

Смежные вопросы