You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

解决安装Shapely .whl时‘平台不支持’错误及Python版本问题

解决Shapely安装报错及Python3.6虚拟环境创建问题

一、精准创建Python3.6.13虚拟环境

conda默认可能拉取兼容范围内的最高小版本,直接指定精确版本号创建:

conda create -n stormEnv python=3.6.13

创建完成后激活环境并确认版本:

conda activate stormEnv
python --version

若版本仍不符合,先清理conda缓存再重试:

conda clean --all

也可以指定conda-forge频道获取精确版本:

conda create -n stormEnv -c conda-forge python=3.6.13

二、匹配正确的Shapely Wheel文件

  1. 确认当前环境是64位Python:
python -c "import platform; print(platform.architecture())"

输出需为('64bit', 'WindowsPE'),确保是64位环境。
2. 选择对应**Python3.6(cp36标记)+ 64位Windows(win_amd64标记)**的Shapely wheel文件,格式类似Shapely-1.7.1-cp36-cp36m-win_amd64.whl,避开32位(win32)或其他Python版本的文件。
3. 切换到wheel文件所在目录,执行安装命令:

pip install Shapely-xxxx-cp36-cp36m-win_amd64.whl

三、替代方案:用conda直接安装Shapely

如果wheel安装仍有问题,直接通过conda安装适配版本,避免版本匹配冲突:

conda activate stormEnv
conda install -c conda-forge shapely=1.7.1

(Shapely 1.7.x系列对Python3.6兼容性良好)

内容的提问来源于stack exchange,提问作者Corey4005

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.06 10:20:46