One minute
Mac M1安装numpy,opencv和ffmpeg
首先需要安装miniforge
brew install miniforge
安装需要的包
conda create -n py39t python=3.9
conda create -n py39t python=3.9
conda install -n py39t numpy
conda install -n py39t pillow
conda install -n py39t requests
conda list
我使用的是pycharm, 使用方法差不多
安装ffmepg
mkdir -p /opt/local/src
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
sudo ./configure --enable-avfilter --enable-libfreetype --enable-libfontconfig --enable-libfribidi --prefix=/opt/local
make
make insall
/opt/local/bin/ffmpeg -version
brew安装可能更方便
brew install ffmpeg \
--with-chromaprint \
--with-fdk-aac \
--with-libass \
--with-librsvg \
--with-libsoxr \
--with-libssh \
--with-libbluray \
--with-libbs2b \
--with-libcaca \
--with-libgsm \
--with-libmodplug \
--with-libvidstab \
--with-opencore-amr \
--with-openh264 \
--with-openjpeg \
--with-openssl \
--with-tesseract \
--with-rtmpdump \
--with-rubberband \
--with-sdl2 \
--with-snappy \
--with-tools \
--with-webp \
--with-x265 \
--with-xz \
--with-zeromq \
--with-zimg \
--with-frei0r \
--with-game-music-emu \
--with-filter=drawtext \
--with-freetype \
--with-fontconfig \
--with-tools \
--with-fdk-aac \
--with-freetype \
--with-fontconfig \
--with-libass \
--with-libvorbis \
--with-libvpx \
--with-opus