Could not build wheels for Pillow, which is required to install pyproject.toml-based projects
时间: 2023-08-13 15:12:12 浏览: 91
It seems like you are experiencing an issue with building wheels for the Pillow library. This error typically occurs when there are missing or incompatible dependencies required for building the wheels.
To resolve this issue, you can try the following steps:
1. Ensure that you have the necessary build dependencies installed on your system. For example, on Ubuntu, you can run the following command to install the required dependencies:
```
sudo apt-get install python3-dev python3-pip libjpeg-dev zlib1g-dev
```
2. Update pip and setuptools to the latest versions:
```
pip install --upgrade pip setuptools
```
3. Try installing Pillow again:
```
pip install Pillow
```
If the issue persists, you can also try installing Pillow from a pre-compiled wheel instead of building it from source. You can download the appropriate wheel for your system from the Python Package Index (PyPI) and install it using pip.
I hope this helps! Let me know if you have any further questions.