我使用submitHandler
运行submit
。一切都很好,直到我无法启动Jupyter Notebook。错误消息是:
miniconda
在Google搜索之后,我尝试了以下操作:
Python 3.6
但是它给出了警告消息:
File "/Users/usr/miniconda3/bin/jupyter-notebook", line 7, in <module>
from notebook.notebookapp import main
File "/Users/usr/miniconda3/lib/python2.7/site-packages/notebook/notebookapp.py", line 45, in <module>
ioloop.install()
File "/Users/usr/miniconda3/lib/python2.7/site-packages/zmq/eventloop/ioloop.py", line 210, in install
assert (not ioloop.IOLoop.initialized()) or \
AttributeError: type object 'IOLoop' has no attribute 'initialized'
但是我没有仔细阅读,所以我还是照做了。现在,我可以打开Jupyter笔记本,但是我的Python已降级为conda install tornado=4.5.3
,我该如何退回CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a 2.7.x release that supports hmac.compare_digest as soon as possible.
? :'(
提前谢谢!
答案 0 :(得分:0)
我解决了这个问题。感谢@ C.Nivs和@Feelsbadman。这是我的解决方案:
conda env list
发现我有一个基准,同时存在一个2.7和3.6环境,该基准是默认的。source activate py36
激活了我的3.6环境conda install notebook ipykernel
然后用ipython kernel install --user
创建了一个ipython内核由于我不使用2,因此我将尝试从jupyter笔记本中删除Python2。
感谢您的帮助。