首页 > 解决方案 > 如何在 vs code python 中导入 skimage?它向我显示了图像和文本中提到的错误

问题描述

在此处输入图像描述

pip install skimage:</p>

Collecting skimage
  Using cached skimage-0.0.tar.gz (757 bytes)
    ERROR: Command errored out with exit status 1:
     command: 'c:\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Dell\\AppData\\Local\\Temp\\pip-install-auzblq4_\\skimage\\setup.py'"'"'; __file__='"'"'C:\\Users\\Dell\\AppData\\Local\\Temp\\pip-install-auzblq4_\\skimage\\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\Dell\AppData\Local\Temp\pip-pip-egg-info-9s1nfssp'
         cwd: C:\Users\Dell\AppData\Local\Temp\pip-install-auzblq4_\skimage\
    Complete output (3 lines):

    *** Please install the `scikit-image` package (instead of `skimage`) ***

    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'c:\python39\python.exe -m pip install --upgrade pip' command.

标签: pythonvisual-studio-codeimportscikit-image

解决方案


根据您提供的信息中的“请安装scikit-image包(而不是skimage)”,请安装“ scikit-image ”:

在此处输入图像描述


推荐阅读