GEE windows environment configuration

Referring to the development of the great God GEE article GEE study notes thirty-five: Configuring the windows local development environment - Article invisible wind - know almost .

According to his order down or there is some problem, then sort out their own problems.

1, install Google's python API client

pip install google-api-python-client

2, the installation authentication verification dependent libraries

pip install pyCrypto (run before I found already have them, so there is no practical effect)

3, installation of python library GEE

pip install earthengine-api

4, initialization GEE's API, and to verify your account GEE

python -c "import ee; ee.Initialize()"

The first time you run this command will get an error message prompted, because we have not yet verified GEE our account, so we need to run the following command:

earthengine authenticate

(Lack oauth2client did not encounter an error, but the copied code after connection timeout, you need to set up a ladder to global mode)

5, an example of running his error WinError10060, connection is broken

ee.Initialize () fails

As he said solution fails, the user name is in English

Solution: https: //www.shicj.top/post/GEE%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AEWinError10060%E9%94%99%E8%AF % AF

# Import the Earth Engine Python Package
import ee

import os

# update the proxy settings
# os.environ['HTTP_PROXY'] = 'my_proxy_id:proxy_port'
# os.environ['HTTPS_PROXY'] = 'my_proxy_id:proxy_port'
os.environ['HTTP_PROXY'] = 'http://127.0.0.1:1080'
os.environ['HTTPS_PROXY'] = 'http://127.0.0.1:1080'

# Initialize the Earth Engine object, using the authentication credentials.
ee.Initialize()

success! Therefore, the correct solution is to change what port settings, but each run should be preceded by the code, ladders and global PAC model can be.

Guess you like

Origin www.cnblogs.com/tccbj/p/11237286.html