Windows may require your approval to install python please check the taskbar

Плагин matplotlib Python при переустановке Windows 10 не работает. Почему?

>>> import matplotlib.pyplot
Traceback (most recent call last):
File «», line 1, in
import matplotlib.pyplot
File «C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\__init__.py», line 174, in
_check_versions()
File «C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\__init__.py», line 159, in _check_versions
from . import ft2font
ImportError: DLL load failed while importing ft2font: Не найден указанный модуль.

Пробовал устанавливать с нуля Windows 10 на трех разных новых компьютерах и с процессорами Intel Core i3, i5 тоже не работает.
Переустановил Windows 10 на свой старый комп: мать Gigabyte, проц AMD Phenom, видео GeForce GT 710 — та же ерунда, как на скриншоте.
Что вообще происходить и как это решить?

  • Вопрос задан 14 окт. 2020
  • 449 просмотров

В инфернете пишут, что может мешать библиотека freetype.dll от другого приложения (например, от java).
Рекомендуют попробовать так поменять системный path, чтобы папка python, anaconda и других пайтоновских приложений были раньше папки java. Тогда, якобы, оно будет правильную библиотеку находить раньше.

Сам не проверял, дома винды нету вааще.

На Windows 10 нужно понизить версию:

И да, matplotlib это не плагин, а библиотека.

C:\Users\admin>pip install matplotlib==3.0.3
Collecting matplotlib==3.0.3
Downloading matplotlib-3.0.3.tar.gz (36.6 MB)
|████████████████████████████████| 36.6 MB 6.4 MB/s
ERROR: Command errored out with exit status 1:
command: ‘c:\users\admin\appdata\local\programs\python\python38\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-p05r85k1\\matplotlib\\setup.py'»‘»‘; __file__='»‘»‘C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-p05r85k1\\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\admin\AppData\Local\Temp\pip-pip-egg-info-do3clo40’
cwd: C:\Users\admin\AppData\Local\Temp\pip-install-p05r85k1\matplotlib\
Complete output (47 lines):
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
matplotlib: yes [3.0.3]
python: yes [3.8.6 (tags/v3.8.6:db45529, Sep 23 2020,
15:52:53) [MSC v.1927 64 bit (AMD64)]]
platform: yes [win32]

Читайте также:  Windows 10 не устанавливает chrome

REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.19.2]
install_requires: yes [handled by setuptools]
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
agg: yes [installing]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
macosx: no [Mac OS-X only]
windowing: yes [installing]

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

============================================================================
* The following required packages can not be built:
* freetype, png
* Please check gnuwin32.sourceforge.net/packa
* ges/freetype.htm for instructions to install
* freetype
* Please check gnuwin32.sourceforge.net/packa
* ges/libpng.htm for instructions to install png
—————————————-
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

3 разных компьютера и одна ошибка. Образ Windows 10 брался с официального сайта. Уже установлен MS C++ 2015. Что именно не так с компьютерами или что не так я делаю?

Python matplotlib install issue on Windows 7 for freetype, png packages

Using Python 2.7 on Windows 7. Here is the command I am using to install and error message. Wondering if anyone have met with similar issues before? Thanks.

8 Answers 8

Get matplotlib from above location. Choose correct package based on python(2.x/3.x) and bit(32/64) version.

Читайте также:  Windows 10 нет окна копирования файлов

If you face any issues in the middle, please refer to below link: https://stackoverflow.com/a/38618044/5334188

As you can see it png and freetype modules are missing. You need to install them separately.

Try doing the following :

I solved it by taking version 1.5.1

it seems that version 1.5.2 installer is broken.

I had the exact same issue.

Seems that my pip was v7 which is old. upgraded to v9 with the ‘upgrade’ button. then tried to install matplotlib again and was successful this time.

maybe this helps

I came across the same problem with you, and here is my solution

It has the problem with python 3.6 integrated with the newest pip. so I installed python 3.5.2 with pip, but do not upgrade pip. And you can get matplotlib installed in this way.

Hope I could provide a possible solution

I solved the same problem in Wİndows 10 as folowing:

1- Download the following files for win32 or win64 python3.7:

2- By cmd console run the downloaded file under python:

Оцените статью
Adblock
detector