728x90
다음과 같이 아나콘다 가상환경에서 주피터랩 설치 후 실행시 ModuleNotFoundError 가 발생하는 경우
(tfquantum) founder@hilbert:~$ conda install -c conda-forge jupyterlab Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: /home/founder/anaconda3/envs/tfquantum added / updated specs: - jupyterlab
(tfquantum) founder@hilbert:~$ jupyter lab --no-browser --ip=0.0.0.0 [W 04:46:50.757 LabApp] All authentication is disabled. Anyone who can connect to this server will be able to run code. [W 04:46:50.760 LabApp] Error loading server extension jupyter_nbextensions_configurator Traceback (most recent call last): File "/home/founder/anaconda3/envs/tfquantum/lib/python3.7/site-packages/notebook/notebookapp.py", line 1670, in init_server_extensions mod = importlib.import_module(modulename) File "/home/founder/anaconda3/envs/tfquantum/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator' [I 04:46:50.763 LabApp] JupyterLab extension loaded from /home/founder/anaconda3/envs/tfquantum/lib/python3.7/site-packages/jupyterlab [I 04:46:50.763 LabApp] JupyterLab application directory is /home/founder/anaconda3/envs/tfquantum/share/jupyter/lab [I 04:46:50.765 LabApp] Serving notebooks from local directory: /home/founder [I 04:46:50.765 LabApp] The Jupyter Notebook is running at: [I 04:46:50.765 LabApp] http://hilbert:8888/ [I 04:46:50.765 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator' 에러가 발생했다. 다음과 같이 jupyter_nbextensions_configurator 를 설치한다. 해당 에러와 관련하여 다음 링크를 참고한다.
https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1115#issuecomment-571225766
(tfquantum) founder@hilbert:~$ conda install -c conda-forge jupyter_contrib_nbextensions Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: /home/founder/anaconda3/envs/tfquantum added / updated specs: - jupyter_contrib_nbextensions
정상적으로 작동함을 확인할 수 있다.
(tfquantum) founder@hilbert:~$ jupyter lab --no-browser --ip=0.0.0.0 [W 04:48:43.603 LabApp] All authentication is disabled. Anyone who can connect to this server will be able to run code. [I 04:48:43.620 LabApp] [jupyter_nbextensions_configurator] enabled 0.4.1 [I 04:48:43.623 LabApp] JupyterLab extension loaded from /home/founder/anaconda3/envs/tfquantum/lib/python3.7/site-packages/jupyterlab [I 04:48:43.623 LabApp] JupyterLab application directory is /home/founder/anaconda3/envs/tfquantum/share/jupyter/lab [I 04:48:43.625 LabApp] Serving notebooks from local directory: /home/founder [I 04:48:43.625 LabApp] The Jupyter Notebook is running at: [I 04:48:43.625 LabApp] http://hilbert:8888/ [I 04:48:43.625 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
728x90
댓글을 사용할 수 없습니다.