Skip to content
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

conda environments are not cross platform #76

Open
kdheepak opened this issue Oct 18, 2024 · 3 comments
Open

conda environments are not cross platform #76

kdheepak opened this issue Oct 18, 2024 · 3 comments

Comments

@kdheepak
Copy link
Contributor

I tried to create the conda environment on my mac and I got the following error:

image
  1. The name of the environment in the yaml file is base, but installing a more recent version of conda will give you python 3.11 which is incompatible with some of these dependencies.

  2. conda environments where dependencies are specified with hashes are not cross platform. They are for reproducible environments on the same platform (Windows / MacOS / Linux etc)

image

I have to remove the hash to be able to create an environment successfully.

@kdheepak
Copy link
Contributor Author

For me on MacOS, this works:

name: opentepes
channels:
  - gurobi
  - conda-forge
  - defaults
dependencies:
  - altair=4.2.0
  - colorama=0.4.4
  - colour=0.1.5
  - gurobi=9.5.1
  - matplotlib=3.5.2
  - matplotlib-base=3.5.2
  - networkx=2.8
  - numpy=1.22.3
  - pandas=1.4.2
  - pip=22.1
  - plotly=5.8.0
  - psutil=5.9.0
  - pip:
    - gurobipy==9.5.1
    - pyomo==6.4.1

@kdheepak
Copy link
Contributor Author

It seems like the dependencies in the package require 3.11

image

I see that the documentation has been updated to reflect that: 7db4ace

Maybe the conda file should be updated?

@erikfilias
Copy link
Contributor

Thank you, @kdheepak; I just updated the environment file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants