Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly
时间: 2023-09-21 09:09:14 浏览: 191
opencv-python-4.5.5.62-cp36-abi3-win-amd64.whl
It seems that you encountered an issue while trying to install the package "opencv-python" using PEP 517. This error usually occurs when the package requires additional build dependencies that are not present in your environment. To resolve this issue, you can try the following steps:
1. Make sure you have the necessary build tools installed on your system. For example, on Ubuntu, you can run the command:
```
sudo apt-get install build-essential
```
2. Update your pip version to the latest version by running:
```
pip install --upgrade pip
```
3. Install the required dependencies for building packages:
```
pip install numpy cython
```
4. Try installing "opencv-python" again:
```
pip install opencv-python
```
If the issue persists, you can try installing pre-built binary wheels instead of building from source. You can find pre-built wheels for different platforms on the official OpenCV website or on PyPI.
阅读全文