我可以安装jupyter并在Ubuntu 14.04上使用pip
运行python 2.7笔记本没问题。但是,一旦我尝试使用python setup.py install
构建我自己的自定义编写的模块,我就不能再启动笔记本并得到以下错误告诉我Native内核(python2)不可用且ipywidgets不是安装:
[W 15:14:06.033 NotebookApp] ipywidgets package not installed. Widgets are unavailable.
[I 15:14:06.040 NotebookApp] Serving notebooks from local directory: /
[I 15:14:06.040 NotebookApp] 0 active kernels
[I 15:14:06.040 NotebookApp] The Jupyter Notebook is running at: http://0.0.0.0:8888/
[I 15:14:06.040 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 15:14:19.357 NotebookApp] Uploading file to /Untitled.ipynb
[I 15:14:19.361 NotebookApp] Writing notebook-signing key to /home/qsi/.local/share/jupyter/notebook_secret
[W 15:14:54.628 NotebookApp] Native kernel (python2) is not available
我不知道如何修复它。我试图手动安装内核以及installing ipython again,但没有任何帮助。我猜测setup.py
会以某种方式导致冲突。下面是我的setup.py:
from setuptools import setup, find_packages
setup(
name='test_module',
version='0.0.1',
description='',
packages = find_packages(),
package_data = {
},
url='',
license='',
author='',
author_email='',
install_requires=[
'numpy>=1.0'
]
)