0

我有 python 3.6 的 pip 18.1 并且想安装 earthengine-api 所以我输入 pip install earthengine-api了命令提示符。

我收到以下错误消息:

Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x06345BF0>, 'Connection to 10.168.209.72 timed out. (connect timeout=15)')': /simple/earthengine-api/ Could not find a version that satisfies the requirement earthengine-api (from versions: ) No matching distribution found for earthengine-api

我试过set | find "proxy"了,它给了:

https_proxy=http://xx.xxx.xxx.xx:xxxx  
http_proxy=http://xx.xxx.xxx.xx:xxxx  
no_proxy=xxx.xxx.xxx.xx,xxx.0.0.1

虽然pip config list | find "proxy"给了:

FIND: Parameter format not correct

我不明白错误消息,但怀疑我的工作 PC(我不是管理员)的保护要对这个问题负责,所以我决定在家用 PC 上安装 python,
pip install earthengine-api
但在 jupyter notebook 中我得到“不模块ee”
所以我安装了它,
conda install –c conda-forge earthengine-api
现在它可以在jupyter中运行(不要问我为什么)。

4

1 回答 1

0

您第一次earthengine-api使用 pip 安装的软件包将其安装为系统范围的软件包,并且可能不在 conda 环境中。

我想 jupyter 使用的 python 解释器会在base您的 conda 安装环境中,因此只会在该环境中查找请求的包。

在使用 pip 之前,请尝试使用 conda 安装您的软件包。在此处查看指南https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html

于 2020-12-14T21:26:08.433 回答