I am attempting to "pip install" PyAutoGUI ( among other modules ) and I am getting the following error :
Collecting pyautogui
Using cached PyAutoGUI-0.9.35.zip
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\PyAutoGUI.egg-info
writing top-level names to pip-egg-info\PyAutoGUI.egg-info\top_level.txt
writing requirements to pip-egg-info\PyAutoGUI.egg-info\requires.txt
writing pip-egg-info\PyAutoGUI.egg-info\PKG-INFO
writing dependency_links to pip-egg-info\PyAutoGUI.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\PyAutoGUI.egg-info\SOURCES.txt'
error: [Errno 2] No such file or directory: 'C:\\Users\\myDir\\Downloads\\python-3.5.0-embed-win32\\python35.zip\\lib2to3\\Grammar.txt'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\myDir\AppData\Local\Temp\pip-build-aqcbpbui\pyautogui\
This is being done on a Windows 10 Professional without admin rights ( hence the embedded method of using Python 3.5 ). I was able to pip install openpyxl without issue but when running the same command ( python -m pip install pyautogui ) I get the described error message and traceback found above. I've done clean extractions of the zip and found the same problem.
I searched through SO and only found questions that related to Mac environments and a single instance where the OS wasn't listed ( "python setup.py egg_info" failed with error code 1 ) which yielded no positive results ( actually ended up getting a different error message with the second suggested step...but...one issue at a time :P )
I've confirmed that the file in question (( 'C:\Users\myDir\Downloads\python-3.5.0-embed-win32\python35.zip\lib2to3\Grammar.txt' )) exists and even unzipped the directory just to be sure ( leaving the zip there as well intact to keep myself covered ). I attempted Easy_install and it yielded a similar set of messages and end result error ( not posting it to reduce clutter of this post but will provide on request ).
Any advice would be thoroughly appreciated. Thank you.
I faced the same problem while using 3.5.2 and 3.6.1 versions of the embedded python distribution zip for Windows. Though, with the MSI installer, this problem does not arise.
I suspect, this has something to do with the way the python3X.zip file is read for \lib2to3\Grammar.txt. Here is how I have resolved it :
A hack probably, but, could not find a way around.