Data Science/AI
[에러 해결] jupyter-nbconvert not found 해결하기
토마토.
2023. 3. 6. 19:12
jupyter notebook을 html로 전환하기 — 작은 발자국들의 위대한 여정 (tistory.com)
요즘 로컬에서 주피터 노트북으로 공부한 내용을 기록하고 있다.
주피터 노트북을 html로 변환하여 티스토리에 업로드하려던 중 에러가 발생했다.
에러 로그는 다음과 같다.
$ jupyter nbconvert Chapter5.ipynb --to html
Traceback (most recent call last):
File "/usr/bin/jupyter", line 11, in <module>
load_entry_point('jupyter-core==4.6.3', 'console_scripts', 'jupyter')()
File "/usr/lib/python3/dist-packages/jupyter_core/command.py", line 247, in main
command = _jupyter_abspath(subcommand)
File "/usr/lib/python3/dist-packages/jupyter_core/command.py", line 133, in _jupyter_abspath
raise Exception(
Exception: Jupyter command `jupyter-nbconvert` not found.
결론만 말하자면,
$ sudo apt install jupyter-core
$ pip install nbconvert
위 명령어 중 pip 설치를 빼먹어서 생긴 에러였다.
nbconvert pip까지 설치해주고 나면,
$ jupyter nbconvert --to html ./Chapter5.ipynb
이렇게 ipynb 파일을 html 파일로 변환해줄 수 있다 :)