#前提・実現したいこと
jupyter lab を正しく実行したい。
自動テストをしたく環境構築しています。普段pythonを使用しておらず、手探り状態です。
#発生している問題・エラーメッセージ
pip install jupyterlab
で正常インストール後、
jupyter lab
を実行すると
Traceback (most recent call last): File "/Users/[uer name]/.pyenv/versions/anaconda3-4.3.1/envs/py3.6.0/bin/jupyter-lab", line 5, in <module> from jupyterlab.labapp import main File "/Users/[uer name]/.pyenv/versions/anaconda3-4.3.1/envs/py3.6.0/lib/python3.6/site-packages/jupyterlab/__init__.py", line 7, in <module> from .labapp import LabApp File "/Users/[uer name]/.pyenv/versions/anaconda3-4.3.1/envs/py3.6.0/lib/python3.6/site-packages/jupyterlab/labapp.py", line 15, in <module> from jupyterlab_server import slugify, WORKSPACE_EXTENSION File "/Users/chiuney6/.pyenv/versions/anaconda3-4.3.1/envs/py3.6.0/lib/python3.6/site-packages/jupyterlab_server/__init__.py", line 4, in <module> from .app import LabServerApp File "/Users/chiuney6/.pyenv/versions/anaconda3-4.3.1/envs/py3.6.0/lib/python3.6/site-packages/jupyterlab_server/app.py", line 7, in <module> from jupyter_server.extension.application import ExtensionApp, ExtensionAppJinjaMixin File "/Users/[uer name]/.pyenv/versions/anaconda3-4.3.1/envs/py3.6.0/lib/python3.6/site-packages/jupyter_server/extension/application.py", line 21, in <module> from jupyter_server.serverapp import ServerApp File "/Users/[uer name]/.pyenv/versions/anaconda3-4.3.1/envs/py3.6.0/lib/python3.6/site-packages/jupyter_server/serverapp.py", line 75, in <module> from jupyter_server.services.contents.filemanager import AsyncFileContentsManager, FileContentsManager File "/Users/[uer name]/.pyenv/versions/anaconda3-4.3.1/envs/py3.6.0/lib/python3.6/site-packages/jupyter_server/services/contents/filemanager.py", line 15, in <module> from anyio import run_sync_in_worker_thread File "/Users/[uer name]6/.pyenv/versions/anaconda3-4.3.1/envs/py3.6.0/lib/python3.6/site-packages/anyio/__init__.py", line 17, in <module> from ._core._compat import maybe_async, maybe_async_cm File "/Users/[uer name]/.pyenv/versions/anaconda3-4.3.1/envs/py3.6.0/lib/python3.6/site-packages/anyio/_core/_compat.py", line 3, in <module> from typing import ( ImportError: cannot import name 'AsyncContextManager'
のエラーが発生、解決できていません。
#試したこと
https://reject.tokyo/python-importerror-cannot-import/
この記事に沿って
_compat.py => _compat_new.py
と変更してみたら
ModuleNotFoundError: No module named 'anyio._core._compat'
のエラーになりました。
#補足
pip 21.1.1
Python 2.7.16
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。