Nixpkgs: conda error: install method not compatible

Created on 24 Feb 2019  路  4Comments  路  Source: NixOS/nixpkgs

Issue description

# try any conda command
$ conda
ERROR: The install method you used for conda--probably either `pip install conda`
or `easy_install conda`--is not compatible with using conda as an application.
If your intention is to install conda as a standalone application, currently
supported install methods include the Anaconda installer and the miniconda
installer.  You can download the miniconda installer from
https://conda.io/miniconda.html.

Steps to reproduce

  • install conda
  • try using it, e.g. just conda or the more explicit /nix/store/x1mhg06627mxrgm0avc2h6lnmia4z3xy-python3.7-conda-4.3.16/bin/conda, with or without extra commands
  • find above error

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

 - system: `"x86_64-linux"`
 - host os: `Linux 4.18.0, NixOS, 18.09.1799.b9fa31cea0e (Jellyfish)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.1.3`
 - channels(root): `"nixos-18.09.1799.b9fa31cea0e, nixos-unstable-small-19.03pre164396.24cdaa7b488"`
 - channels(tycho): `"nixos-unstable-small-19.03pre164396.24cdaa7b488"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
stale

Most helpful comment

Is there any outstanding PR to get your improved shell integrated here? :)

It's on my to do list, but I haven't made a PR yet.

All 4 comments

You want nixpkgs.conda not nixpkgs.pythonPackages.conda.

This should put you in a (unfortunately extremely barren) shell where you can use conda:

nix run nixpkgs.conda --command conda-shell-4.3.31

I made a branch a while back that puts you inside a more fully feathered shell (the command is simply called conda-shell there): https://github.com/hedning/nixpkgs/commits/better-buildFHSUserEnv

Thanks for your reply @hedning. I tried conda-shell, but was quite confused about it, as it seemed to function like bash rather than like the conda cli.
Is there any outstanding PR to get your improved shell integrated here? :)

Is there any outstanding PR to get your improved shell integrated here? :)

It's on my to do list, but I haven't made a PR yet.

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

rzetterberg picture rzetterberg  路  3Comments

matthiasbeyer picture matthiasbeyer  路  3Comments

tomberek picture tomberek  路  3Comments

copumpkin picture copumpkin  路  3Comments

lverns picture lverns  路  3Comments