我正在使用python3.6。我在虚拟环境中使用pip命令安装了木星实验室,但是当我输入“木星笔记本”打开它时,我得到了错误:
def _failing_new(*args: t.Any, **kwargs: t.Any) -> t.NoReturn:
AttributeError: module 'typing' has no attribute 'NoReturn'--目前在我的虚拟环境中安装的库是:
argon2-cffi==20.1.0 async-generator==1.10 attrs==21.2.0
backcall==0.2.0 bleach==3.3.1 certifi==2021.5.30 cffi==1.14.6
charset-normalizer==2.0.3 colorama==0.4.4 decorator==5.0.9
defusedxml==0.7.1 entrypoints==0.3 idna==3.2
importlib-metadata==4.6.1 ipykernel==5.5.5 ipython==7.16.1
ipython-genutils==0.2.0 jedi==0.18.0 Jinja2==3.0.0 json5==0.9.6
jsonschema==3.2.0 jupyter-client==6.1.12 jupyter-core==4.7.1
jupyterlab==2.3.1 jupyterlab-pygments==0.1.2 jupyterlab-server==1.2.0
MarkupSafe==2.0.1 mistune==0.8.4 nbclient==0.5.1 nbconvert==6.0.7
nbformat==5.1.3 nest-asyncio==1.5.1 notebook==6.4.0 numpy==1.19.5
packaging==21.0 pandas==0.25.3 pandocfilters==1.4.3 parso==0.8.2
pickleshare==0.7.5 prometheus-client==0.11.0 prompt-toolkit==3.0.3
pycparser==2.20 Pygments==2.9.0 pyparsing==2.4.7 pyrsistent==0.18.0
python-dateutil==2.8.2 pytz==2021.1 pywin32==301 pywinpty==1.1.3
pyzmq==22.1.0 requests==2.26.0 Send2Trash==1.7.1 six==1.16.0
terminado==0.10.1 testpath==0.5.0 tornado==6.1 traitlets==4.3.3
typing-extensions==3.7.4.3 urllib3==1.26.6 wcwidth==0.2.5
webencodings==0.5.1 zipp==3.5.0大多数安装在jupyterlab本身。
提前感谢!
发布于 2021-07-23 12:22:38
看起来您正在使用Python3.6.0;这个属性仅在Python3.6.2 (参考文献)中添加。我强烈建议您至少将Python安装更新为Python3.6.13(自3.6.0发行版以来有许多安全修复),并在可能的情况下最好切换到Python3.7.x或3.8.x。
https://stackoverflow.com/questions/68498809
复制相似问题