【问题标题】:How do i solve this error when installing scikit-image?安装 scikit-image 时如何解决此错误?
【发布时间】:2021-03-25 04:30:31
【问题描述】:

使用 pip install scikit-image 时出现以下错误。注意我已经安装了 Microsoft VS。 这是什么原因造成的? 不确定这是否是 numpy 的问题? 谢谢

ERROR: Command errored out with exit status 1:
 command: 'c:\users\student\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Student\\AppData\\Local\\Temp\\pip-install-2dp2c1cs\\scikit-image_610bd9ad5a3b4de0a232ce6491f9d39a\\setup.py'"'"'; __file__='"'"'C:\\Users\\Student\\AppData\\Local\\Temp\\pip-install-2dp2c1cs\\scikit-image_610bd9ad5a3b4de0a232ce6491f9d39a\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Student\AppData\Local\Temp\pip-record-r78qb75l\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\student\appdata\local\programs\python\python39\Include\scikit-image'
     cwd: C:\Users\Student\AppData\Local\Temp\pip-install-2dp2c1cs\scikit-
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\student\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Student\\AppData\\Local\\Temp\\pip-install-2dp2c1cs\\scikit-image_610bd9ad5a3b4de0a232ce6491f9d39a\\setup.py'"'"'; __file__='"'"'C:\\Users\\Student\\AppData\\Local\\Temp\\pip-install-2dp2c1cs\\scikit-image_610bd9ad5a3b4de0a232ce6491f9d39a\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Student\AppData\Local\Temp\pip-record-r78qb75l\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\student\appdata\local\programs\python\python39\Include\scikit-image' Check the logs for full command output.

【问题讨论】:

  • 您能否提供更多详细信息?你运行什么命令来安装?你在虚拟环境中吗?什么python版本?操作系统?等等……
  • 嗨,我最初在命令提示符下运行了“pip install scikit-image”。 Windows 10。Python 3.9。没有虚拟环境

标签: python python-3.x scikit-image


【解决方案1】:

根据 GitHub 上的this issue,在Python 3.9 上仍然不可用。

他们提供了一些解决方案:

  • conda install -c conda-forge scikit-learn 与康达
  • pip install --pre -U scikit-learn 在 Windows 上

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-12-23
    • 1970-01-01
    • 1970-01-01
    • 2017-04-21
    • 2023-03-22
    • 2022-01-24
    • 1970-01-01
    相关资源
    最近更新 更多