【问题标题】:How can I import skimage in vs code python? It shows me the error like mentioned in the image and the text如何在 vs code python 中导入 skimage?它向我显示了图像和文本中提到的错误
【发布时间】:2021-03-17 06:00:08
【问题描述】:

enter image description here

pip install skimage:

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.

【问题讨论】:

  • 试试pip install scikit-image
  • @Coding Yogi - 进展如何?只需检查以查看提供的信息是否有帮助。如果有解决此问题的答案,请mark it作为答案,以帮助其他人找到此解决方案。
  • 仍然对我不起作用,遇到同样的问题。

标签: python visual-studio-code import scikit-image


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-03-05
    • 2019-01-31
    • 2023-03-12
    • 2023-04-02
    • 2019-12-03
    • 2018-05-25
    • 1970-01-01
    • 2021-12-25
    相关资源
    最近更新 更多