Hack Forums
[Python] PyAutoGUI not working with Python 3.8? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] PyAutoGUI not working with Python 3.8? (/showthread.php?tid=6056691)



PyAutoGUI not working with Python 3.8? - TrkDZ - Mar 13, 2020

Hey, I tried to install multiple packages and most of them return errors. Did a bit of troubleshooting and saw that it might be because of the Python version. Amirite?

EDIT: Managed to fix it by doing
Code
python -m pip install -U --force-reinstall pip

and then installing Pillow

Thanks for the help!


RE: PyAutoGUI not working with Python 3.8? - mar3011 - Mar 13, 2020

Which errors there are...?


RE: PyAutoGUI not working with Python 3.8? - Flash7475 - Mar 13, 2020

Taken right from PyAutoGUI documentation page:

Quote:PyAutoGUI supports Python 2 and 3.


so its compatible with all versions, so its probably another issue.

Post what errors your getting and we might be able to help a little better


RE: PyAutoGUI not working with Python 3.8? - TrkDZ - Mar 13, 2020

(Mar 13, 2020 09:57 AM)mar3011 Wrote:  Which errors there are...?

(Mar 13, 2020 10:10 AM)Flash7475 Wrote:  Taken right from PyAutoGUI documentation page:


so its compatible with all versions, so its probably another issue.

Post what errors your getting and we might be able to help a little better
1:
[Image: QB6OB3V.png]

then:
[Image: HVQ8ZfY.png]

finally:
[Image: 4fWE7br.png]

Error Code (mentioned zlib):

https://pastebin.com/yLQQZ7i0


RE: PyAutoGUI not working with Python 3.8? - Flash7475 - Mar 13, 2020

Looks like the Pillow module might be a dependency of pyautoGUI and is either missing or needs updating before pyautoGUI can be installed.

Try running 'pip install Pillow'


RE: PyAutoGUI not working with Python 3.8? - TrkDZ - Mar 13, 2020

(Mar 13, 2020 11:12 AM)Flash7475 Wrote:  Looks like the Pillow module is a dependency of pyautoGUI and is either missing or needs updating before pyautoGUI can be installed.

Try running 'pip install Pillow'

Yeah, I did it already. This is messed up right ? Pillow is updated to the lastest version available and I still get this error:

Code
The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.
    
    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html



RE: PyAutoGUI not working with Python 3.8? - Charger - Mar 13, 2020

Pip remove zlib
Pip install zlib

Pip install your package


RE: PyAutoGUI not working with Python 3.8? - QProxies - Feb 16, 2022

(Mar 13, 2020 08:18 AM)TrkDZ Wrote:  Hey, I tried to install multiple packages and most of them return errors. Did a bit of troubleshooting and saw that it might be because of the Python version. Amirite?

EDIT: Managed to fix it by doing
Code
python -m pip install -U --force-reinstall pip

and then installing Pillow

Thanks for the help!

Just install Anaconda.
Python is tricky in this matter.