1 Star 0 Fork 0

Douhuahua/python_example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

python_example

介绍

python数据处理: python地理数据处理完整处理代码;细节处理代码可参考有道笔记

依赖包

GDAL,rasterio, numpy等

安装教程

安装问题

1. 安装时候无访问权限,或者无法卸载

pip install --user scikit-image --ignore-installed

2. conda更新

  • geemap只使用与conda 4.6及其以上版本,所以之下的版本需要更新
    如果在更新时出现以下问题:
(D:\Anaconda3) C:\Users\a>conda install mamba -c conda-forge
Fetching package metadata ...............
Solving package specifications:

InvalidSpecError: Invalid spec: =2.7

则需要进行以下操作:

  1. 删除conda-forge,在Anaconda Prompt中运行:
conda config --remove channels conda-forge
  1. 运行代码:
conda install conda=4.6.11

3. gee连接python

  • 吴秋生github

  • 吴秋生YouTube

  • 在激活gee时conda activate gee ,conda 4.6及其以上的版本才可使用conda activate命令, 一下版本直接使用activate gee

4. python 更新

在python的个别包进行安装更新时,使用pip ungrade 或者pip upgrade --all往往不能达到目的,使用pip list可以查看所有包以及版本号。可以下载包的whl文件,然后使用pip进行安装。

5.conda安装包存在的问题

在使用conda install pyhdf中出现以下报错内容:

Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - pyhdf

Current channels:

  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

在anaconda官网中,pyhdf的owner为**conda-forge **
输入图片说明 通过提供的channel中找到相应的版本;再根据下方代码实现对特定channel中的version进行安装
修改代码为conda install -c conda-forge pyhdf=0.10.3

如果一直在solveing environment 可选择其他的owner,如conda install -c zeus1942 pyhdf

6.conda更新到固定版本

conda install -c conda-forge gdal=3.2.1

如果版本不存在,可以在官网中查找最新的对应版本

conda install -c anaconda netcdf4

在查询是需要注意安装的souce类型

conda install -c conda-forge earthpy=0.9.2
conda-forge / earthpy 0.9.2
Utility functions for the working with spatial data

7.安装GDAL最好使用msi文件

安装方法参考

文件下载路径

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cabbage_huahua/python_example.git
git@gitee.com:cabbage_huahua/python_example.git
cabbage_huahua
python_example
python_example
master

搜索帮助