Embedded Python 3.5 "python setup.py egg_info" failed with error code 1
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 :
- I have renamed the python35.zip file to something else (.zipp etc ..)
- I have created a folder "python.zip" inside my original extracted folder
- Made sure that "\lib2to3\Grammar.txt" is accessible within this folder.
- Ran "python -m pip install "
- Worked like a charm !
A hack probably, but, could not find a way around.
Python Release Python 3.5.2, Please see the documentation regarding Embedded Distribution for more information. Windows users: Some virus scanners (most notably " Major new features of the 3.5 series, compared to 3.4. Among the new major new features and changes in the 3.5 release series are. PEP 441, improved Python zip application support; PEP 448, additional unpacking generalizations; PEP 461, "%-formatting" for bytes and bytearray objects; PEP 465, a new operator (@) for matrix multiplication
It seems, as you said, that you havent admin privileges.
Try to run for the current user, thus without admin privileges:
pip install --user pyautogui
Embed Python 3.5 with tkinter support on Windows, Disclaimer. This answer does not purport to be the correct or best way to embed Python 3.5 with Tkinter support. The step-by-step format only reflects the fact that With the 3.5.0 release, Python.org has introduced a distribution billed as embeddable zip file. Unfortunately the zipped file comes without a help file (not even a readme). The download page on Python.org just lists it among the downloads. Apparently this is a portable Python distribution.
For me just unzipping the
python36.zip to a folder
python36.zip did the trick.
Why you should consider Python for embedded programming , I've already included everything on PATH and create PYTHONPATH and nothing works. Do you have any advice for me? I must embed Python Files for python-embedded-launcher, version 0.13; Filename, size File type Python version Upload date Hashes; Filename, size python_embedded_launcher-0.13-py2.py3-none-any.whl (62.2 kB) File type Wheel Python version py2.py3 Upload date Feb 5, 2020
Python 3.6 download and install for windows, Environment pip version: 20.1.1 Python version: 3.5.4 OS: Windows This wheels when running from an embedded Python (3.5, or 3.6+ with a Extending and Embedding the Python Interpreter¶ This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can not only define new functions but also new object types and their methods.
Import Numpy on embedded Python 3.5.7 in C++ application · Issue , six_figures 400000 String interpolation Python 3.6 adds yet another way to format strings lets you use embedded Python expressions inside string constants. Type annotations for variables Starting with Python 3.5 you could add type Python 3.5.6 - Aug. 2, 2018. Note that Python 3.5.6 cannot be used on Windows XP or earlier. No files for this release. Python 3.4.9 - Aug. 2, 2018. No files for this release. Python 3.7.0 - June 27, 2018. Note that Python 3.7.0 cannot be used on Windows XP or earlier. Download Windows help file; Download Windows x86-64 embeddable zip file
Windows + Python 3.5 can fail to run setup.py in PEP 518 , After you get your key, install the SDK: pip install iotery-embedded-python-sdk. Note: Make sure you are using Python 3.5+!. And finally, some MicroPython (GRPL-uPython) is a rewrite of the Python 3.4 programming language tailored for STM32 devices. It offers on-chip compiler, virtual machine and runtime to enable the rapid prototyping of applications. Extension modules provide direct access to the peripherals of the STM32 device.
- Does trying to install other modules cause a similar error on your machine? (For example, try
pip install pymsgbox)
- It yielded the same error. I am getting the feeling I will just have to wait for the admin team to take a look at it locally.