我安装了Anaconda但是python 3的matpoltlib没有用。所以我试着安装miniconda。
$ jupyter notebook
然后Jupiter笔记本开始了。但是这条消息出现了:
pyenv: conda: command not found
The jupyter command exists in these Python versions:
anaconda3-4.0.0
miniconda3-4.1.11
如何选择miniconda?
答案 0 :(得分:0)
conda
environments are the way to work with different Python versions.
Create new environment:
conda create -n py35 python=3.5
activate it:
source activate py35
Now, you can install the needed libraries:
(py35) conda install matplotlib jupyter
and start the notebook server:
(py35) jupyter notebook
Using this method, you can make more environments for other Python versions or combinations of library versions.
If conda
refuses to start, you can use:
which -a conda
to see what conda
commands are available.
Choose the full path you want, e.g.:
/Users/me/miniconda/bin/conda
to invoke conda
.
答案 1 :(得分:0)
我找到了
$ pyenv versions
在终端中将显示此消息
系统
anaconda3-4.0.0
miniconda3-4.1.11
下
$ pyenv global miniconda3-4.1.11
$ jupyter notebook