Porepy on Windows #529
rafaelmarch3
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Hi Rafael, It is correct that install on Windows (and Mac, I have been told) currently is easier than advertised - actually the fix on the path_length is included in a pull request opened today (#527). The reasons we do not flag Windows compatibility higher are
That being said, you have a point that the current install instructions are more intimidating than there is reason for. I will update. Cheers, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I decided to try to install porepy in a Conda environment on Windows, and I was positively surprised it worked very well. The steps were:
conda create --name porepy python=3.7
git clone https://github.com/pmgbergen/porepy.git
cd porepy
pip install .
Everything was properly installed in the Conda environment. When you try to import porepy, though, you get an error. There is a necessary "hack", which is to change the following line in the logging.py file:
path_length = __file__.split("/").index("porepy")
to
path_length = __file__.split("\\").index("porepy")
After this change, I'm able to run the example and everything works fine. Is it something you would like to update in the INSTALL documentation? It is said there you need a virtual machine or a docker image to get it to work on Windows, but it is actually way easier than that.
Regards,
Rafael.
Beta Was this translation helpful? Give feedback.
All reactions