skimage 包安装

报错:

DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Collecting skimage
  Using cached skimage-0.0.tar.gz (757 bytes)
    ERROR: Command errored out with exit status 1:
     command: /home/yangli/PycharmProjects/Ocr/EDA/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-paeq51oc/skimage_395736b434304adc8e020c8ced248b05/setup.py'"'"'; __file__='"'"'/tmp/pip-install-paeq51oc/skimage_395736b434304adc8e020c8ced248b05/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 /tmp/pip-pip-egg-info-pzr0at7y
         cwd: /tmp/pip-install-paeq51oc/skimage_395736b434304adc8e020c8ced248b05/
    Complete output (3 lines):
    
    *** Please install the `scikit-image` package (instead of `skimage`) ***
    
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/3b/ee/edbfa69ba7b7d9726e634bfbeefd04b5a1764e9e74867ec916113eeaf4a1/skimage-0.0.tar.gz#sha256=6c96a11d9deea68489c9b80b38fad1dcdab582c36d4fa093b99b24a3b30c38ec (from https://pypi.org/simple/skimage/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement skimage
ERROR: No matching distribution found for skimage

解决方案安装:

 pip3.5 install scikit-image

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 您可以使用以下命令在Anaconda中安装skimage: ``` conda install -c conda-forge scikit-image ``` 这将从conda-forge渠道安装scikit-image。如果您想在特定的环境中安装,请先激活该环境,然后再运行上述命令。 ### 回答2: Anaconda是一款Python语言的科学计算平台,其中的Conda可以用来管理。Scikit-imageskimage)是一款用于图像处理和计算机视觉的Python,在Anaconda中安装skimage非常简单。下面是安装skimage的步骤: 首先,打开Anaconda Navigator,在“Environments”页面中,选择当前正在使用的环境(例如,“base (root)”),然后单击右侧的“Open Terminal”按钮,打开终端。 接下来,输入以下命令: ``` conda install scikit-image ``` 这将在当前环境中安装skimage及其所有依赖项。安装过程可能需要一些时间,因为需要下载和安装大量文件。 安装完成后,可以验证是否成功安装skimage。在终端中输入以下命令: ``` python import skimage ``` 如果没有报错,说明skimage已经成功安装。您现在可以在Python代码中使用skimage库中的功能。 总之,使用Anaconda安装skimage非常简单,只需要在终端中一行命令即可完成。安装后,可以将skimage库与其他Python科学计算库一起使用,帮助您进行图像处理和计算机视觉任务。 ### 回答3: Anaconda是一种常用的Python集成开发环境,由于其自带大量常用的Python第三方库,使用Anaconda进行Python开发可以提高开发效率。其中,skimage是一种常用的图像处理库,提供了多种图像处理算法。 要在Anaconda中安装skimage,首先需要打开Anaconda Prompt(如果使用的是Windows系统)。然后,使用以下命令来安装skimage: ``` conda install scikit-image ``` 此命令将会自动安装skimage以及其相关的,同时也将安装numexpr、Pillow、matplotlib等常用的依赖安装完成后,即可在Python程序中使用skimage库的各种功能。 如果需要手动安装skimage,可以使用pip命令进行安装,使用以下命令来安装skimage: ``` pip install -U scikit-image ``` 此命令将会从Python Package Index(PyPI)中下载并安装skimage以及它的所需依赖库。但是,建议使用conda命令进行安装,因为conda能够自动解决依赖关系,安装之间兼容性更好,也更容易管理。 安装skimage后,可使用以下命令来导入skimage库: ```python from skimage import io, filters, color ``` 此命令将导入skimage库中的io、filters和color模块,可用于读取图像文件、进行图像过滤和转换图像颜色空间等操作。在命令行中输入help(skimage)可以查看所有模块及其用法的文档,以帮助进一步了解如何使用skimage

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值