我尝试这样安装jupyter tabnine扩展:
pip3 install jupyter-tabnine
jupyter nbextension install
对于第二个命令,我有这个错误:
Installing /home/rouizi/.local/lib/python3.6/site-packages/jupyter_tabnine/static -> jupyter_tabnine
Traceback (most recent call last):
File "/home/rouizi/.local/bin/jupyter-nbextension", line 11, in <module>
sys.exit(main())
File "/home/rouizi/.local/lib/python3.6/site-packages/jupyter_core/application.py", line 268, in
launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/home/rouizi/.local/lib/python3.6/site-packages/traitlets/config/application.py", line 664, in
launch_instance
app.start()
File "/home/rouizi/.local/lib/python3.6/site-packages/notebook/nbextensions.py", line 983, in start
super(NBExtensionApp, self).start()
File "/home/rouizi/.local/lib/python3.6/site-packages/jupyter_core/application.py", line 257, in start
self.subapp.start()
File "/home/rouizi/.local/lib/python3.6/site-packages/notebook/nbextensions.py", line 711, in start
self.install_extensions()
File "/home/rouizi/.local/lib/python3.6/site-packages/notebook/nbextensions.py", line 690, in
install_extensions
**kwargs
File "/home/rouizi/.local/lib/python3.6/site-packages/notebook/nbextensions.py", line 220, in
install_nbextension_python
destination=dest, logger=logger
File "/home/rouizi/.local/lib/python3.6/site-packages/notebook/nbextensions.py", line 121, in
install_nbextension
ensure_dir_exists(nbext)
File "/home/rouizi/.local/lib/python3.6/site-packages/jupyter_core/utils/__init__.py", line 13, in
ensure_dir_exists
os.makedirs(path, mode=mode)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter'
所以我试着用sudo
sudo jupyter nbextension install --py jupyter_tabnine
Traceback (most recent call last):
File "/snap/jupyter/6/bin/jupyter-nbextension", line 11, in <module>
sys.exit(main())
File "/snap/jupyter/6/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in
launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/snap/jupyter/6/lib/python3.7/site-packages/traitlets/config/application.py", line 658, in
launch_instance
app.start()
File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/nbextensions.py", line 988, in start
super(NBExtensionApp, self).start()
File "/snap/jupyter/6/lib/python3.7/site-packages/jupyter_core/application.py", line 255, in start
self.subapp.start()
File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/nbextensions.py", line 716, in start
self.install_extensions()
File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/nbextensions.py", line 695, in
install_extensions
**kwargs
File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/nbextensions.py", line 211, in
install_nbextension_python
m, nbexts = _get_nbextension_metadata(module)
File "/snap/jupyter/6/lib/python3.7/site-packages/notebook/nbextensions.py", line 1122, in
_get_nbextension_metadata
m = import_item(module)
File "/snap/jupyter/6/lib/python3.7/site-packages/traitlets/utils/importstring.py", line 42, in
import_item
return __import__(parts[0])
ModuleNotFoundError: No module named 'jupyter_tabnine'
似乎没有找到模块jupyter_tabnine
,我该怎么解决这个问题?
发布于 2020-04-17 23:16:10
我得到了同样的问题,但它似乎解决了以下升级:
pip3 install jupyter-tabnine --upgrade
如果不适合你,那就试试sudo:
sudo pip3 install jupyter-tabnine --upgrade
升级后,我尝试并解决了问题:
sudo jupyter nbextension install --py jupyter_tabnine
希望你的工作顺利完成。
发布于 2020-04-25 18:59:09
亲爱的,我建议你遵循我下面的方法,并且你喜欢使用它
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
必须尝试
https://stackoverflow.com/questions/60115014
复制相似问题