Skip to content Skip to sidebar Skip to footer

How To Have Egg Files From Github Install With Pip Not In Current Directory But In The Conda Env Directory?

I am creating a python env using conda, pip and yml config file by using first: conda env create -f test.yml -n test_pip then conda env update -f test.yml -n test_pip with the fo

Solution 1:

I don't see any egg file in your config. If by the "egg file" you mean git repository from github than the culprit is option -e — it installs the package in "editable mode". You probably don't need it, so the part of the config should look like this:

- pip:
    …
  - "git+https://github.com/slundberg/shap#egg=shap"
    …

PS. #egg=shap doesn't mean there is an egg file, it's just the way to name the package for pip in VCS (git in your case) URLs so pip could resolve package names and versions before it clones the repositories.

Post a Comment for "How To Have Egg Files From Github Install With Pip Not In Current Directory But In The Conda Env Directory?"