Difference between revisions of "Jammy python notes"

From OSGeo
Jump to navigation Jump to search
 
Line 235: Line 235:
 
</pre>
 
</pre>
  
<pre>
 
mjam@x10jam:~/srcs_mjam$ sudo apt install geotiff-bin gdal-bin
 
Reading package lists... Done
 
Building dependency tree... Done
 
Reading state information... Done
 
  
 
The following additional packages will be installed:
 
  python3-gdal python3-numpy
 
Suggested packages:
 
  libgdal-grass libgeotiff-epsg gfortran python-numpy-doc python3-dev python3-pytest
 
The following NEW packages will be installed:
 
  gdal-bin geotiff-bin python3-gdal python3-numpy
 
0 upgraded, 4 newly installed, 0 to remove and 4 not upgraded.
 
Need to get 4,408 kB of archives.
 
After this operation, 25.0 MB of additional disk space will be used.
 
Do you want to continue? [Y/n]
 
Get:1 http://mirrors.wikimedia.org/ubuntu jammy/main amd64 python3-numpy amd64 1:1.21.5-1build2 [3,464 kB]
 
Get:2 http://mirrors.wikimedia.org/ubuntu jammy/universe amd64 python3-gdal amd64 3.4.1+dfsg-1build4 [673 kB]                 
 
Get:3 http://mirrors.wikimedia.org/ubuntu jammy/universe amd64 gdal-bin amd64 3.4.1+dfsg-1build4 [241 kB]                     
 
Get:4 http://mirrors.wikimedia.org/ubuntu jammy/universe amd64 geotiff-bin amd64 1.7.0-2build1 [30.3 kB]                       
 
Fetched 4,408 kB in 12s (360 kB/s)                                                                                             
 
Setting up python3-numpy (1:1.21.5-1build2) ...
 
Setting up geotiff-bin (1.7.0-2build1) ...
 
Setting up python3-gdal (3.4.1+dfsg-1build4) ...
 
Setting up gdal-bin (3.4.1+dfsg-1build4) ...
 
Processing triggers for man-db (2.10.2-1) ...
 
mjam@x10jam:~/srcs_mjam$ sudo apt install libgdal-grass
 
Reading package lists... Done
 
Building dependency tree... Done
 
Reading state information... Done
 
 
The following additional packages will be installed:
 
  grass-core grass-doc javascript-common libjs-jquery python3-distutils python3-lib2to3
 
Suggested packages:
 
  grass-dev grass-gui e00compr avce00 gnuplot gpsbabel gpstrans python3-rpy2 python3-termcolor grass grass-dev-doc
 
The following NEW packages will be installed:
 
  grass-core grass-doc javascript-common libgdal-grass libjs-jquery python3-distutils python3-lib2to3
 
0 upgraded, 7 newly installed, 0 to remove and 4 not upgraded.
 
Need to get 42.0 MB of archives.
 
After this operation, 75.9 MB of additional disk space will be used.
 
Do you want to continue? [Y/n]
 
Get:1 http://mirrors.wikimedia.org/ubuntu jammy/main amd64 libjs-jquery all 3.6.0+dfsg+~3.5.13-1 [321 kB]
 
Get:2 http://mirrors.wikimedia.org/ubuntu jammy/universe amd64 grass-doc all 7.8.7-1 [34.9 MB]                                 
 
Get:3 http://mirrors.wikimedia.org/ubuntu jammy/main amd64 python3-lib2to3 all 3.10.4-0ubuntu1 [76.2 kB]                       
 
Get:4 http://mirrors.wikimedia.org/ubuntu jammy/main amd64 python3-distutils all 3.10.4-0ubuntu1 [138 kB]                     
 
Get:5 http://mirrors.wikimedia.org/ubuntu jammy/universe amd64 grass-core amd64 7.8.7-1 [6,548 kB]                             
 
Get:6 http://mirrors.wikimedia.org/ubuntu jammy/main amd64 javascript-common all 11+nmu1 [5,936 B]                             
 
Get:7 http://mirrors.wikimedia.org/ubuntu jammy/universe amd64 libgdal-grass amd64 3.4.1-3 [27.7 kB]                           
 
Fetched 42.0 MB in 1min 56s (363 kB/s)                                                                                         
 
Selecting previously unselected package libjs-jquery.
 
(Reading database ... 309873 files and directories currently installed.)
 
Preparing to unpack .../0-libjs-jquery_3.6.0+dfsg+~3.5.13-1_all.deb ...
 
