-
Notifications
You must be signed in to change notification settings - Fork 28
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
Installation via pip into conda environment on Windows #151
Comments
Glad you worked it out, and thanks for posting it here, it might help other users! We did gave specific anaconda instructions that covered this: https://github.com/rochefort-lab/fissa#anaconda-distribution |
I see ... sorry for asking a question that was already covered by your docs. It was not clear to me that an installation in an Anaconda environment needed to be done using the specific way described in your Anaconda-specific installation instructions, and that "pip install fissa" would work under a "Official Python distribution", but not under the "Anaconda distribution". Probably I'm not the only one who has forgotten that there is a difference between the two distributions ... |
@swkeemink Indeed, we deleted the cumbersome installation instructions which involved manually downloading shapely from that site because they are no longer necessary. At some point shapely started adding wheels which worked on Windows to their PyPI distribution. We run the unit test suite on Windows with a PyPI-only build (no conda) https://github.com/rochefort-lab/fissa/blob/master/.appveyor.yml @PTRRupprecht Could you let us know what version of Python you are using? It would also be helpful to see the error traceback so we can see what was going on with this error. Whilst you can use a conda build to run fissa, you do not need to. Using either the "official distribution" or the "anaconda distribution" installation method should run fine! Anything which correctly installs with pip should also install with pip while you are inside an anaconda environment. |
No problem at all, and you're right that currently it's not as clear as it could be as it is currently laid out in our readme. @scottclowe I would actually suggest we put the anaconda instructions on top since that is the majority of the use-cases these days. |
@scottclowe I think the issue might be that the default pip install (without conda installing the dependencies) works fine under a standard python installation, but not an Anaconda installation. Or indeed a dependency has stopped working. We might find out when I push a fix for #150 this week ;). |
I managed to reproduce the error (FISSA is however working for me if I install differently). On Windows, in a newly generate "fissa" environment:
|
Thanks for the details! We'll see if we can reproduce the issue, then either resolve it or if not then clarify the installation instructions so others don't run into the same problem. |
I noticed a problem when installing FISSA with "pip install fissa" from an Anaconda environment under Windows. The installation seems to work smoothly, but once I "import fissa" in Python, I get an error message related to the package "geos" when loading the "shapely" package. I got this on two different Windows computers, so I thought it might also affect others.
The problem could be solved by following the suggestions indicated on this Stack overflow question: https://stackoverflow.com/questions/44398265/install-shapely-oserror-winerror-126-the-specified-module-could-not-be-found
I simply used "conda install -c conda-forge shapely", and it worked afterwards.
The text was updated successfully, but these errors were encountered: