windows - 使用 Python 3.7(来自 QGIS)并尝试使用 pip 安装包的错误
问题描述
我使用 QGIS 3.6 和 Python 3.7,并尝试在 Windows 7 下的命令行工具中安装带有 pip 的包,但我收到以下消息:
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x0000188c (most recent call first):
我的路径和 PYTHONPATH 配置良好,并带有指向 QGIS 的 Python 文件夹的链接。这个问题最近出现在使用 Python 3.7 时。
解决方案
至少对于 Mac,最近的 QGIS 版本似乎只支持 Python 3.6,而不是 3.7,请参阅https://qgis.org/en/site/forusers/download.html
推荐阅读
- android - 我可以将快餐栏锚定到 Android 原生底部导航栏吗?
- node.js - mongoose.updateOne() 总是更新第一个文档
- excel - Excel - 从字母数字字符串中提取所有数字
- google-cloud-platform - 我们可以在 GCP 计算实例上安装 teradata express 吗?
- python - 熊猫数据框中每一行的最近点
- actionscript-3 - 如何使类文件将事件处理程序应用于主舞台上的实例或对象?
- flutter - Get Container 占用 Header 下方屏幕的剩余空间
- python - 从多个数据框创建过滤数据集
- javascript - Reactjs 如何在 formik 中使用 onCompleted() 传递值
- css - 如何制作星球大战学分动画?