Unpacking libjs-jquery (3.6.0+dfsg+~3.5.13-1) ...
 
Selecting previously unselected package grass-doc.
 
Preparing to unpack .../1-grass-doc_7.8.7-1_all.deb ...
 
Unpacking grass-doc (7.8.7-1) ...
 
Selecting previously unselected package python3-lib2to3.
 
Preparing to unpack .../2-python3-lib2to3_3.10.4-0ubuntu1_all.deb ...
 
Unpacking python3-lib2to3 (3.10.4-0ubuntu1) ...
 
Selecting previously unselected package python3-distutils.
 
Preparing to unpack .../3-python3-distutils_3.10.4-0ubuntu1_all.deb ...
 
Unpacking python3-distutils (3.10.4-0ubuntu1) ...
 
Selecting previously unselected package grass-core.
 
Preparing to unpack .../4-grass-core_7.8.7-1_amd64.deb ...
 
Unpacking grass-core (7.8.7-1) ...
 
Selecting previously unselected package javascript-common.
 
Preparing to unpack .../5-javascript-common_11+nmu1_all.deb ...
 
Unpacking javascript-common (11+nmu1) ...
 
Selecting previously unselected package libgdal-grass.
 
Preparing to unpack .../6-libgdal-grass_3.4.1-3_amd64.deb ...
 
Unpacking libgdal-grass (3.4.1-3) ...
 
Setting up javascript-common (11+nmu1) ...
 
apache2_invoke: Enable configuration javascript-common
 
Setting up libjs-jquery (3.6.0+dfsg+~3.5.13-1) ...
 
Setting up python3-lib2to3 (3.10.4-0ubuntu1) ...
 
Setting up python3-distutils (3.10.4-0ubuntu1) ...
 
Setting up grass-doc (7.8.7-1) ...
 
Setting up grass-core (7.8.7-1) ...
 
Setting up libgdal-grass (3.4.1-3) ...
 
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
 
Processing triggers for hicolor-icon-theme (0.17-2) ...
 
Processing triggers for man-db (2.10.2-1) ...
 
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
 
 
mjam@x10jam:~/srcs_mjam$ sudo apt install libgdal-grass
 
Reading package lists... Done
 
Building dependency tree... Done
 
Reading state information... Done
 
 
 
The following additional packages will be installed:
 
  grass-core grass-doc javascript-common libjs-jquery python3-distutils python3-lib2to3
 
 
Suggested packages:
 
  grass-dev grass-gui e00compr avce00 gnuplot gpsbabel gpstrans python3-rpy2 python3-termcolor grass grass-dev-doc
 
The following NEW packages will be installed:
 
  grass-core grass-doc javascript-common libgdal-grass libjs-jquery python3-distutils python3-lib2to3
 
0 upgraded, 7 newly installed, 0 to remove and 4 not upgraded.
 
Need to get 42.0 MB of archives.
 
After this operation, 75.9 MB of additional disk space will be used.
 
Do you want to continue? [Y/n]
 
Get:1 http://mirrors.wikimedia.org/ubuntu jammy/main amd64 libjs-jquery all 3.6.0+dfsg+~3.5.13-1 [321 kB]
 
Get:2 http://mirrors.wikimedia.org/ubuntu jammy/universe amd64 grass-doc all 7.8.7-1 [34.9 MB]                                 
 
Get:3 http://mirrors.wikimedia.org/ubuntu jammy/main amd64 python3-lib2to3 all 3.10.4-0ubuntu1 [76.2 kB]                       
 
Get:4 http://mirrors.wikimedia.org/ubuntu jammy/main amd64 python3-distutils all 3.10.4-0ubuntu1 [138 kB]                     
 
Get:5 http://mirrors.wikimedia.org/ubuntu jammy/universe amd64 grass-core amd64 7.8.7-1 [6,548 kB]                             
 
Get:6 http://mirrors.wikimedia.org/ubuntu jammy/main amd64 javascript-common all 11+nmu1 [5,936 B]                             
 
Get:7 http://mirrors.wikimedia.org/ubuntu jammy/universe amd64 libgdal-grass amd64 3.4.1-3 [27.7 kB]                           
 
Fetched 42.0 MB in 1min 56s (363 kB/s)                                                                                         
 
Selecting previously unselected package libjs-jquery.
 
(Reading database ... 309873 files and directories currently installed.)
 
 
 
Setting up javascript-common (11+nmu1) ...
 
apache2_invoke: Enable configuration javascript-common
 
Setting up libjs-jquery (3.6.0+dfsg+~3.5.13-1) ...
 
