linux安装magick。
docker pull centos:7
docker run –name python3_test -it centos:7 bash
安装python
yum install python3
安装magick
yum install ImageMagick -y
convert -version
identify -version
安装pip
安装ffmpeg:
下载:https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
yum localinstall –nogpgcheck rpmfusion-free-release-7.noarch.rpm
yum install ffmpeg ffmpeg-devel -y
问题
- The headers or library files could not be found for zlib,
yum install zlib-devel -y The headers or library files could not be found for jpeg,
yum install libjpeg* zlib libtiff -y
unable to execute 'gcc': No such file or directory
yum -y install gcc
src/_imagingmath.c:16:20: fatal error: Python.h: No such file or directory
yum install python3-devel -y
ModuleNotFoundError: No module named ‘numpy.typing’
ModuleNotFoundError: No module named ‘ffmpy’
pip3 install ffmpyCould not import runpy module
欢迎关注微信公众号,您的资源可变现:【乐知付加密平台】
一起学习,一起进步。