Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info 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],已经安装了Numpy
时间: 2024-02-14 22:04:44 浏览: 25
如果您已经安装了 NumPy,但是在安装 scikit-image 时仍然出现此错误,则可能需要检查您的 Python 版本和环境设置是否正确。请确保您的 Python 版本符合 scikit-image 的要求,并且在运行 pip install 时使用了正确的虚拟环境。此外,还可以尝试使用以下命令重新安装 setuptools 和 wheel:
```
pip install --upgrade setuptools wheel
```
如果问题仍然存在,请提供更多错误信息以便我更好地帮助您。
相关问题
Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully.
这个错误通常表示在运行 `python setup.py egg_info` 时出现了问题。可能有几个原因导致此错误:
1. 缺少依赖项:确保您的环境中已安装了项目所需的所有依赖项。您可以通过运行 `pip install -r requirements.txt` 来安装所需的依赖项。
2. Python 版本问题:某些项目可能需要特定版本的Python才能正常工作。请检查项目的要求并确保您正在使用正确的Python版本。
3. 网络问题:有时,由于网络问题,无法下载所需的依赖项。您可以尝试使用代理或切换到稳定的网络连接来解决此问题。
4. 错误的 setup.py 文件:确认您的 `setup.py` 文件是否正确配置,并且没有语法或其他错误。
如果上述解决方法都无法解决问题,您可以尝试在交互式模式下运行 `python setup.py egg_info`,以便获得更具体的错误消息来帮助您诊断问题。
Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
引用提供了另一种错误信息,指出在安装weditor时,执行了python setup.py egg_info命令也没有成功运行。这次的错误信息显示缺少Cython模块。可能的解决办法是先安装Cython模块,然后再尝试安装weditor。你可以尝试运行pip install Cython命令来安装Cython模块,然后再运行pip install weditor命令来安装weditor。提供了另一个错误信息,指出在安装virtualenvwrapper时,执行了python setup.py egg_info命令也没有成功运行。错误信息显示缺少setuptools模块。解决办法是先安装setuptools模块,然后再尝试安装virtualenvwrapper。你可以尝试运行pip install --upgrade setuptools命令来安装或升级setuptools模块,然后再运行pip install virtualenvwrapper命令来安装virtualenvwrapper。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [pip install weditor 出错](https://blog.csdn.net/moso_wang/article/details/123376700)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [安装cython_bbox报错解决办法:Preparing metadata (setup.py)... error error: subprocess-exited-with-error](https://blog.csdn.net/li1873997/article/details/129490911)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [pip intall 出现 error: subprocess-exited-with-error 错误的解决办法](https://blog.csdn.net/Jackfled/article/details/127046255)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]