python数据处理: python地理数据处理完整处理代码;细节处理代码可参考有道笔记
GDAL,rasterio, numpy等
pip install --user scikit-image --ignore-installed
(D:\Anaconda3) C:\Users\a>conda install mamba -c conda-forge
Fetching package metadata ...............
Solving package specifications:
InvalidSpecError: Invalid spec: =2.7
则需要进行以下操作:
conda config --remove channels conda-forge
conda install conda=4.6.11
在激活gee时conda activate gee
,conda 4.6及其以上的版本才可使用conda activate
命令, 一下版本直接使用activate gee
;
在python的个别包进行安装更新时,使用pip ungrade
或者pip upgrade --all
往往不能达到目的,使用pip list
可以查看所有包以及版本号。可以下载包的whl文件,然后使用pip进行安装。
在使用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
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。