Anaconda Python3.7环境中安装openCV、Pillow、scikit_image

安装Anaconda

官网地址:https://www.anaconda.com/products/individual
打开后点击download
在这里插入图片描述
选择需要的版本进行下载
在这里插入图片描述


或者可以选择用清华大学的镜像站进行下载:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

安装openCV

opencv之前写过博客了。https://blog.csdn.net/weixin_43820665/article/details/106483558
在这里插入图片描述
验证openCV安装成功可以在spyder中输入

import cv2
print(cv2.__version__)

会出现openCV的版本号
在这里插入图片描述
表示openCV安装完成。


安装 Pillow

http://mirrors.aliyun.com/pypi/simple地址后加入需要的库名
如http://mirrors.aliyun.com/pypi/simple/Pillow
找到需要的版本,如Pillow7.2.0;根据Python版本,如Python3.7找到cp37,再根据电脑的位数如64位得到所需的版本。
在这里插入图片描述
再打开Anaconda Prompt,先cd到下载的轮子的地址。
在这里插入图片描述
spyder中输入

import PIL
print(PIL.__version__)

在这里插入图片描述
安装成功。


安装Scikit-image

http://mirrors.aliyun.com/pypi/simple/scikit-image/

选择
在这里插入图片描述
在这里插入图片描述


import skimage
print(skimage.__version__)

在这里插入图片描述


以上选择的轮子都是根据Python的版本、轮子的版本、电脑位数进行选择的,大家可以根据自己的情况进行调整。

猜你喜欢

转载自blog.csdn.net/weixin_43820665/article/details/108581504