-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to install on MinGW x64 #1009
Comments
Looking at this again I'm at a bit of a loss as to why What I can add is that in a fresh windows 10 vm with a fresh install of msys2 using MinGW x64 terminal and installing as above (although, after noticing that with this
in appveyor it is different, seeming to use 'win-amd64'... Is this because Visual Studio is found? (Doubt this would work in mingw anyway) Fails because of a missing header file.
I did have success producing and installing a wheel (that appears to be working OK) using a setuptools approach from source:
Any ideas? |
I wonder if this is related to #1113. What is the output of |
I'd think maybe generally speaking it is? Although I get: >>> import os, sys
>>> os.name
'nt'
>>> sys.platform
'win32' And still get the same All this is outside the limits of my knowledge but could this also be related? Maybe @lazka could shed some light? |
Just thought I would try setting the version of setuptools in pyproject.toml. If I set it to
But can not import it:
|
Thanks @snowman2 you pointed me in the right direction to finally find a solutions (for now)... First of all scrap my "can not import" comment above, rookie mistake, didn't change out of the pyproj directory first... From what I gather: Since setuptools>=60.0.0 setuptools "includes a local, vendored copy of distutils". Therefore the MSYS2 patched version of standard libary distutils is not used unless you make it e.g.:
see: https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html Ideally the MSYS2 patches find their way into setuptools' distutils and |
This solves my problem, thanks! |
Great thread! I had issues with SQLAlchemy but now I am sorted |
For Windows before installing the desired package set the variable in PowerShell by this command:
It helped me make pip work with MSYS2 |
Until 2 days ago the below was working. Not sure this is a msys2/mingw or pyproj issue. First noticed on an appveyor (Visual Studio 2109) build, since confirmed locally. Need mingw x64 due to GTK+3 dependency.
Installation method/steps
pip install pyproj
$ pacman -S mingw-w64-x86_64-proj
C:\msys64\mingw64\bin\proj.exe
am not sure these are all needed but..
Environment Information
3.3.0 and 3.2.1
proj
command and give version here.)Rel. 8.1.1, September 1st, 2021
python -c "import sys; print(sys.version.replace('\n', ' '))"
)3.9.7 (default, Nov 21 2021, 22:02:56) [GCC 11.2.0 64 bit (AMD64)]
python -c "import platform; print(platform.platform())"
)Windows-10-10.0.19042-SP0
My temporary solution was to use the last successful local installs wheel.
The text was updated successfully, but these errors were encountered: