我刚安装了Anaconda 2.1.0(x86_64)用于我的MAC OS课程。
()安装顺利
()PATH已更新
()运行以下命令,似乎一切正常。
conda update conda
conda update ipython
conda update pip
conda install bokeh
()版本查询返回
conda --version
conda 4.4.9
根据说明我应该安装笔记本电脑包。 但我得到以下错误
XXXXX@Admins-MacBook-Pro ~ $ jupyter notebook
Error executing Jupyter command 'notebook': [Errno 2] No such file or directory
conda list只有ipython notebook
gsandhu @ Admins-MacBook-Pro~ $ conda list | grep笔记本 ipython-notebook 2.2.0 py27_0
之前我尝试使用“pip install jupyter”更新jupyter,我能够启动笔记本,但随后在内核中出现了问题。所以我卸载了所有东西并从新鲜开始。
有人可以指导我完成这个吗?在此先感谢
添加更多细节之后如果我做“pip install jupyter”。我可以启动笔记本,但是我立即在内核中得到以下错误。
File "/Users/gsandhu/anaconda/lib/python2.7/runpy.py", line 174, in
_run_module_as_main
"__main__", fname, loader, pkg_name)
File "/Users/gsandhu/anaconda/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/gsandhu/anaconda/lib/python2.7/site-
packages/ipykernel_launcher.py", line 16, in <module>
app.launch_new_instance()
File "/Users/gsandhu/anaconda/lib/python2.7/site-
packages/traitlets/config/application.py", line 657, in launch_instance
app.initialize(argv)
File "<string>", line 2, in initialize
File "/Users/gsandhu/anaconda/lib/python2.7/site-
packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/gsandhu/anaconda/lib/python2.7/site-
packages/ipykernel/kernelapp.py", line 448, in initialize
self.init_sockets()
File "/Users/gsandhu/anaconda/lib/python2.7/site-
packages/ipykernel/kernelapp.py", line 251, in init_sockets
self.init_iopub(context)
File "/Users/gsandhu/anaconda/lib/python2.7/site-
packages/ipykernel/kernelapp.py", line 259, in init_iopub
self.iopub_thread = IOPubThread(self.iopub_socket, pipe=True)
File "/Users/gsandhu/anaconda/lib/python2.7/site-
packages/ipykernel/iostream.py", line 66, in __init__
self.io_loop = IOLoop(make_current=False)
File "/Users/gsandhu/anaconda/lib/python2.7/site-packages/tornado/util.py",
line 208, in __new__
instance.initialize(**args)
File "/Users/gsandhu/anaconda/lib/python2.7/site-
packages/zmq/eventloop/ioloop.py", line 133, in initialize
super(ZMQIOLoop, self).initialize(impl=impl, **kwargs)
TypeError: initialize() got an unexpected keyword argument 'make_current'
[W 22:57:04.292 NotebookApp] KernelRestarter: restart failed
答案 0 :(得分:0)
安装conda
后,您需要创建一个可以使用的环境,然后前往终端并输入
conda create -n environment_name python=3.6.3
然后在创建环境后,您需要使用
激活它source activate environment_name
然后您可以执行安装Jupyter(激活您的环境)
conda install jupyter
要安装其他软件包,只需执行相同的操作(激活您的环境),例如:
conda install numpy
conda install pandas
conda install scikit-learn
conda install matplotlib
pip install --upgrade tensorflow
要开始使用Jupyter,首先需要激活环境,然后键入jupyter notebook
才能使用它。