《Qt编程的艺术》——8.1.2 模型类(Model Classes)

Qt模型体系详解
本文介绍了Qt中的模型体系,包括QAbstractItemModel及其派生类QAbstractListModel和QAbstractTableModel的功能和适用场景。此外还探讨了QStringListModel、QStandardItemModel、QAbstractProxyModel等具体实现及其用途。
Qt中所有的模型(Model)都继承自一个公共的抽象基类——QAbstractItemModel类。在这里,抽象的意思是指,这个类不能直接实例化,因为它包含有未实现的方法。程序员只有根据其目的实现缺少的方法,派生一个子类实例化来使用。这就如图8.4所示,每一个模型(Model)也都是一个QObject,因此也能享受到Qt的自动内存管理机制。
 
QAbstractItemModel并不是模型(Model)继承关系中唯一的抽象类。如果你仔细观察抽象关系结构,你会发现有两个额外的继承自QAbstractItemModel的类,分别叫做QAbstractListModel和QAbstractTableModel,它们的API较之QAbstractItemModel来说,更加细化了,更适合于List view或Table view。

 
出于兼容性考虑,基于QAbstractListModel和QAbstractTableModel的类理论可以被用在表格(table)、嵌套表格(nested lists)和一维表格(one-dimensional list)。但是,只有你的模型(model)严格地应用在对应的QListView或者QTableView上,才有实际意义。比如说,QAbstractListModel在设计上把可用的列数减少到一,这样对于一个table view,并没有什么意义。
 
有了QStringListModel,Interview又提供了一种QAbstractListModel的专门实现,它实现了一个可以编辑的model,数据源是一个字符串表(string list)。如果用户在view中修改了字符串,model会对字符串表中相应的条目做出调整。
 
QStandardItemModel允许数据直接存在model里,这是与理论矛盾的,因为在理论上说model只是数据源与view间的中间服务层。但是之所以还要这么做,是因为在某些数据量要求不大的应用案例中,这么做很实用。对于大型应用程序来说,QStandardItemModel总是太不灵活。
 
QAbstractProxyModel替换了Qt4.1中的QProxyModel类。QProxyModel类的任务是从model中获取数据、处理他们,然后返回为一个新的Model,举例来说,要过滤数据。但结果是这个类太不灵活,所以最终被替换了。Trolltech建议不要再新的项目中使用这个被替换的类。QAbstractProxyModel很强大,但又来了,他是个抽象类,需要派生子类实现它提供的功能。
 
既然QProxyModel不再使用了,有新类来替代它,那么新类的使用应当比前者更简单才对,所以Trolltech提供了QSortFilterProxyModel类,主要用来过滤盒排序,而不需要派生子类。
 
最终Interview提供了一个QDirModel类供开发者使用,如果需要的话,可以在QListView、QTreeView和QTableView中显示目录结构。
 
