So I wanted to have the option of running python 3 or python 2 through my jupyter notebook. So I followed Stack Overflow advice detailed here: Using both Python 2.x and Python 3.x in IPython Notebook
Didn't work:
conda create -n py27 python=2.7 ipykernel
conda create -n py35 python=3.5 ipykernel
This did:
conda create -n py27 python=2.7
source activate py27
conda install notebook ipykernel
ipython kernel install --user`
`conda create -n py35 python=3.5
source activate py35
conda install notebook ipykernel
ipython kernel install --user
but now when I ran import numpy as np
I get :
No module named numpy
I checked and I have 3 environments py35, py27 and root and I'm on root. And when I go to the terminal and pip install numpy, it tells me that it's already installed!
Is there anyway that I can use both kernels and have all my packages show. Or at least undo all this. Thanks!