GEE Lesson 2 - How to install Miniconda and geemap

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025
  • Miniconda: docs.conda.io/...
    Earth Engine: earthengine.go...
    geemap homepage: geemap.org
    GitHub: github.com/gis...
    Twitter: / giswqs
    TH-cam channel: / qiushengwu
    GEE Tutorials TH-cam Playlist: gishub.org/you...

ความคิดเห็น • 64

  • @andreamarkos
    @andreamarkos 3 ปีที่แล้ว +1

    Thank you, it seems that this Lesson 2 should substitute LEsson 1 since it covers the same topic but is more complete and clear

  • @enriquealejandro2310
    @enriquealejandro2310 3 ปีที่แล้ว +1

    thanks for the esteemed video, is it now compatible with python 3.9.5?

  • @gerardpalaya8877
    @gerardpalaya8877 2 ปีที่แล้ว

    I am getting filenotfound error after authenticating my GEE account. I checked the config folder but i have the credentials file. How can I fix this?

  • @chisomokwuchi3954
    @chisomokwuchi3954 7 หลายเดือนก่อน

    Dr. Wu, when I point to the search icon and tool bar on the map, I do not see the options. Please what do I do?

  • @roshansaud2743
    @roshansaud2743 3 ปีที่แล้ว

    Hello Qiusheng Wu, zlib package is not installed I don't know why while using "conda create -n gee python=3.8"

  • @Wilderness1234
    @Wilderness1234 4 ปีที่แล้ว

    You are awesome.

  • @charlesboateng1994
    @charlesboateng1994 3 ปีที่แล้ว

    Hello Dr, its my first time of installing GEE on my laptop but am finding it difficult to authenticate Jupyter notebook. Can you please assist me with that? Many thanks

  • @muhammadsudarman8940
    @muhammadsudarman8940 3 ปีที่แล้ว

    Hi Prof,
    Just a simple question, I just installed GEE on my machine. When I want to open Jupyter Notebook through conda terminal, I found the message "rem proj-data is installed because its license was copied over"
    The command is as below:
    (base) C:\Users\myusername>conda env list
    # conda environments:
    #
    base * C:\Users\myusername\miniconda3
    gee C:\Users\myusername\miniconda3\envs\gee
    geo C:\Users\myusername\miniconda3\envs\geo
    myenv C:\Users\myusername\miniconda3\envs\myenv
    (base) C:\Users\myusername>conda activate gee
    C:\Users\myusername>rem proj-data is installed because its license was copied over
    (gee) C:\Users\myusernamen>jupyter notebook
    I can still open JN, but prior to opening it, there is a message as above. (rem proj-data is installed because its license was copied over
    Thanks for your kindest help.

  • @jeanpierreiratwibutse119
    @jeanpierreiratwibutse119 10 หลายเดือนก่อน

    Hi there, thanks for the lesson. Why is jupyter notebook not found?

    • @MarinitaVilanir
      @MarinitaVilanir 6 หลายเดือนก่อน

      I face the same problem🥲

    • @MarinitaVilanir
      @MarinitaVilanir 6 หลายเดือนก่อน

      I got it.Dr Wu had already installed JN,just search JN online and follow the indication to install

  • @raechelportelli6666
    @raechelportelli6666 3 ปีที่แล้ว

    I installed geemap, but when I get to "impot geemap" (13:30) I get the following error: ValueError: Token is required for this provider, but not provided. You can either update TileProvider or pass respective keywords to build_url().

    • @giswqs
      @giswqs  3 ปีที่แล้ว +1

      pip install -U geemap

    • @raechelportelli6666
      @raechelportelli6666 3 ปีที่แล้ว

      @@giswqs Thank you so much for your quick reply. It worked. I've followed you for some time, and it amazes me how much you accomplish in development and "customer-service." Very enviable.

    • @giswqs
      @giswqs  3 ปีที่แล้ว

      @@raechelportelli6666 Thank you for your support!

  • @johndoucette3687
    @johndoucette3687 3 ปีที่แล้ว

    I use the version of jupyter notebook installed with pip. I do not like the Conda or Minicondia versions which I have used before but didn't like. Using the pip version, after I get the code from Google and sign up for the earth engine i get this.
    import geemap
    m=gee.Map()
    m
    Map(center=[20, 0], controls=(WidgetControl(options=['position', 'transparent_bg'], widget=HBox(children=(Togg…
    but no map
    Is this because I am not using Conda. Am I wasting my time if I do not want to use conda.

  • @udayjayanth6645
    @udayjayanth6645 3 ปีที่แล้ว

    I am getting a type error after submitting the Security key - successfully saved authorization token.

    • @giswqs
      @giswqs  3 ปีที่แล้ว

      Did you have you GEE account approved?

    • @蒋宁桑
      @蒋宁桑 2 ปีที่แล้ว

      @@giswqs I also have the same problem. I would like to ask you how I should solve it?

  • @maryamraeesi6467
    @maryamraeesi6467 4 ปีที่แล้ว

    Hello again Mr. Qiusheng Wu, thank you so much for guiding me to install miniconda. There's another problem, I can't install Jupiter notebook, the error is not to recognized as the name of a complete,... I used
    conda install -c conda -forge jupiterlab
    in the Anaconda Powershell environment, but when I call Jupiter, it doesn't work!!!!!

    • @giswqs
      @giswqs  4 ปีที่แล้ว +1

      Make sure you follow the video closely. The command is `jupyter noetbook`, not `jupiter`

    • @maryamraeesi6467
      @maryamraeesi6467 4 ปีที่แล้ว

      @@giswqs Hello sir, if there is not any .config folder, it means I couldn't work with geemap? What should I do then?

  • @madhomm7019
    @madhomm7019 3 ปีที่แล้ว

    i can not install 3rd one conda instal mamba it show this message PackagesNotFoundError: The following packages are not available from current channels:

    • @giswqs
      @giswqs  3 ปีที่แล้ว +1

      It is likely you are using the 32-bit Anaconda. You can directly use “conda install geemap -c conda-forge.

    • @madhomm7019
      @madhomm7019 3 ปีที่แล้ว

      @@giswqs failed
      UnavailableInvalidChannel: The channel is not accessible or is invalid.
      channel name: conda-forge.
      channel url: conda.anaconda.org/conda-forge.
      error code: 404
      You will need to adjust your conda configuration to proceed.
      Use `conda config --show channels` to view your configuration's current state,
      and use `conda config --show-sources` to view config file locations.
      (base) C:\Users\hp>

    • @madhomm7019
      @madhomm7019 3 ปีที่แล้ว

      @@giswqs still same problem ?

    • @madhomm7019
      @madhomm7019 3 ปีที่แล้ว

      @@giswqs please guide me how i install please.

    • @giswqs
      @giswqs  3 ปีที่แล้ว +1

      pip install geemap

  • @mauriciojean8792
    @mauriciojean8792 3 ปีที่แล้ว

    Do i always need to activate my gee environment everytime i start conda?

  • @10pinnacles2
    @10pinnacles2 3 ปีที่แล้ว

    Hello Dr. Wu still i found an http error while installing this gee map in anaconda prompt
    Please help me

    • @giswqs
      @giswqs  3 ปีที่แล้ว +1

      What error?

    • @10pinnacles2
      @10pinnacles2 3 ปีที่แล้ว

      Thank you for reply Dr.
      I have solved the error with your updated github code

  • @jackding6398
    @jackding6398 2 ปีที่แล้ว

    Hi, professor. I have installed geemap successfully, the problem is that there is not any.config folder.
    I have signed up for an Earth Engine account, when I used Jupyter Notebook to define "map = geemap.Map()", it turns out a link for Notebook Authenticator, I followed the guide and try to click the "Denerate Token" button, but the "Denerate Token" button is grey and it doesn't work at all, so that I cannot get the code to authorize.
    I tried many times but failed, I don't know the reason as I successfully process it and got the code in my another computer
    a few days ago, with the same Earth Engine account, same steps as well.

    • @giswqs
      @giswqs  2 ปีที่แล้ว

      Try the following. If it does not work, then it is your network or account problem.
      import ee
      ee.Authenticate()
      ee.Initialize()

    • @jackding6398
      @jackding6398 2 ปีที่แล้ว

      @@giswqs Hi, Prof.,thanks for your quick reply. Yes, it is the problem of my GEE account,
      in the Notebook Authenticator page, it showed there is no available project, meanwhile, I found that the Google Earth Engine API was disabled, so I enabled it then there is one project produced automatically, moreover, the "Denerate Token" button turned from grey to bright, so I pressed it and got the code just now. Happy to fix this problem. Thanks a lot for your help and resources.

  • @madhomm7019
    @madhomm7019 3 ปีที่แล้ว

    please guide me how i install Mamba

    • @giswqs
      @giswqs  3 ปีที่แล้ว +1

      conda install mamba -c conda-forge

    • @madhomm7019
      @madhomm7019 3 ปีที่แล้ว

      @@giswqs this give me same error

    • @madhomm7019
      @madhomm7019 3 ปีที่แล้ว

      PackagesNotFoundError: The following packages are not available from current channels:
      - mamba
      Current channels:
      - conda.anaconda.org/conda-forge/win-32
      - conda.anaconda.org/conda-forge/noarch
      - repo.anaconda.com/pkgs/main/win-32
      - repo.anaconda.com/pkgs/main/noarch
      - repo.anaconda.com/pkgs/r/win-32
      - repo.anaconda.com/pkgs/r/noarch
      - repo.anaconda.com/pkgs/msys2/win-32
      - repo.anaconda.com/pkgs/msys2/noarch
      To search for alternate channels that may provide the conda package you're
      looking for, navigate to
      anaconda.org
      and use the search bar at the top of the page.
      (base) C:\Users\hp>

    • @illiapolovnikov2587
      @illiapolovnikov2587 3 ปีที่แล้ว

      @@madhomm7019 try this: conda config --append channels conda-forge
      before running the "conda install ..."

  • @SIGCONGO
    @SIGCONGO 3 ปีที่แล้ว

    Hello sir, if there is not any .config folder, it means I couldn't work with geemap? What should I do then? where can i get this folder please??

    • @giswqs
      @giswqs  3 ปีที่แล้ว

      Did you apply for an Earth Engine account?

    • @SIGCONGO
      @SIGCONGO 3 ปีที่แล้ว

      @@giswqs I use my google account to access to earth engine.

    • @giswqs
      @giswqs  3 ปีที่แล้ว

      @@SIGCONGO You need to sign up for an Earth Engine account earthengine.google.com/

    • @CessTenn
      @CessTenn 3 ปีที่แล้ว

      Once you authorize with your Google account, you'll get a code. Copy it and paste it into Jupyter (line 2 will ask you for it). Paste it and hit enter. THEN, you'll get a message saying "Successfully saved authorization token." LASTLY, you'll be able to find your earthengine folder within your .config folder. Cheers!

  • @MiSnoww
    @MiSnoww 3 ปีที่แล้ว

    Hey Thank you very much! I just have a problem when i try to create the map, i succeed to log in Google and then they tell me this: do you have an idea?
    Successfully saved authorization token.
    ---------------------------------------------------------------------------
    UnknownApiNameOrVersion Traceback (most recent call last)
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/geemap/common.py in ee_initialize(token_name)
    81
    ---> 82 ee.Initialize()
    83 except Exception:
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/ee/__init__.py in Initialize(credentials, opt_url, cloud_api_key, http_transport, project)
    115 credentials = data.get_persistent_credentials()
    --> 116 data.initialize(
    117 credentials=credentials,
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/ee/data.py in initialize(credentials, api_base_url, tile_base_url, cloud_api_base_url, cloud_api_key, project, http_transport)
    198
    --> 199 _install_cloud_api_resource()
    200
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/ee/data.py in _install_cloud_api_resource()
    265 timeout = (_deadline_ms / 1000.0) or None
    --> 266 _cloud_api_resource = _cloud_api_utils.build_cloud_resource(
    267 _cloud_api_base_url,
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/ee/_cloud_api_utils.py in build_cloud_resource(api_base_url, api_key, credentials, timeout, headers_supplier, response_inspector, http_transport, raw)
    142 alt_model = None
    --> 143 resource = discovery.build(
    144 'earthengine',
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/googleapiclient/_helpers.py in positional_wrapper(*args, **kwargs)
    133 logger.warning(message)
    --> 134 return wrapped(*args, **kwargs)
    135
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/googleapiclient/discovery.py in build(serviceName, version, http, discoveryServiceUrl, developerKey, model, requestBuilder, credentials, cache_discovery, cache, client_options, adc_cert_path, adc_key_path, num_retries, static_discovery)
    272 try:
    --> 273 content = _retrieve_discovery_doc(
    274 requested_url,
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/googleapiclient/discovery.py in _retrieve_discovery_doc(url, http, cache_discovery, serviceName, version, cache, developerKey, num_retries, static_discovery)
    386 else:
    --> 387 raise UnknownApiNameOrVersion("name: %s version: %s" % (serviceName, version))
    388
    UnknownApiNameOrVersion: name: earthengine version: v1alpha
    During handling of the above exception, another exception occurred:
    UnknownApiNameOrVersion Traceback (most recent call last)
    in
    ----> 1 Map = geemap.Map()
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/geemap/geemap.py in __init__(self, **kwargs)
    35
    36 if kwargs["ee_initialize"]:
    ---> 37 ee_initialize()
    38
    39 # Default map center location (lat, lon) and zoom level
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/geemap/common.py in ee_initialize(token_name)
    83 except Exception:
    84 ee.Authenticate()
    ---> 85 ee.Initialize()
    86
    87
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/ee/__init__.py in Initialize(credentials, opt_url, cloud_api_key, http_transport, project)
    114 if credentials == 'persistent':
    115 credentials = data.get_persistent_credentials()
    --> 116 data.initialize(
    117 credentials=credentials,
    118 api_base_url=(opt_url + '/api' if opt_url else None),
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/ee/data.py in initialize(credentials, api_base_url, tile_base_url, cloud_api_base_url, cloud_api_key, project, http_transport)
    197 _http_transport = http_transport
    198
    --> 199 _install_cloud_api_resource()
    200
    201 if project is not None:
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/ee/data.py in _install_cloud_api_resource()
    264
    265 timeout = (_deadline_ms / 1000.0) or None
    --> 266 _cloud_api_resource = _cloud_api_utils.build_cloud_resource(
    267 _cloud_api_base_url,
    268 credentials=_credentials,
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/ee/_cloud_api_utils.py in build_cloud_resource(api_base_url, api_key, credentials, timeout, headers_supplier, response_inspector, http_transport, raw)
    141 else:
    142 alt_model = None
    --> 143 resource = discovery.build(
    144 'earthengine',
    145 VERSION,
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/googleapiclient/_helpers.py in positional_wrapper(*args, **kwargs)
    132 elif positional_parameters_enforcement == POSITIONAL_WARNING:
    133 logger.warning(message)
    --> 134 return wrapped(*args, **kwargs)
    135
    136 return positional_wrapper
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/googleapiclient/discovery.py in build(serviceName, version, http, discoveryServiceUrl, developerKey, model, requestBuilder, credentials, cache_discovery, cache, client_options, adc_cert_path, adc_key_path, num_retries, static_discovery)
    271
    272 try:
    --> 273 content = _retrieve_discovery_doc(
    274 requested_url,
    275 discovery_http,
    /opt/miniconda3/envs/gee/lib/python3.8/site-packages/googleapiclient/discovery.py in _retrieve_discovery_doc(url, http, cache_discovery, serviceName, version, cache, developerKey, num_retries, static_discovery)
    385 return content
    386 else:
    --> 387 raise UnknownApiNameOrVersion("name: %s version: %s" % (serviceName, version))
    388
    389 actual_url = url
    UnknownApiNameOrVersion: name: earthengine version: v1alpha

    • @MiSnoww
      @MiSnoww 3 ปีที่แล้ว

      Nevermind, found i had to downgrade the google-api-python-client ! :)

  • @TheAngryallan
    @TheAngryallan 3 ปีที่แล้ว

    Hi Professor - I just installed everything successfully (I think). Geemap imports in Jupyter successfully. But when I execute the code from the tutorial (Map = geemap.Map() and then Map) the cell completes running but the interactive map does not appear. Any idea what I'm doing wrong? Thanks!

    • @giswqs
      @giswqs  3 ปีที่แล้ว

      See github.com/giswqs/geemap/issues/31#issuecomment-624436491

    • @TheAngryallan
      @TheAngryallan 3 ปีที่แล้ว

      @@giswqs Thanks so much! Following that thread I was able to get the map to render in JupyterLab but not Notebooks. This is a ipyleaflet issue though so I will figure it out. Many thanks for your quick response!
      One more question - now with my working geemap map, when I click the import button in the symbology popup, the code does not appear in a cell below the map as shown in your videos. Is this also a known issue?

    • @giswqs
      @giswqs  3 ปีที่แล้ว

      @@TheAngryallan Unfortunately, the import function only works with Jupyter notebook. JupyterLab does not support creating a new cell programmatically. See github.com/jupyterlab/jupyterlab/issues/8415

    • @TheAngryallan
      @TheAngryallan 3 ปีที่แล้ว

      @@giswqs That makes sense. Hopefully I'll be able to get it to work in Jypter Notebook. Thanks again for your help!

  • @corradoluini5334
    @corradoluini5334 ปีที่แล้ว

    Dear Professor, I am approaching to geemap for the first time. I called the simple map instance like this:
    import geemap
    m = geemap.Map(center=(9,45), zoom=6)
    m
    I got the following error: " add() missing 1 required positional argument: 'position' "
    Is that the correct way to pass parameters? I just installed version 0.30.4 through mamba.
    Thank you in advance

  • @ennerhereniodealcantara5856
    @ennerhereniodealcantara5856 3 ปีที่แล้ว

    Thank you. I would like to suggest to slow down a little bit. You're teaching, so, please, slow down!

    • @CessTenn
      @CessTenn 3 ปีที่แล้ว +2

      You can hit pause and rewind as many times as you want

  • @arielmacias2262
    @arielmacias2262 หลายเดือนก่อน

    Im having issues with the first part. When I try to visualize the Map after log into GEE, and creating the var Map... An error ocurred: Error displaying widgets. What am i doing wrong? import geemap
    Map = geemap.Map()
    Map