(base) C:\Users\Administrator>pip list Package Version --------------------------------- --------- addict 2.4.0 aiobotocore 2.12.3 aiohttp 3.9.5 aioitertools 0.7.1 aioredis 2.0.1 aiosignal 1.2.0 alabaster 0.7.12 albucore 0.0.24 albumentations 2.0.8 altair 5.0.1 anaconda-anon-usage 0.4.4 anaconda-catalogs 0.2.0 anaconda-client 1.12.3 anaconda-cloud-auth 0.5.1 anaconda-navigator 2.6.1 anaconda-project 0.11.1 annotated-types 0.6.0 anyio 4.2.0 appdirs 1.4.4 archspec 0.2.3 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 arrow 1.2.3 astroid 3.2.2 astropy 5.3.4 asttokens 2.0.5 async-lru 2.0.4 async-timeout 4.0.3 atomicwrites 1.4.0 attrs 23.1.0 Automat 20.2.0 autopep8 1.6.0 Babel 2.11.0 backcall 0.2.0 backports.functools-lru-cache 1.6.4 backports.tempfile 1.0 backports.weakref 1.0.post1 bcrypt 3.2.0 beautifulsoup4 4.12.3 binaryornot 0.4.4 black 24.4.2 bleach 4.1.0 blinker 1.6.2 bokeh 3.4.1 boltons 23.0.0 botocore 1.34.69 Bottleneck 1.3.7 Brotli 1.0.9 cachetools 4.2.2 certifi 2024.6.2 cffi 1.16.0 chardet 4.0.0 charset-normalizer 2.0.4 click 8.1.7 cloudpickle 2.2.1 clyent 1.2.2 colorama 0.4.6 colorcet 3.1.0 comm 0.2.1 conda 24.5.0 conda-build 24.5.1 conda-content-trust 0.2.0 conda_index 0.4.0 conda-libmamba-solver 24.1.0 conda-pack 0.6.0 conda-package-handling 2.3.0 conda_package_streaming 0.10.0 conda-repo-cli 1.0.88 conda-token 0.4.0 conda-verify 3.4.2 constantly 23.10.4 contourpy 1.2.0 cookiecutter 2.6.0 cryptography 42.0.5 cssselect 1.2.0 cycler 0.11.0 cytoolz 0.12.2 dask 2024.5.0 dask-expr 1.1.0 datashader 0.16.2 debugpy 1.6.7 decorator 5.1.1 defusedxml 0.7.1 diff-match-patch 20200713 dill 0.3.8 distributed 2024.5.0 distro 1.9.0 docstring-to-markdown 0.11 docutils 0.18.1 einops 0.8.1 entrypoints 0.4 et-xmlfile 1.1.0 eval_type_backport 0.2.2 exceptiongroup 1.2.0 executing 0.8.3 fastjsonschema 2.16.2 filelock 3.13.1 fire 0.6.0 flake8 4.0.1 Flask 3.0.3 fonttools 4.25.0 frozendict 2.4.2 frozenlist 1.4.0 fsspec 2024.3.1 future 0.18.3 gensim 4.3.2 geopandas 1.0.1 gitdb 4.0.7 GitPython 3.1.37 gmpy2 2.1.2 greenlet 3.0.1 h5py 3.11.0 HeapDict 1.0.1 holoviews 1.19.0 huggingface-hub 0.33.2 hvplot 0.10.0 hyperlink 21.0.0 idna 3.7 imagecodecs 2023.1.23 imageio 2.33.1 imagesize 1.4.1 imbalanced-learn 0.12.3 importlib-metadata 7.0.1 importlib-resources 6.1.1 incremental 22.10.0 inflection 0.5.1 iniconfig 1.1.1 intake 0.7.0 intervaltree 3.1.0 ipykernel 6.28.0 ipython 7.31.1 ipython-genutils 0.2.0 ipywidgets 8.1.2 isort 5.9.3 itemadapter 0.3.0 itemloaders 1.1.0 itsdangerous 2.2.0 jaraco.classes 3.2.1 jedi 0.18.1 jellyfish 1.0.1 Jinja2 3.1.4 jmespath 1.0.1 joblib 1.4.2 json5 0.9.6 jsonpatch 1.32 jsonpointer 2.1 jsonschema 4.19.2 jsonschema-specifications 2023.7.1 jupyter 1.0.0 jupyter_client 8.6.0 jupyter-console 6.6.3 jupyter_core 5.5.0 jupyter-events 0.10.0 jupyter-lsp 2.2.0 jupyter_server 2.10.0 jupyter_server_terminals 0.4.4 jupyterlab 4.0.11 jupyterlab-pygments 0.1.2 jupyterlab_server 2.25.1 jupyterlab-widgets 3.0.10 keyring 24.3.1 kiwisolver 1.4.4 lazy_loader 0.4 lazy-object-proxy 1.10.0 lckr_jupyterlab_variableinspector 3.1.0 libarchive-c 2.9 libmambapy 1.5.6 lightning-utilities 0.14.3 linkify-it-py 2.0.0 llvmlite 0.42.0 lmdb 1.4.1 locket 1.0.0 lxml 5.2.1 lz4 4.3.2 Markdown 3.4.1 markdown-it-py 2.2.0 MarkupSafe 2.1.3 matplotlib 3.8.4 matplotlib-inline 0.1.6 mccabe 0.6.1 mdit-py-plugins 0.3.0 mdurl 0.1.0 menuinst 2.1.1 mistune 2.0.4 mkl-fft 1.3.8 mkl-random 1.2.4 mkl-service 2.4.0 more-itertools 10.1.0 mpmath 1.3.0 msgpack 1.0.3 multidict 6.0.4 multipledispatch 0.6.0 munkres 1.1.4 mypy 1.10.0 mypy-extensions 1.0.0 navigator-updater 0.5.1 nbclient 0.8.0 nbconvert 7.10.0 nbformat 5.9.2 nest-asyncio 1.6.0 networkx 3.2.1 nltk 3.8.1 notebook 7.0.8 notebook_shim 0.2.3 numba 0.59.1 numexpr 2.8.7 numpy 1.26.4 numpydoc 1.5.0 opencv-python 4.8.1.78 opencv-python-headless 4.11.0.86 openpyxl 3.1.2 overrides 7.4.0 packaging 23.2 pandas 2.2.2 pandocfilters 1.5.0 panel 1.4.4 param 2.1.0 paramiko 2.8.1 parsel 1.8.1 parso 0.8.3 partd 1.4.1 pathlib 1.0.1 pathspec 0.10.3 patsy 0.5.6 pexpect 4.8.0 pickleshare 0.7.5 pillow 10.3.0 pip 24.0 pkce 1.0.3 pkginfo 1.10.0 platformdirs 3.10.0 plotly 5.22.0 pluggy 1.0.0 ply 3.11 prometheus-client 0.14.1 prompt-toolkit 3.0.43 Protego 0.1.16 protobuf 3.20.3 psutil 5.9.0 ptyprocess 0.7.0 pure-eval 0.2.2 py-cpuinfo 9.0.0 pyarrow 14.0.2 pyasn1 0.4.8 pyasn1-modules 0.2.8 pybboxes 0.1.6 pycodestyle 2.8.0 pycosat 0.6.6 pycparser 2.21 pyct 0.5.0 pycurl 7.45.2 pydantic 2.11.7 pydantic_core 2.33.2 pydeck 0.7.1 PyDispatcher 2.0.5 pydocstyle 6.3.0 pyerfa 2.0.1.4 pyflakes 2.4.0 Pygments 2.15.1 PyJWT 2.8.0 pylint 3.2.2 pylint-venv 3.0.3 pyls-spyder 0.4.0 Pympler 0.9 PyNaCl 1.5.0 pyodbc 5.0.1 pyogrio 0.11.0 pyOpenSSL 24.0.0 pyparsing 3.0.9 pyproj 3.6.1 PyQt5 5.15.10 PyQt5-sip 12.13.0 PyQtWebEngine 5.15.6 PySocks 1.7.1 pytest 7.4.4 python-dateutil 2.8.2 python-dotenv 0.21.0 python-json-logger 2.0.7 python-lsp-black 1.0.0 python-lsp-jsonrpc 1.0.0 python-lsp-server 1.3.3 python-slugify 5.0.2 python-snappy 0.6.1 pytoolconfig 1.2.6 pytorch-lightning 2.5.2 pytorch-model-summary 0.1.2 pytz 2024.1 pyviz_comms 3.0.2 pywavelets 1.5.0 pywin32 305.1 pywin32-ctypes 0.2.2 pywinpty 2.0.10 PyYAML 6.0.1 pyzmq 25.1.2 QDarkStyle 3.0.2 qstylizer 0.2.2 QtAwesome 1.2.2 qtconsole 5.2.2 QtPy 2.4.1 queuelib 1.6.2 referencing 0.30.2 regex 2023.10.3 requests 2.32.2 requests-file 1.5.1 requests-toolbelt 1.0.0 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rich 13.3.5 rope 1.12.0 rpds-py 0.10.6 Rtree 1.0.1 ruamel.yaml 0.17.21 ruamel.yaml.clib 0.2.6 ruamel-yaml-conda 0.17.21 s3fs 2024.3.1 safetensors 0.5.3 sahi 0.11.16 scikit-image 0.22.0 scikit-learn 1.4.2 scipy 1.12.0 Scrapy 2.11.1 seaborn 0.13.2 semver 2.13.0 Send2Trash 1.8.2 service-identity 18.1.0 setuptools 69.5.1 shapely 2.0.4 simsimd 6.4.9 sip 6.7.12 six 1.16.0 smart-open 5.2.1 smmap 4.0.0 sniffio 1.3.0 snowballstemmer 2.2.0 sortedcontainers 2.4.0 soupsieve 2.5 Sphinx 5.0.2 sphinxcontrib-applehelp 1.0.2 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 2.0.0 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.5 spyder 5.2.2 spyder-kernels 2.2.1 SQLAlchemy 2.0.30 stack-data 0.2.0 statsmodels 0.14.2 streamlit 1.16.0 stringzilla 3.12.5 sympy 1.14.0 tables 3.9.2 tabulate 0.9.0 tblib 1.7.0 tenacity 8.2.2 termcolor 2.4.0 terminado 0.17.1 terminaltables 3.1.10 text-unidecode 1.3 textdistance 4.2.1 threadpoolctl 2.2.0 three-merge 0.1.1 tifffile 2023.4.12 timm 1.0.16 tinycss2 1.2.1 tldextract 3.2.0 toml 0.10.2 tomli 2.0.1 tomlkit 0.11.1 toolz 0.12.0 torch 1.13.1 torchaudio 0.13.1 torchinfo 1.8.0 torchmetrics 1.7.3 torchsummary 1.5.1 torchvision 0.14.1 tornado 6.4.1 tqdm 4.66.4 traitlets 5.14.3 ttach 0.0.3 Twisted 23.10.0 twisted-iocpsupport 1.0.2 typing_extensions 4.14.0 typing-inspection 0.4.1 tzdata 2023.3 tzlocal 5.2 uc-micro-py 1.0.1 ujson 5.10.0 ultralytics 8.2.35 ultralytics-thop 2.0.0 Unidecode 1.2.0 urllib3 1.26.18 validators 0.18.2 w3lib 2.1.2 watchdog 4.0.1 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 1.8.0 Werkzeug 3.0.3 whatthepatch 1.0.2 wheel 0.43.0 widgetsnbextension 4.0.10 win-inet-pton 1.1.0 wrapt 1.14.1 xarray 2023.6.0 xlwings 0.31.4 xyzservices 2022.9.0 yapf 0.31.0 yarl 1.9.3 zict 3.0.0 zipp 3.17.0 zope.interface 5.4.0 zstandard 0.22.0怎么修改才能解决上一个问题
07-04
--------------------------------- ------------ accelerate 1.8.1 addict 2.4.0 aiobotocore 2.12.3 aiohttp 3.9.5 aioitertools 0.7.1 aioredis 2.0.1 aiosignal 1.2.0 alabaster 0.7.12 albucore 0.0.24 albumentations 2.0.8 altair 5.0.1 anaconda-anon-usage 0.4.4 anaconda-catalogs 0.2.0 anaconda-client 1.12.3 anaconda-cloud-auth 0.5.1 anaconda-navigator 2.6.1 anaconda-project 0.11.1 annotated-types 0.6.0 anyio 4.2.0 appdirs 1.4.4 archspec 0.2.3 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 arrow 1.2.3 astroid 3.2.2 astropy 5.3.4 asttokens 2.0.5 async-lru 2.0.4 async-timeout 4.0.3 atomicwrites 1.4.0 attrs 23.1.0 Automat 20.2.0 autopep8 1.6.0 Babel 2.11.0 backcall 0.2.0 backports.functools-lru-cache 1.6.4 backports.tempfile 1.0 backports.weakref 1.0.post1 bcrypt 3.2.0 beautifulsoup4 4.12.3 binaryornot 0.4.4 black 24.4.2 bleach 4.1.0 blinker 1.6.2 bokeh 3.4.1 boltons 23.0.0 botocore 1.34.69 Bottleneck 1.3.7 Brotli 1.0.9 cachetools 4.2.2 catalyst 22.4 certifi 2024.6.2 cffi 1.16.0 chardet 4.0.0 charset-normalizer 2.0.4 click 8.1.7 cloudpickle 2.2.1 clyent 1.2.2 colorama 0.4.6 colorcet 3.1.0 comm 0.2.1 conda 24.5.0 conda-build 24.5.1 conda-content-trust 0.2.0 conda_index 0.4.0 conda-libmamba-solver 24.1.0 conda-pack 0.6.0 conda-package-handling 2.3.0 conda_package_streaming 0.10.0 conda-repo-cli 1.0.88 conda-token 0.4.0 conda-verify 3.4.2 constantly 23.10.4 contourpy 1.2.0 cookiecutter 2.6.0 cryptography 42.0.5 cssselect 1.2.0 cycler 0.11.0 cytoolz 0.12.2 dask 2024.5.0 dask-expr 1.1.0 datashader 0.16.2 debugpy 1.6.7 decorator 5.1.1 defusedxml 0.7.1 diff-match-patch 20200713 dill 0.3.8 distributed 2024.5.0 distro 1.9.0 docstring-to-markdown 0.11 docutils 0.18.1 einops 0.8.1 entrypoints 0.4 et-xmlfile 1.1.0 eval_type_backport 0.2.2 exceptiongroup 1.2.0 executing 0.8.3 fastjsonschema 2.16.2 filelock 3.13.1 fire 0.6.0 flake8 4.0.1 Flask 3.0.3 fonttools 4.25.0 frozendict 2.4.2 frozenlist 1.4.0 fsspec 2024.3.1 future 0.18.3 gensim 4.3.2 geopandas 1.0.1 gitdb 4.0.7 GitPython 3.1.37 gmpy2 2.1.2 greenlet 3.0.1 h5py 3.11.0 HeapDict 1.0.1 holoviews 1.19.0 huggingface-hub 0.33.2 hvplot 0.10.0 hydra-slayer 0.5.0 hyperlink 21.0.0 idna 3.7 imagecodecs 2023.1.23 imageio 2.33.1 imagesize 1.4.1 imbalanced-learn 0.12.3 importlib-metadata 7.0.1 importlib-resources 6.1.1 incremental 22.10.0 inflection 0.5.1 iniconfig 1.1.1 intake 0.7.0 intervaltree 3.1.0 ipykernel 6.28.0 ipython 7.31.1 ipython-genutils 0.2.0 ipywidgets 8.1.2 isort 5.9.3 itemadapter 0.3.0 itemloaders 1.1.0 itsdangerous 2.2.0 jaraco.classes 3.2.1 jedi 0.18.1 jellyfish 1.0.1 Jinja2 3.1.4 jmespath 1.0.1 joblib 1.4.2 json5 0.9.6 jsonpatch 1.32 jsonpointer 2.1 jsonschema 4.19.2 jsonschema-specifications 2023.7.1 jupyter 1.0.0 jupyter_client 8.6.0 jupyter-console 6.6.3 jupyter_core 5.5.0 jupyter-events 0.10.0 jupyter-lsp 2.2.0 jupyter_server 2.10.0 jupyter_server_terminals 0.4.4 jupyterlab 4.0.11 jupyterlab-pygments 0.1.2 jupyterlab_server 2.25.1 jupyterlab-widgets 3.0.10 keyring 24.3.1 kiwisolver 1.4.4 lazy_loader 0.4 lazy-object-proxy 1.10.0 lckr_jupyterlab_variableinspector 3.1.0 libarchive-c 2.9 libmambapy 1.5.6 lightning-utilities 0.14.3 linkify-it-py 2.0.0 llvmlite 0.42.0 lmdb 1.4.1 locket 1.0.0 lxml 5.2.1 lz4 4.3.2 Markdown 3.4.1 markdown-it-py 2.2.0 MarkupSafe 2.1.3 matplotlib 3.8.4 matplotlib-inline 0.1.6 mccabe 0.6.1 mdit-py-plugins 0.3.0 mdurl 0.1.0 menuinst 2.1.1 mistune 2.0.4 mkl-fft 1.3.8 mkl-random 1.2.4 mkl-service 2.4.0 more-itertools 10.1.0 mpmath 1.3.0 msgpack 1.0.3 multidict 6.0.4 multipledispatch 0.6.0 munkres 1.1.4 mypy 1.10.0 mypy-extensions 1.0.0 navigator-updater 0.5.1 nbclient 0.8.0 nbconvert 7.10.0 nbformat 5.9.2 nest-asyncio 1.6.0 networkx 3.2.1 nltk 3.8.1 notebook 7.0.8 notebook_shim 0.2.3 numba 0.59.1 numexpr 2.8.7 numpy 1.26.4 numpydoc 1.5.0 opencv-python 4.8.1.78 opencv-python-headless 4.11.0.86 openpyxl 3.1.2 overrides 7.4.0 packaging 23.2 pandas 2.2.2 pandocfilters 1.5.0 panel 1.4.4 param 2.1.0 paramiko 2.8.1 parsel 1.8.1 parso 0.8.3 partd 1.4.1 pathlib 1.0.1 pathspec 0.10.3 patsy 0.5.6 pexpect 4.8.0 pickleshare 0.7.5 pillow 10.3.0 pip 24.0 pkce 1.0.3 pkginfo 1.10.0 platformdirs 3.10.0 plotly 5.22.0 pluggy 1.0.0 ply 3.11 prometheus-client 0.14.1 prompt-toolkit 3.0.43 Protego 0.1.16 protobuf 3.20.3 psutil 5.9.0 ptyprocess 0.7.0 pure-eval 0.2.2 py-cpuinfo 9.0.0 pyarrow 14.0.2 pyasn1 0.4.8 pyasn1-modules 0.2.8 pybboxes 0.1.6 pycodestyle 2.8.0 pycosat 0.6.6 pycparser 2.21 pyct 0.5.0 pycurl 7.45.2 pydantic 2.11.7 pydantic_core 2.33.2 pydeck 0.7.1 PyDispatcher 2.0.5 pydocstyle 6.3.0 pyerfa 2.0.1.4 pyflakes 2.4.0 Pygments 2.15.1 PyJWT 2.8.0 pylint 3.2.2 pylint-venv 3.0.3 pyls-spyder 0.4.0 Pympler 0.9 PyNaCl 1.5.0 pyodbc 5.0.1 pyogrio 0.11.0 pyOpenSSL 24.0.0 pyparsing 3.0.9 pyproj 3.6.1 PyQt5 5.15.10 PyQt5-sip 12.13.0 PyQtWebEngine 5.15.6 PySocks 1.7.1 pytest 7.4.4 python-dateutil 2.8.2 python-dotenv 0.21.0 python-json-logger 2.0.7 python-lsp-black 1.0.0 python-lsp-jsonrpc 1.0.0 python-lsp-server 1.3.3 python-slugify 5.0.2 python-snappy 0.6.1 pytoolconfig 1.2.6 pytorch-lightning 2.5.2 pytorch-model-summary 0.1.2 pytz 2024.1 pyviz_comms 3.0.2 pywavelets 1.5.0 pywin32 305.1 pywin32-ctypes 0.2.2 pywinpty 2.0.10 PyYAML 6.0.1 pyzmq 25.1.2 QDarkStyle 3.0.2 qstylizer 0.2.2 QtAwesome 1.2.2 qtconsole 5.2.2 QtPy 2.4.1 queuelib 1.6.2 referencing 0.30.2 regex 2023.10.3 requests 2.32.2 requests-file 1.5.1 requests-toolbelt 1.0.0 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 rich 13.3.5 rope 1.12.0 rpds-py 0.10.6 Rtree 1.0.1 ruamel.yaml 0.17.21 ruamel.yaml.clib 0.2.6 ruamel-yaml-conda 0.17.21 s3fs 2024.3.1 safetensors 0.5.3 sahi 0.11.16 scikit-image 0.22.0 scikit-learn 1.4.2 scipy 1.12.0 Scrapy 2.11.1 seaborn 0.13.2 semver 2.13.0 Send2Trash 1.8.2 service-identity 18.1.0 setuptools 69.5.1 shapely 2.0.4 simsimd 6.4.9 sip 6.7.12 six 1.16.0 smart-open 5.2.1 smmap 4.0.0 sniffio 1.3.0 snowballstemmer 2.2.0 sortedcontainers 2.4.0 soupsieve 2.5 Sphinx 5.0.2 sphinxcontrib-applehelp 1.0.2 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 2.0.0 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.5 spyder 5.2.2 spyder-kernels 2.2.1 SQLAlchemy 2.0.30 stack-data 0.2.0 statsmodels 0.14.2 streamlit 1.16.0 stringzilla 3.12.5 sympy 1.14.0 tables 3.9.2 tabulate 0.9.0 tblib 1.7.0 tenacity 8.2.2 tensorboardX 2.6.4 termcolor 2.4.0 terminado 0.17.1 terminaltables 3.1.10 text-unidecode 1.3 textdistance 4.2.1 threadpoolctl 2.2.0 three-merge 0.1.1 tifffile 2023.4.12 timm 1.0.16 tinycss2 1.2.1 tldextract 3.2.0 toml 0.10.2 tomli 2.0.1 tomlkit 0.11.1 toolz 0.12.0 torch 2.7.1+cu118 torchaudio 2.7.1+cu118 torchinfo 1.8.0 torchmetrics 1.7.3 torchsummary 1.5.1 torchvision 0.22.1+cu118 tornado 6.4.1 tqdm 4.66.4 traitlets 5.14.3 ttach 0.0.3 Twisted 23.10.0 twisted-iocpsupport 1.0.2 typing_extensions 4.14.0 typing-inspection 0.4.1 tzdata 2023.3 tzlocal 5.2 uc-micro-py 1.0.1 ujson 5.10.0 ultralytics 8.2.35 ultralytics-thop 2.0.0 Unidecode 1.2.0 urllib3 1.26.18 validators 0.18.2 w3lib 2.1.2 watchdog 4.0.1 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 1.8.0 Werkzeug 3.0.3 whatthepatch 1.0.2 wheel 0.43.0 widgetsnbextension 4.0.10 win-inet-pton 1.1.0 wrapt 1.14.1 xarray 2023.6.0 xlwings 0.31.4 xyzservices 2022.9.0 yapf 0.31.0 yarl 1.9.3 zict 3.0.0 zipp 3.17.0 zope.interface 5.4.0 zstandard 0.22.0检查以上问题是否是兼容问题
最新发布
07-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值