I have been trying to use some code which is uses openmesh and igl libraries.
Unfortunately, the only way to install igl I found was via conda into its Python 3.9 environment (conda install -c conda-forge igl). Openmesh on the other hand I could only install via outdated pip 20.x into Python 2.7 (pip install openmesh).
How could I use code, which necessitates both libraries? Is there an easy way to import the methods from one of the two libraries into either Python 2.7 or 3.9 environment?
First,
openmeshon Conda Forge refers to the OpenMesh software, which is not equivalent to the Python bindings (openmeshon PyPI). The latter goes byopenmesh-pythonon Conda Forge and has builds for Python 2.7, 3.6, and 3.7.Second, I wouldn't recommend trying to install into an existing environment. Rather, specify exactly the packages that you require and let Conda resolve the dependency versions.
Using the command:
solves without issue for me, and results in a Python 3.7 environment that can have both
iglandopenmeshinstalled.