Skip to content

Conda Environment README setup Instructions #86

@annakrystalli

Description

@annakrystalli

Feedback on #85 PR.

In all, the instructions are correct and appropriate. However, I ended up with installation issues and seemed to have bumped up against quite a few annoyances/bugs in working with Conda environments (with my limited experience of environments not really helping!).

I'm not sure that my feedback can and should be incorporated in the README. However, I thought I'd record them so we could at least review and discuss.

Installation issues

1. Environment not being prepended to the $PATH

This seems related to a still open issue in Conda (conda/conda#9392) where the path is not set by conda activate. This results (at least on my system on a mac) to resorting to using the user wide python 2.7 (/usr/bin/python annoying!). I followed the instruction to deactivate and then reactivate to get it to work but seems hacky. Anyways, something I certainly spent some time to figure given my limited familiarity with python.

2. Pip not installing python packages into environment.

When running pip install -r requirements/local.txt, the packages ended up being installed in my user level library (/usr/local/lib/python3.8/site-packages)

I had a look at this stackoverflow post to troubleshoot and tried:

  • including conda install pip prior to pip install -r requirements/local.txt. This wan unsuccessful
  • Using the explicit path to the environment pip (in my case /Users/Anna/miniconda3/envs/reprohack/bin/pip install -r requirements/local.txt). This was successful but again feels annoying, hacky and not easy to document.

Any suggestions on whether I should have handled this better / README instructions can/should be improved? @twinkarma @willfurnass

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions