Skip to content

Instantly share code, notes, and snippets.

@takurx
Last active September 23, 2024 22:41
Show Gist options
  • Save takurx/07c819436fc4937b1ffb7d28e0ff33b4 to your computer and use it in GitHub Desktop.
Save takurx/07c819436fc4937b1ffb7d28e0ff33b4 to your computer and use it in GitHub Desktop.
Install and try GeoPandas

Log

Anaconda

Installing on Linux — Anaconda documentation https://docs.anaconda.com/anaconda/install/linux/

chino@chino-Legion-5-15IAH7H:~$ sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
[sudo] password for chino: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libxcomposite1 is already the newest version (1:0.4.5-1).
libxcomposite1 set to manually installed.
libxcursor1 is already the newest version (1:1.2.0-2).
libxcursor1 set to manually installed.
libxi6 is already the newest version (2:1.7.10-0ubuntu1).
libxi6 set to manually installed.
libxrandr2 is already the newest version (2:1.5.2-0ubuntu1).
libxrandr2 set to manually installed.
libxss1 is already the newest version (1:1.2.3-1).
libxss1 set to manually installed.
libxtst6 is already the newest version (2:1.2.3-1).
libxtst6 set to manually installed.
libasound2 is already the newest version (1.2.2-2.1ubuntu2.5).
libasound2 set to manually installed.
libgl1-mesa-glx is already the newest version (21.2.6-0ubuntu0.1~20.04.2).
libgl1-mesa-glx set to manually installed.
libegl1-mesa is already the newest version (21.2.6-0ubuntu0.1~20.04.2).
libegl1-mesa set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 151 not upgraded.
chino@chino-Legion-5-15IAH7H:~$ 
chino@chino-Legion-5-15IAH7H:~$ curl -O https://repo.anaconda.com/archive/Anaconda3-<INSTALLER_VERSION>-Linux-x86_64.sh
bash: INSTALLER_VERSION: No such file or directory
chino@chino-Legion-5-15IAH7H:~$ 

Index of / https://repo.anaconda.com/archive/

curl -O https://repo.anaconda.com/archive/Anaconda3-2024.06-1-Linux-x86_64.sh
chino@chino-Legion-5-15IAH7H:~$ curl -O https://repo.anaconda.com/archive/Anaconda3-2024.06-1-Linux-x86_64.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1007M  100 1007M    0     0  12.7M      0  0:01:19  0:01:19 --:--:-- 12.9M
chino@chino-Legion-5-15IAH7H:~$ 
  • Hash check, How do I verify my installer's integrity?
chino@chino-Legion-5-15IAH7H:~$ shasum -a 256 ./Anaconda3-2024.06-1-Linux-x86_64.sh 
539bb43d9a52d758d0fdfa1b1b049920ec6f8c6d15ee9fe4a423355fe551a8f7  ./Anaconda3-2024.06-1-Linux-x86_64.sh
chino@chino-Legion-5-15IAH7H:~$ 

Anaconda installer file hashes — Anaconda documentation https://docs.anaconda.com/anaconda/hashes/

naconda3-2024.06-1-Linux-x86_64.sh
1007.9 MiB
2024-06-26 15:40:09
539bb43d9a52d758d0fdfa1b1b049920ec6f8c6d15ee9fe4a423355fe551a8f7
  • continue installing...
bash ~/Downloads/Anaconda3-<INSTALLER_VERSION>-Linux-x86_64.sh
bash ./Anaconda3-2024.06-1-Linux-x86_64.sh
chino@chino-Legion-5-15IAH7H:~$ bash ./Anaconda3-2024.06-1-Linux-x86_64.sh

Welcome to Anaconda3 2024.06-1

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
ANACONDA TERMS OF SERVICE
Please read these Terms of Service carefully before purchasing, using, accessing, or downloading any Anaconda Of
ferings (the "Offerings"). These Anaconda Terms of Service ("TOS") are between Anaconda, Inc. ("Anaconda") and y
ou ("You"), the individual or entity acquiring and/or providing access to the Offerings. These TOS govern Your a
ccess, download, installation, or use of the Anaconda Offerings, which are provided to You in combination with t
he terms set forth in the applicab
......
......
   2. "Anaconda Navigator" means a graphical interface for launching common Python programs without having to us
e command lines, to install packages and manage environments. It also allows the user to launch applications and
 easily manage conda packages, environments, and channels without using command-line commands.
   3. "Anaconda Public Repository", means the Anaconda packages repository of 8000 open-source data science and 
machine learning packages at repo.anaconda.com.


Version 4.0 | Last Modified: March 31, 2024 | ANACONDA TOS


Do you accept the license terms? [yes|no]
>>> 
Please answer 'yes' or 'no':'
>>> yes

Anaconda3 will now be installed into this location:
/home/chino/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/home/chino/anaconda3] >>> 
PREFIX=/home/chino/anaconda3
Unpacking payload ...
                                                                                                                
Installing base environment...


Downloading and Extracting Packages:


Downloading and Extracting Packages:

Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
   run the following command when conda is activated:

conda config --set auto_activate_base false

You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes
no change     /home/chino/anaconda3/condabin/conda
no change     /home/chino/anaconda3/bin/conda
no change     /home/chino/anaconda3/bin/conda-env
no change     /home/chino/anaconda3/bin/activate
no change     /home/chino/anaconda3/bin/deactivate
no change     /home/chino/anaconda3/etc/profile.d/conda.sh
no change     /home/chino/anaconda3/etc/fish/conf.d/conda.fish
no change     /home/chino/anaconda3/shell/condabin/Conda.psm1
no change     /home/chino/anaconda3/shell/condabin/conda-hook.ps1
no change     /home/chino/anaconda3/lib/python3.12/site-packages/xontrib/conda.xsh
no change     /home/chino/anaconda3/etc/profile.d/conda.csh
modified      /home/chino/.bashrc

==> For changes to take effect, close and re-open your current shell. <==

Thank you for installing Anaconda3!
chino@chino-Legion-5-15IAH7H:~$ 
  • re-open terminal
(base) chino@chino-Legion-5-15IAH7H:~$ source anaconda3/bin/activate
(base) chino@chino-Legion-5-15IAH7H:~$ conda init
no change     /home/chino/anaconda3/condabin/conda
no change     /home/chino/anaconda3/bin/conda
no change     /home/chino/anaconda3/bin/conda-env
no change     /home/chino/anaconda3/bin/activate
no change     /home/chino/anaconda3/bin/deactivate
no change     /home/chino/anaconda3/etc/profile.d/conda.sh
no change     /home/chino/anaconda3/etc/fish/conf.d/conda.fish
no change     /home/chino/anaconda3/shell/condabin/Conda.psm1
no change     /home/chino/anaconda3/shell/condabin/conda-hook.ps1
no change     /home/chino/anaconda3/lib/python3.12/site-packages/xontrib/conda.xsh
no change     /home/chino/anaconda3/etc/profile.d/conda.csh
no change     /home/chino/.bashrc
No action taken.
(base) chino@chino-Legion-5-15IAH7H:~$ 

Log

GeoPandas

Installation — GeoPandas 1.0.1+0.g747d66e.dirty documentation https://geopandas.org/en/stable/getting_started/install.html

(base) chino@chino-Legion-5-15IAH7H:~$ conda install geopandas
Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/chino/anaconda3

  added / updated specs:
    - geopandas


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    branca-0.6.0               |  py312h06a4308_0          48 KB
    ca-certificates-2024.7.2   |       h06a4308_0         127 KB
    cairo-1.16.0               |       hb05425b_5         1.2 MB
    certifi-2024.8.30          |  py312h06a4308_0         163 KB
    click-plugins-1.1.1        |     pyhd3eb1b0_0          10 KB
    cligj-0.7.2                |     pyhd3eb1b0_0          11 KB
    conda-24.7.1               |  py312h06a4308_0         1.2 MB
    fiona-1.9.5                |  py312h526ad5a_0        1020 KB
    folium-0.14.0              |  py312h06a4308_0         124 KB
    freexl-2.0.0               |       hf309648_0          57 KB
    gdal-3.6.2                 |  py312h51fade5_4         1.6 MB
    geopandas-0.14.2           |  py312h06a4308_0           7 KB
    geopandas-base-0.14.2      |  py312h06a4308_0         1.4 MB
    geos-3.8.0                 |       he6710b0_0         961 KB
    geotiff-1.7.0              |       h2a26cda_3         274 KB
    hdf4-4.2.13                |       h3ca952b_2         714 KB
    json-c-0.16                |       h5eee18b_0          77 KB
    kealib-1.5.0               |       hd940352_1         176 KB
    libgdal-3.6.2              |       heb138ec_4        10.6 MB
    libkml-1.3.0               |       h096b73e_7         537 KB
    libnetcdf-4.8.1            |       h14805e7_4         1.1 MB
    libspatialite-5.1.0        |       h01e95a1_0         4.2 MB
    libzip-1.8.0               |       h6ac8c49_1         109 KB
    mapclassify-2.5.0          |  py312h06a4308_0          76 KB
    minizip-4.0.3              |       hf59b114_0          98 KB
    openssl-3.0.15             |       h5eee18b_0         5.2 MB
    pixman-0.40.0              |       h7f8727e_1         373 KB
    poppler-22.12.0            |       h9614445_3        17.3 MB
    poppler-data-0.4.11        |       h06a4308_1         2.6 MB
    proj-9.3.1                 |       he5811b7_0         3.2 MB
    pyproj-3.6.1               |  py312h6268720_0         572 KB
    qhull-2020.2               |       hdb19cb5_2         1.1 MB
    shapely-2.0.5              |  py312h1789038_0         584 KB
    tiledb-2.3.3               |       h77177df_3         2.6 MB
    uriparser-0.9.7            |       h5eee18b_0          45 KB
    xerces-c-3.2.4             |       h6a678d5_1         3.3 MB
    ------------------------------------------------------------
                                           Total:        62.5 MB

The following NEW packages will be INSTALLED:

  branca             pkgs/main/linux-64::branca-0.6.0-py312h06a4308_0 
  cairo              pkgs/main/linux-64::cairo-1.16.0-hb05425b_5 
  click-plugins      pkgs/main/noarch::click-plugins-1.1.1-pyhd3eb1b0_0 
  cligj              pkgs/main/noarch::cligj-0.7.2-pyhd3eb1b0_0 
  fiona              pkgs/main/linux-64::fiona-1.9.5-py312h526ad5a_0 
  folium             pkgs/main/linux-64::folium-0.14.0-py312h06a4308_0 
  freexl             pkgs/main/linux-64::freexl-2.0.0-hf309648_0 
  gdal               pkgs/main/linux-64::gdal-3.6.2-py312h51fade5_4 
  geopandas          pkgs/main/linux-64::geopandas-0.14.2-py312h06a4308_0 
  geopandas-base     pkgs/main/linux-64::geopandas-base-0.14.2-py312h06a4308_0 
  geos               pkgs/main/linux-64::geos-3.8.0-he6710b0_0 
  geotiff            pkgs/main/linux-64::geotiff-1.7.0-h2a26cda_3 
  hdf4               pkgs/main/linux-64::hdf4-4.2.13-h3ca952b_2 
  json-c             pkgs/main/linux-64::json-c-0.16-h5eee18b_0 
  kealib             pkgs/main/linux-64::kealib-1.5.0-hd940352_1 
  libgdal            pkgs/main/linux-64::libgdal-3.6.2-heb138ec_4 
  libkml             pkgs/main/linux-64::libkml-1.3.0-h096b73e_7 
  libnetcdf          pkgs/main/linux-64::libnetcdf-4.8.1-h14805e7_4 
  libspatialite      pkgs/main/linux-64::libspatialite-5.1.0-h01e95a1_0 
  libzip             pkgs/main/linux-64::libzip-1.8.0-h6ac8c49_1 
  mapclassify        pkgs/main/linux-64::mapclassify-2.5.0-py312h06a4308_0 
  minizip            pkgs/main/linux-64::minizip-4.0.3-hf59b114_0 
  pixman             pkgs/main/linux-64::pixman-0.40.0-h7f8727e_1 
  poppler            pkgs/main/linux-64::poppler-22.12.0-h9614445_3 
  poppler-data       pkgs/main/linux-64::poppler-data-0.4.11-h06a4308_1 
  proj               pkgs/main/linux-64::proj-9.3.1-he5811b7_0 
  pyproj             pkgs/main/linux-64::pyproj-3.6.1-py312h6268720_0 
  qhull              pkgs/main/linux-64::qhull-2020.2-hdb19cb5_2 
  shapely            pkgs/main/linux-64::shapely-2.0.5-py312h1789038_0 
  tiledb             pkgs/main/linux-64::tiledb-2.3.3-h77177df_3 
  uriparser          pkgs/main/linux-64::uriparser-0.9.7-h5eee18b_0 
  xerces-c           pkgs/main/linux-64::xerces-c-3.2.4-h6a678d5_1 

The following packages will be UPDATED:

  ca-certificates                      2024.3.11-h06a4308_0 --> 2024.7.2-h06a4308_0 
  certifi                          2024.6.2-py312h06a4308_0 --> 2024.8.30-py312h06a4308_0 
  conda                              24.5.0-py312h06a4308_0 --> 24.7.1-py312h06a4308_0 
  openssl                                 3.0.14-h5eee18b_0 --> 3.0.15-h5eee18b_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages:
                                                                                                                 
Preparing transaction: done                                                                                      
Verifying transaction: done                                                                                      
Executing transaction: done                                                                                      
(base) chino@chino-Legion-5-15IAH7H:~$  
(base) chino@chino-Legion-5-15IAH7H:~$ conda create -n geo_env                                                   
Channels:                                                                                                        
 - defaults                                                                                                      
Platform: linux-64                                                                                               
Collecting package metadata (repodata.json): done                                                                
Solving environment: done                                                                                        
                                                                                                                 
## Package Plan ##                                                                                               
                                                                                                                 
  environment location: /home/chino/anaconda3/envs/geo_env                                                       
                                                                                                                 
                                                                                                                 
                                                                                                                 
Proceed ([y]/n)? y                                                                                               
                                                                                                                 
Preparing transaction: done                                                                                      
Verifying transaction: done                                                                                      
Executing transaction: done                                                                                      
#                                                                                                                
# To activate this environment, use                                                                              
#                                                                                                                
#     $ conda activate geo_env                                                                                   
#                                                                                                                
# To deactivate an active environment, use                                                                       
#                                                                                                                
#     $ conda deactivate                                                                                         
                                                                                                                 
(base) chino@chino-Legion-5-15IAH7H:~$ conda activate geo_env                                                    
(geo_env) chino@chino-Legion-5-15IAH7H:~$ conda config --env --add channels conda-forge                          
(geo_env) chino@chino-Legion-5-15IAH7H:~$ conda config --env --set channel_priority strict                       
(geo_env) chino@chino-Legion-5-15IAH7H:~$ conda install python=3 geopandas                                       
Channels:                                                                                                        
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/chino/anaconda3/envs/geo_env

  added / updated specs:
    - geopandas
    - python=3


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _libgcc_mutex-0.1          |      conda_forge           3 KB  conda-forge
    _openmp_mutex-4.5          |            2_gnu          23 KB  conda-forge
    aws-c-auth-0.7.31          |       h57bd9a3_0         105 KB  conda-forge
    aws-c-cal-0.7.4            |       hfd43aa1_1          46 KB  conda-forge
    aws-c-common-0.9.28        |       hb9d3cd8_0         231 KB  conda-forge
    aws-c-compression-0.2.19   |       h756ea98_1          19 KB  conda-forge
......
......
  xorg-libxrender    conda-forge/linux-64::xorg-libxrender-0.9.11-hd590300_0 
  xorg-renderproto   conda-forge/linux-64::xorg-renderproto-0.11.1-hb9d3cd8_1003 
  xorg-xextproto     conda-forge/linux-64::xorg-xextproto-7.3.0-hb9d3cd8_1004 
  xorg-xproto        conda-forge/linux-64::xorg-xproto-7.0.31-hb9d3cd8_1008 
  xyzservices        conda-forge/noarch::xyzservices-2024.9.0-pyhd8ed1ab_0 
  xz                 conda-forge/linux-64::xz-5.2.6-h166bdaf_0 
  zlib               conda-forge/linux-64::zlib-1.3.1-h4ab18f5_1 
  zstandard          conda-forge/linux-64::zstandard-0.23.0-py312hef9b889_1 
  zstd               conda-forge/linux-64::zstd-1.5.6-ha6fb4c9_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages:
                                                                                                                 
Preparing transaction: done                                                                                      
Verifying transaction: done                                                                                      
Executing transaction: done                                                                                      
(geo_env) chino@chino-Legion-5-15IAH7H:~$  

Log

Try GeoPandas

(geo_env) chino@chino-Legion-5-15IAH7H:~$ jupyter notebook
Command 'jupyter' not found, but can be installed with:                                                          
sudo apt install jupyter-core                                                                                    
(geo_env) chino@chino-Legion-5-15IAH7H:~$     
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment