PIP安装报错 “AttributeError: module 'pkgutil' has no attribute 'ImpImporter'
PIP安装报错, python 3.12 , pip 24.2
好像是因为原有的依赖被3.12抛弃后导致的,换个环境吗解决吗???
(venv) C:\PyProject\PythonProject pip install cnmaps Collecting cnmaps Using cached cnmaps-1.1.8-py3-none-any.whl.metadata (5.4 kB) Collecting cartopy>=0.22.0 (from cnmaps) Using cached Cartopy-0.23.0-cp312-cp312-win_amd64.whl.metadata (8.2 kB) Collecting fiona>=1.8.20 (from cnmaps) Using cached fiona-1.10.0-cp312-cp312-win_amd64.whl.metadata (57 kB) Collecting geojson>=2.5.0 (from cnmaps) Using cached geojson-3.1.0-py3-none-any.whl.metadata (16 kB) Collecting geopandas>=0.10.2 (from cnmaps) Using cached geopandas-1.0.1-py3-none-any.whl.metadata (2.2 kB) Collecting matplotlib>=3.4.2 (from cnmaps) Using cached matplotlib-3.9.2-cp312-cp312-win_amd64.whl.metadata (11 kB) Collecting netcdf4>=1.5.8 (from cnmaps) Using cached netCDF4-1.7.1.post2-cp312-cp312-win_amd64.whl.metadata (1.8 kB) Collecting numba>=0.56.0 (from cnmaps) Using cached numba-0.60.0-cp312-cp312-win_amd64.whl.metadata (2.8 kB) Requirement already satisfied: numpy>=1.21.5 in c:\pyproject\pythonproject\venv\lib\site-packages (from cnmaps) (2.0.1) Collecting orjson>=3.7.11 (from cnmaps) Using cached orjson-3.10.7-cp312-none-win_amd64.whl.metadata (51 kB) Collecting scipy>=1.8 (from cnmaps) Using cached scipy-1.14.1-cp312-cp312-win_amd64.whl.metadata (60 kB) Collecting shapely<2.0,>=1.8.0 (from cnmaps) Using cached Shapely-1.8.5.post1.tar.gz (200 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
Traceback (most recent call last):
File "C:\PyProject\PythonProject\venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
@Ray-exia 目前最新版本的 Python 确实无法支持安装 cnmaps
@Ray-exia 目前最新版本的 Python 确实无法支持安装 cnmaps 好的,谢谢大佬回复我一个编程小白。
请问,这个问题大概什么时候可以解决,谢谢大佬~
当前我使用 uv 管理 python 版本和依赖,降到 3.10 完事儿。
谢谢,我改用了3.10 ok了
Get Outlook for iOShttps://aka.ms/o0ukef
From: 北雁云依 @.> Sent: Sunday, February 23, 2025 9:33:22 PM To: cnmetlab/cnmaps @.> Cc: Ray-exia @.>; Mention @.> Subject: Re: [cnmetlab/cnmaps] PIP安装报错 “AttributeError: module 'pkgutil' has no attribute 'ImpImporter' (Issue #135)
当前我使用 uv 管理 python 版本和依赖,降到 3.10 完事儿。
― Reply to this email directly, view it on GitHubhttps://github.com/cnmetlab/cnmaps/issues/135#issuecomment-2676864766, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUXXGEUIZX62M77FV3EET2L2RHE2FAVCNFSM6AAAAABN3ZRLYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZWHA3DINZWGY. You are receiving this because you were mentioned.Message ID: @.***>
[BeiyanYunyi]BeiyanYunyi left a comment (cnmetlab/cnmaps#135)https://github.com/cnmetlab/cnmaps/issues/135#issuecomment-2676864766
当前我使用 uv 管理 python 版本和依赖,降到 3.10 完事儿。
― Reply to this email directly, view it on GitHubhttps://github.com/cnmetlab/cnmaps/issues/135#issuecomment-2676864766, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUXXGEUIZX62M77FV3EET2L2RHE2FAVCNFSM6AAAAABN3ZRLYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZWHA3DINZWGY. You are receiving this because you were mentioned.Message ID: @.***>