-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to install rvlib? #29
Comments
hi, thanks for raising this the best way to install rvlib is through conda-forge. I'd recommend using the mambaforge distribution of anaconda, then do
(if you use the mambaforge distribution you can swap If you want to build from source, you need to use the mingw compiler, not VS |
Hi, I'd like to ask the same question: how to install rvlib in Windows using pip not conda? I am using QGIS and Pysal, which needs to install rvlib. Unforunately, QGIS uses its own Python which does not support conda. I tried to build from resource use mingw64, but no makefile was found. I then tried to build using build_lib.py, but python automatically used MSVS rather than mingw64. Anyone can help with this? Thanks |
Try |
Thanks @jcrichard it still has the error: Running setup.py install for rvlib ... error × Running setup.py install for rvlib did not run successfully. ...... error command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe' failed with exit code 2 note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while trying to install package. |
Might be due to the python version. Try to install it on python 3.6 on a separated env, which is the version I use. |
thanks @jcrichard |
I'm not sure how he did it, but I'm a pysal dev, so I'll offer what help I can. It's probably not too difficult to build a wheel for the pysal metapackage, because as of version 2, the pysal package itself doesnt really contain any source code, just a set of dependencies for each of its specialized analytical libraries (what we call subpackages in pysal). Where you'll run into trouble is when you go to install Gholke's wheel, you likely wont be able to install the pysal segregation package which depends on rvlib. the issue you're getting here:
happens because the installer is trying to compile rvlib's C modules using the visualstudio compiler.
Instead, you need to make sure your system is setup properly to use Mingw. Resources like this might help. You need to make sure that mingw is in your PATH in whatever environment you're using to install rvlib. I don't have a windows machine handy, but I have been able to successfully build from source in a windows VM in the recent past (and our conda recipes on windows build successfully using the mingw toolchain) |
another thing you could try is:
|
thanks @knaaptime I've tried to add either mingw64 bin or RTools40 mingw54 bin to PATH in OSGeo4W console, but it didn't work. When I pip install rvlib, it always uses MSVC. This happened when it tried to building 'rvlib._rmath_ffi' extension. It is wierd, as the path in OSGeo4W not even has the MSVC folder. |
63.3 Running setup.py install for rvlib: started I got this after finally installed rvlib by pinning it to the github commit: |
I'm trying to install the rvlib on windows, but im finding some issues, this occur when python is building wheel for rvlib Why im getting this error? Im already installed VS 14.0 How can i fix this "pragma warning" error? I'm also have the VS building tools 2015.
The text was updated successfully, but these errors were encountered: