环境:Acanda3 2024.02-1+Python-3.7.16+scikit-learn==1.0.2+keras==2.11.0
Package Version ---------------------------- ----------- absl-py 2.1.0 anyio 3.5.0 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 astunparse 1.6.3 attrs 22.1.0 backcall 0.2.0 beautifulsoup4 4.11.1 bleach 4.1.0 cachetools 5.3.3 certifi 2022.12.7 cffi 1.15.1 charset-normalizer 3.3.2 colorama 0.4.6 debugpy 1.5.1 decorator 5.1.1 defusedxml 0.7.1 entrypoints 0.4 fastjsonschema 2.16.2 flatbuffers 24.3.25 flit_core 3.6.0 gast 0.4.0 google-auth 2.29.0 google-auth-oauthlib 0.4.6 google-pasta 0.2.0 grpcio 1.62.1 h5py 3.8.0 idna 3.4 importlib-metadata 4.11.3 importlib-resources 5.2.0 ipykernel 6.15.2 ipython 7.31.1 ipython-genutils 0.2.0 ipywidgets 7.6.5 jedi 0.18.1 Jinja2 3.1.2 joblib 1.1.1 json5 0.9.6 jsonschema 4.17.3 jupyter 1.0.0 jupyter_client 7.4.9 jupyter-console 6.4.4 jupyter_core 4.11.2 jupyter-server 1.23.4 jupyterlab 1.2.6 jupyterlab-pygments 0.1.2 jupyterlab-server 1.0.7 jupyterlab-widgets 1.0.0 keras 2.11.0 libclang 18.1.1 lxml 4.9.1 Markdown 3.4.4 MarkupSafe 2.1.1 matplotlib-inline 0.1.6 mistune 0.8.4 nbclassic 0.5.2 nbclient 0.5.13 nbconvert 6.5.4 nbformat 5.7.0 nest-asyncio 1.5.6 notebook 6.5.2 notebook_shim 0.2.2 numpy 1.21.6 oauthlib 3.2.2 opt-einsum 3.3.0 packaging 22.0 pandas 1.3.5 pandocfilters 1.5.0 parso 0.8.3 pickleshare 0.7.5 pip 22.3.1 pkgutil_resolve_name 1.3.10 ply 3.11 prometheus-client 0.14.1 prompt-toolkit 3.0.36 protobuf 3.19.6 psutil 5.9.0 pyasn1 0.5.1 pyasn1-modules 0.3.0 pycparser 2.21 Pygments 2.11.2 PyQt5 5.15.7 PyQt5-sip 12.11.0 pyrsistent 0.18.0 python-dateutil 2.8.2 pytz 2024.1 pywin32 305.1 pywinpty 2.0.10 pyzmq 23.2.0 qtconsole 5.4.0 QtPy 2.2.0 requests 2.31.0 requests-oauthlib 2.0.0 rsa 4.9 scikit-learn 1.0.2 scipy 1.7.3 Send2Trash 1.8.0 setuptools 65.6.3 sip 6.6.2 six 1.16.0 sniffio 1.2.0 soupsieve 2.3.2.post1 tensorboard 2.11.2 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.1 tensorflow 2.11.0 tensorflow-estimator 2.11.0 tensorflow-intel 2.11.0 tensorflow-io-gcs-filesystem 0.31.0 termcolor 2.3.0 terminado 0.17.1 threadpoolctl 3.1.0 tinycss2 1.2.1 toml 0.10.2 tornado 6.2 traitlets 5.7.1 typing_extensions 4.7.1 urllib3 2.0.7 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 0.58.0 Werkzeug 2.2.3 wheel 0.38.4 widgetsnbextension 3.5.2 wincertstore 0.2 wrapt 1.16.0 zipp 3.11.0详细软件包
实验中遇到的几个问题
错误1
解决办法
问题2
解决办法:尝试了更改安装tensorflow、更改keras版本、python版本后无果
最终通过更改typing-extension的版本成功解决