0

using the instructions here Using nb_conda_kernels I almost have it going,, but I seem to have only the very basic Python Interpreter in my environments. What I want is a full Anaconda environment for each version of Python, with all the libraries? How can I do that?

Community
  • 1
  • 1
dartdog
  • 10,432
  • 21
  • 72
  • 121
  • Have you installed additional packages in your envs? The conda envs do not inherit any package from the toplevel environment – norok2 Aug 02 '16 at 19:45
  • No, exactly, I am hoping there is some way to have full Anaconda installs in each env? – dartdog Aug 02 '16 at 19:46
  • to avoid having to add each package one by one manually – dartdog Aug 02 '16 at 19:52
  • you should clone your base environment if that is what you want... otherwise you can play around with `requirements.txt` – norok2 Aug 02 '16 at 19:55
  • So How can I clone the base env? and as well that does not provide for installing same packages in the new P2 env? Since the base is p3 sorry not to be more clear in orig question – dartdog Aug 02 '16 at 19:57
  • otherwise, if all you want is the full anaconda env, just issue `conda install anaconda` after activating your env.. and do not forget to have a look at the anaconda cheatsheet for more quick hints – norok2 Aug 02 '16 at 19:57
  • I'll give that a go. – dartdog Aug 02 '16 at 19:58
  • try `conda install anaconda python=2` – norok2 Aug 02 '16 at 19:58
  • in the env or out? – dartdog Aug 02 '16 at 20:00
  • sorry I mixed up the syntax.. the `python=2` should be upon creating the env – norok2 Aug 02 '16 at 20:02
  • if in a Jupyter NB with Python (conda-env:py2.7) active and I run conda install anaconda python=2 I get following specifications in conflict: anaconda tensorflow -. Proto buff ==3.0.0b2 tenor flow ->python 3.5* Use condtion info.. To see dependencies for each pkg? So this does not allow me to add anaconda to the env in Jupyter. – dartdog Aug 02 '16 at 20:40
  • There seems to be a conflict in creating a Condtion NB kernel/env and getting Anaconda associated/installed with the correct NB kernel/env? – dartdog Aug 02 '16 at 20:42

1 Answers1

0

What you probably want to do is to create a environment with some predefined set of packages. From the command line, and possibly outside any conda environment, try something like (py2 can indeed any name you want):

conda create --name py2 python=2 anaconda

See http://conda.pydata.org/docs/help/help.html for more details, or for a quick look: http://conda.pydata.org/docs/_downloads/conda-cheatsheet.pdf

norok2
  • 25,683
  • 4
  • 73
  • 99