Setting up python3-lib2to3 (3.10.4-0ubuntu1) ...
 
Setting up python3-distutils (3.10.4-0ubuntu1) ...
 
Setting up grass-doc (7.8.7-1) ...
 
Setting up grass-core (7.8.7-1) ...
 
Setting up libgdal-grass (3.4.1-3) ...
 
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
 
Processing triggers for hicolor-icon-theme (0.17-2) ...
 
Processing triggers for man-db (2.10.2-1) ...
 
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
 
 
</pre>
 
  
 
[[Category: live-demo]]
 
[[Category: live-demo]]

Latest revision as of 17:40, 25 July 2022

IPython3

ipython3
Python 3.10.4 (main, Jun 29 2022, 12:14:53) [GCC 11.2.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.31.1 -- An enhanced Interactive Python. Type '?' for help.

ipython3 | Unpacking python3-backcall (0.2.0-2) ... | -parso (0.8.1-1) ... | -jedi (0.18.0-1) ... | -traitlets (5.1.1-1) ... | -matplotlib-inline (0.1.3-1) ... | -pickleshare (0.7.5-5) ... | -wcwidth (0.2.5+dfsg1-1) ... | -prompt-toolkit (3.0.28-1) ... | ipython3 (7.31.1-1) ...

Python3 Pandas

python3-pandas
| -matplotlib (3.5.1-2build1) ...
| -numba (0.55.1-0ubuntu2) ...
| -pandas-lib:amd64 (1.3.5+dfsg-3) ...
| -pandas (1.3.5+dfsg-3) ...
| -setuptools (59.6.0-1.2) ...
| -wheel (0.37.1-2) ...
| -pip (22.0.2+dfsg-1) ...
| -pluggy (0.13.0-7.1) ...
| -py (1.10.0-1) ...
| -toml (0.10.2-1) ...
| -pytest (6.2.5-1ubuntu2) ...
| -tables-lib (3.7.0-2build1) ...
| -tables (3.7.0-2build1) ...
| -numexpr (2.8.1-1build1) ...
| -openpyxl (3.0.9-1) ...
| -xlwt (1.3.0-3) ...
| -scipy (1.8.0-1)

Python3 GeoPandas

python3-geopandas
| libspatialindex6:amd64 (1.9.3-2) ...
| libspatialindex-c6:amd64 (1.9.3-2) ...
| pkg-config (0.29.2-1ubuntu3) ...
| -click-plugins (1.1.1-3) ...
| -cligj (0.7.2-1) ...
| -descartes (1.1.0-4) ...
| -munch (2.5.0-1) ...
| -fiona (1.8.21-1build1) ...
| -geographiclib (1.52-1) ...
| -pyproj (3.3.0-2build1) ...
| -shapely (1.8.0-1build1) ...
| -geopandas (0.10.2-1) ...
| -geopy (2.2.0-1) ...
| libspatialindex-dev:amd64 (1.9.3-2) ...
| -rtree (0.9.7-1) ...

Python3 xarray

xarray (0.21.1-1) | libfuse2:amd64 (2.9.9-5ubuntu3) ... | libhttp-parser2.9:amd64 (2.9.4-4) ... | libmbedcrypto7:amd64 (2.28.0-1build1) ... | libmbedx509-1:amd64 (2.28.0-1build1) ... | libmbedtls14:amd64 (2.28.0-1build1) ... | libgit2-1.1:amd64 (1.1.0+dfsg.1-4.1build1) ... | liblzf1:amd64 (3.6-3) ... | -asciitree (0.3.3-3) ... | -blosc (1.9.2+ds1-3build2) ... | -cftime (1.5.2+ds-1build1) ... | -cloudpickle (2.0.0-1) ... | -fsspec (2022.01.0-1) ... | -toolz (0.11.2-1) ... | -locket (0.2.1-1) ... | -partd (1.2.0-1) ... | -dask (2022.01.0+dfsg-1ubuntu1) ... | -msgpack (1.0.3-1build1) ... | -psutil (5.9.0-1build1) ... | -sortedcontainers (2.1.0-2) ... | -tblib (1.7.0-2) ... | -heapdict (1.0.1-1) ... | -zict (2.0.0-1) ... | -distributed (2022.01.0+ds.1-1) ... | -stone (3.3.1-1) ... | -dropbox (11.26.0-1) ... | -monotonic (1.6-2) ... | -fasteners (0.14.1-2) ... | -fusepy (3.0.1-2) ... | -h5py-serial (3.6.0-2build1) ... | -h5netcdf (0.12.0-1) ... | -nacl (1.5.0-2) ... | -netcdf4 (1.5.8-1build1) ... | -numcodecs (0.9.1+ds-2build1) ... | -bcrypt (3.2.0-1build1) ... | -paramiko (2.9.3-0ubuntu1) ... | -pygit2 (1.6.1+dfsg-2) ... | -zarr (2.10.3+ds-1) ... | -libarchive-c (2.9-0.1) ...


$ sudo apt install python3-xarray
...
The following additional packages will be installed:
  libfuse2 libgit2-1.1 libhttp-parser2.9 liblzf1 libmbedcrypto7 libmbedtls14 libmbedx509-1 python3-asciitree python3-bcrypt
  python3-blosc python3-cftime python3-cloudpickle python3-dask python3-distributed python3-dropbox python3-fasteners
  python3-fsspec python3-fusepy python3-h5netcdf python3-h5py-serial python3-heapdict python3-libarchive-c python3-locket
  python3-monotonic python3-msgpack python3-nacl python3-netcdf4 python3-numcodecs python3-paramiko python3-partd
  python3-psutil python3-pygit2 python3-sortedcontainers python3-stone python3-tblib python3-toolz python3-zarr python3-zict
Suggested packages:
  python-blosc-doc ipython python-dask-doc python3-bcolz python3-boto python3-graphviz python3-h5py python3-skimage
  python3-sklearn python3-sqlalchemy python-fsspec-doc python-h5py-doc python-nacl-doc python3-gssapi python3-invoke
  python-psutil-doc python-pygit2-doc python-sortedcontainers-doc python-toolz-doc python-xarray-doc python3-cartopy
  python3-pydap python3-seaborn jupyter-notebook
The following NEW packages will be installed:
  libfuse2 libgit2-1.1 libhttp-parser2.9 liblzf1 libmbedcrypto7 libmbedtls14 libmbedx509-1 python3-asciitree python3-bcrypt
  python3-blosc python3-cftime python3-cloudpickle python3-dask python3-distributed python3-dropbox python3-fasteners
  python3-fsspec python3-fusepy python3-h5netcdf python3-h5py-serial python3-heapdict python3-libarchive-c python3-locket
  python3-monotonic python3-msgpack python3-nacl python3-netcdf4 python3-numcodecs python3-paramiko python3-partd
  python3-psutil python3-pygit2 python3-sortedcontainers python3-stone python3-tblib python3-toolz python3-xarray python3-zarr
  python3-zict
0 upgraded, 39 newly installed, 0 to remove and 16 not upgraded.
Need to get 6,281 kB of archives.
After this operation, 36.3 MB of additional disk space will be used.
...                         
Get:39 http://mirrors.wikimedia.org/ubuntu jammy/universe amd64 python3-libarchive-c all 2.9-0.1 [14.5 kB]                      
Fetched 6,281 kB in 19s (326 kB/s)                                                                                              
Extracting templates from packages: 100%
Selecting previously unselected package libfuse2:amd64.
(Reading database ... 383465 files and directories currently installed.)

Setting up python3-heapdict (1.0.1-1) ...
Setting up python3-libarchive-c (2.9-0.1) ...
Setting up python3-tblib (1.7.0-2) ...
Setting up python3-numcodecs (0.9.1+ds-2build1) ...
Setting up python3-bcrypt (3.2.0-1build1) ...
Setting up python3-fsspec (2022.01.0-1) ...
Setting up python3-xarray (0.21.1-1) ...
Setting up python3-sortedcontainers (2.1.0-2) ...
Setting up libfuse2:amd64 (2.9.9-5ubuntu3) ...
Setting up python3-psutil (5.9.0-1build1) ...
Setting up python3-cloudpickle (2.0.0-1) ...
Setting up python3-monotonic (1.6-2) ...
Setting up python3-blosc (1.9.2+ds1-3build2) ...
Setting up python3-stone (3.3.1-1) ...
Setting up libmbedcrypto7:amd64 (2.28.0-1build1) ...
Setting up liblzf1:amd64 (3.6-3) ...
Setting up python3-cftime (1.5.2+ds-1build1) ...
Setting up python3-fasteners (0.14.1-2) ...
Setting up python3-asciitree (0.3.3-3) ...
Setting up python3-toolz (0.11.2-1) ...
Setting up python3-msgpack (1.0.3-1build1) ...
Setting up python3-zarr (2.10.3+ds-1) ...
Setting up python3-zict (2.0.0-1) ...
Setting up python3-locket (0.2.1-1) ...
Setting up python3-netcdf4 (1.5.8-1build1) ...
Setting up python3-nacl (1.5.0-2) ...
Setting up libhttp-parser2.9:amd64 (2.9.4-4) ...
Setting up python3-dropbox (11.26.0-1) ...
Setting up python3-partd (1.2.0-1) ...
Setting up libmbedx509-1:amd64 (2.28.0-1build1) ...
Setting up libmbedtls14:amd64 (2.28.0-1build1) ...
Setting up libgit2-1.1:amd64 (1.1.0+dfsg.1-4.1build1) ...
Setting up python3-pygit2 (1.6.1+dfsg-2) ...
Setting up python3-dask (2022.01.0+dfsg-1ubuntu1) ...
Setting up python3-h5py-serial (3.6.0-2build1) ...
Setting up python3-fusepy (3.0.1-2) ...
Setting up python3-distributed (2022.01.0+ds.1-1) ...
Setting up python3-h5netcdf (0.12.0-1) ...
Setting up python3-paramiko (2.9.3-0ubuntu1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ..

osm2pgsql

osm2pgsql
| gdal-data (3.4.1+dfsg-1build4) ...
| libgdal30 (3.4.1+dfsg-1build4) ...
| libgeos3.10.2:amd64 (3.10.2-1) ...
| libgeos-c1v5:amd64 (3.10.2-1) ...
| proj-data (8.2.1-1) ...
| libproj22:amd64 (8.2.1-1) ...
| proj-bin (8.2.1-1) ...
| python3-pyosmium (3.2.0-1build1) ...
| osm2pgsql (1.6.0+ds-1) ...
| postgresql-14-postgis-3 (3.2.0+dfsg-1ubuntu1) ...
| postgis (3.2.0+dfsg-1ubuntu1) ...
| postgis-doc (3.2.0+dfsg-1ubuntu1) ...
| postgresql-14-postgis-3-scripts (3.2.0+dfsg-1ubuntu1) ...
| python3-psycopg2 (2.9.2-1build2) ...
| libgeotiff5:amd64 (1.7.0-2build1) ...
| mysql-common (5.8+1.0.8) ...
| libmysqlclient21:amd64 (8.0.29-0ubuntu0.22.04.2) ...
| libnetcdf19:amd64 (1:4.8.1-1) ...
| libhdf5-103-1:amd64 (1.10.7+repack-4ubuntu2) ...
| libhdf5-hl-100:amd64 (1.10.7+repack-4ubuntu2) ...
| libhdf4-0-alt (4.2.15-4) ...
| libkmlbase1:amd64 (1.3.0-9) ...
| libkmldom1:amd64 (1.3.0-9) ...
| libkmlengine1:amd64 (1.3.0-9) ...
| libprotobuf-c1:amd64 (1.3.3-1ubuntu2) ...
| libsfcgal1 (1.4.1-1) ...
| libodbc2:amd64 (2.3.9-5) ...
| unixodbc-common (2.3.9-5) ...
| libodbcinst2:amd64 (2.3.9-5) ...
| libogdi4.1 (4.1.0+ds-5) ...
| libqhull-r8.0:amd64 (2020.2-4) ...
| librttopo1:amd64 (1.1.0-2) ...
| libspatialite7:amd64 (5.0.1-2build2) ...
| libxerces-c3.2:amd64 (3.2.3+debian-3build1) ...
| libaec0:amd64 (1.0.6-1) ...
| libgmpxx4ldbl:amd64 (2:6.2.1+dfsg-3ubuntu1) ...
| libsz2:amd64 (1.0.6-1) ...
| liburiparser1:amd64 (0.9.6+dfsg-1) ...
| libarpack2:amd64 (3.8.0-1) ...
| libsuperlu5:amd64 (5.3.0+dfsg1-2) ...
| libarmadillo10 (1:10.8.2+dfsg-1) ...
| libblosc1:amd64 (1.21.1+ds2-2) ...
| libboost-serialization1.74.0:amd64 (1.74.0-14ubuntu3) ...
| libcfitsio9:amd64 (4.0.0-1) ...
| libcharls2:amd64 (2.3.4-1) ...
| libfyba0:amd64 (4.1.1-7) ...
| libfreexl1:amd64 (1.0.6-1) ...
| grass-doc (7.8.7-1) ...
| grass-core (7.8.7-1) ...
| libgdal-grass (3.4.1-3) ...