Cygwin gcc issue - cannot find Python.Python 2.7 pip install lxml in virtualenv fails on Cygwin.Let's check that Python.h exists: # find /usr/include -type f -name "Python.h" Now let's try to install the lxml package. For Python 3.x install the python3-setuptools package. Download a helper package: For Python 2.x install the python-setuptools package. Once you have easyinstall, you can use it to install pip. To install both pip and pip2, the Python 2-specific versions of pip, under Cygwin: python -m ensurepip This assumes the python Cygwin package to have been installed, of course. Pip install Cython -install-option="-no-cython-compile" While installing cygwin, make sure you install the python/python-setuptools from the list. #ERROR: Cython-0.29.13-cp38-cp38-win32.whl is not a supported wheel on this platform. So we are told to download and use the wheel from here. Unfortunately Cygwin's python3.8 doesn't yet support cython, it seems. ![]() However, this repeatedly fails with incomprehensible errors ranging from python errors to gcc header files not found, even though they are there.īecause lxml depends on Cython, we need to make sure we have that working first. I have been trying to use pip install to install the cython and lxml packages under Python3.8 on Cygwin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |