pip install --use-pep517 scikit-image==0.12.3 --no-cache-dir Defaulting to user installation because normal site-packages is not writeable Collecting scikit-image==0.12.3 Downloading scikit-image-0.12.3.tar.gz (20.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.7/20.7 MB 23.6 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [5 lines of output] To install scikit-image from source, you will need numpy. Install numpy with pip: pip install numpy Or use your operating system package manager. For more details, see http://scikit-image.org/docs/stable/install.html [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.
时间: 2023-07-02 10:24:15 浏览: 242
这个错误提示显示你需要安装numpy依赖项。你可以尝试运行以下命令安装numpy:
```
pip install numpy
```
然后再次尝试安装scikit-image:
```
pip install --use-pep517 scikit-image==0.12.3 --no-cache-dir
```
如果问题仍然存在,可能是由于其他依赖项或系统设置的问题,建议查看错误提示的详细信息,以便更好地了解问题的原因。
相关问题
pip install --use-pep517 scikit-image==0.12.3 Defaulting to user installation because normal site-packages is not writeable Collecting scikit-image==0.12.3 Using cached scikit-image-0.12.3.tar.gz (20.7 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1
这个错误是由于缺少依赖项导致的。你可以尝试以下步骤来解决这个问题:
1. 确保你的pip版本是最新的,可以运行以下命令升级pip:
```
pip install --upgrade pip
```
2. 确保你的setuptools版本是最新的,可以运行以下命令升级setuptools:
```
pip install --upgrade setuptools
```
3. 安装scikit-image的所有依赖项,可以运行以下命令:
```
pip install numpy scipy matplotlib pillow six
```
4. 然后再次尝试安装scikit-image:
```
pip install --use-pep517 scikit-image==0.12.3
```
如果你还是遇到问题,可以尝试在安装命令中添加--no-cache-dir选项,例如:
```
pip install --use-pep517 scikit-image==0.12.3 --no-cache-dir
```
这将防止pip使用缓存,有时可以解决一些奇怪的安装问题。
阅读全文