- According to this blog from Anaconda, it is tricky to use pip in a conda environment.
- The main subtleness comes conda's limited abilities to control packages installed by pip or other package managers.
- create a conda environment to isolate any changes pip makes
- environments take up little space thanks to hard links
- care should be taken to avoid running pip in the 'root' environment
- install as many requirements as possible with conda, then use pip
- pip should be run with –upgrade-strategy only-if-needed (the default)
- Do not use pip with the –user argument, avoid all 'users' installs
- once pip has been used conda will be unaware of the changes
- to install additional conda packages it is best to recreate the environment
- package requirements can be passed to conda via the –file argument
- pip accepts a list of Python packages with -r or –requirements
- conda env will export or create environments based on a file with conda and pip requirements