Skip to content

"The following argument was not expected: create" when creating environment #49959

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

Closed
MarcoGorelli opened this issue Nov 29, 2022 · 5 comments · Fixed by #49993
Closed

"The following argument was not expected: create" when creating environment #49959

MarcoGorelli opened this issue Nov 29, 2022 · 5 comments · Fixed by #49993
Assignees

Comments

@MarcoGorelli
Copy link
Member

MarcoGorelli commented Nov 29, 2022

Some people are reporting issues creating a development environment, and that

mamba env create

gives

The following argument was not expected: create

I don't know if this is platform-specific, but it works for me on mamba 1.0.0 on Linux (WSL2).

The following seems to be working for people

mamba create --file environment.yml

We'll see at the pydataglobal sprint if the above works for everyone, and then we'll update the docs - in the meantime, this might help anyone for whom mamba env create isn't working

cc @datapythonista in case this is something you've come across

@MarcoGorelli MarcoGorelli pinned this issue Nov 29, 2022
@datapythonista
Copy link
Member

I've been using the command in Linux for a long time without issues. No idea what the problem can be.

@mgotrik
Copy link

mgotrik commented Nov 29, 2022

I had something like this happen to me recently. The problem was that I had multiple versions of conda (mamba or some other package in your case). One in my local environment and one in the global. Try cleaning/updating all your packages

@emma-carballal
Copy link
Contributor

take

@MarcoGorelli
Copy link
Member Author

hi @emma-carballal - did mamba create --file environment.yml work for you?

@emma-carballal
Copy link
Contributor

hi @MarcoGorelli , I got this with the original:

(pandas-dev) ➜  pandas-carballal git:(main) mamba env create 

CondaValueError: prefix already exists: /Users/nineve/opt/miniconda3/envs/pandas-dev

mamba create --file environment.yml creates an environment successfully.

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

Successfully merging a pull request may close this issue.

4 participants