Open GitHOb1 opened 1 year ago
Try out these steps
Install the necessary dependencies for Pillow by running the following commands:
apt-get install libjpeg-dev zlib1g-dev
Next, install Pillow using pip3
:
pip3 install Pillow
To ensure you have the latest version of setuptools and wheel, update it:
sudo pip install -U setuptools wheel
Incorrect instructions. OP is using Windows, not Linux.
cd
in Command Prompt to change the directory to the directory of your source code. Then create a virtual environment if you haven't:
py -m pip install virtualenv
py -m venv .venv
.\.venv\Scripts\activate.bat
.venv
folder instead. Install pyautogui as normal:
pip install pyautogui
Note that if you're using PyCharm to run Python files, you'll have to change the default Python interpreter for your Python project into the one inside the virtual environment for it to work.
I'm tring to install the latest version of pyautogui using pip, in the proccess of installing Pillow I keep on getting the error: "Could not build wheels for Pillow, which is required to install pyproject.toml-based projects". I tried various ways I found to fix it including installing an older version of Pillow that does install well, none of them help.
I'm using Windows 10, Python 3.8. I've added screenshots of the installation and of the packages I have installed.
Would appreciate help, thanks