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

Command on page /preamble/how-to-use.html to create the conda environment no longer works? #485

Closed
JackScheff opened this issue Jul 18, 2024 · 3 comments

Comments

@JackScheff
Copy link

JackScheff commented Jul 18, 2024

On https://foundations.projectpythia.org/preamble/how-to-use.html under Interacting with Jupyter Books Locally, the recommended command to create Pythia's conda environment does not seem to execute. The command is

conda env create --force -f https://raw.githubusercontent.com/ProjectPythia/pythia-foundations/main/environment.yml

However, on running it (after having installed and initialized the latest version of Conda using miniconda), it returns:

conda: error: unrecognized arguments: --force

Is this argument no longer supported in the current version of Conda? Does the recommended command on this page therefore need to be updated? Or am I missing something? I am new to Conda, so the latter may be the case.

@brian-rose
Copy link
Member

Hi @JackScheff, thanks for this report!

Looks like you are right, the --force option was removed in a conda release earlier this year.

The new syntax for the same functionality is to replace --force with --yes, so the full command should be

conda env create --yes -f https://raw.githubusercontent.com/ProjectPythia/pythia-foundations/main/environment.yml

Or, you can omit the --yes entirely -- but then you'll have to click Y to manually accept the proposed packages after conda finished solving the environment.

We'll get those docs updated.

@JackScheff
Copy link
Author

JackScheff commented Jul 22, 2024 via email

@brian-rose
Copy link
Member

Fixed in #487.

The new instructions are now published at https://foundations.projectpythia.org/preamble/how-to-use.html#interacting-with-jupyter-books-locally.

@github-project-automation github-project-automation bot moved this from Backlog to Done in Pythia Projects Board Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants