The Python spatial data processing environment constructs the __python

Source: Internet
Author: User
Tags virtual environment jupyter jupyter notebook
python Spatial data processing environment Setup

Author: Azhen

Email: tanzhenyugis@163.com

Blog: https://blog.csdn.net/theonegis/article/details/80089375

Modification Date: 2018-04-26

Youku Video address: download and installation of http://v.youku.com/v_show/id_XMzU2NjAzMTk0NA==.html Conda

What is Conda? Official definition: Package, dependency and environment management for the any Language-python, R, Ruby, Lua, Scala, Java, JavaScript, C + + Fortran

Conda is a virtual environment and a package (library) dependency management tool

Download Address: Downloading Conda

For Windows version, determine the Python version and system type direct download installation package for installation

For Linux and MacOS Systems, run bash scripts in terminal to install them. the use of Conda New virtual environment (managing environments)

Conda create-n osgeo switch to a new virtual environment

SOURCE Activate OSGeo (Linux and MacOS)

Activate OSGeo (Windows) exit virtual Environment

Source Deactivate (Linux and MacOS)

Deactivate (Windows)

Utility Commands: View the list of Virtual Environments Conda env list or Conda info--envs Remove Virtual Environment Conda remove--name <environment>--all View the list of packages in a virtual environment Conda List Update Conda or a package Conda update Conda or Conda update <package> updates all packages in the virtual Environment Conda update--all View obsolete packages Conda Search- Outdated search specified package Conda search <package> Remove a package Conda remove <package> Add Channel to Conda Profile Conda config--add Chan Nels <channel> or Conda config--append channels <channel> Spatial data Processing Python library installation common space data processing Python library GDAL Universal Basic spatial Data Processing library Fiona spatial vector data processing base based on GDAL rasterio spatial Raster Processing library GDAL based on Basemap spatial mapping library Matplotlib Spatial data analysis base based on Pandas Rsgislib Advanced Library for Remote sensing data and GIS analysis using Conda for library installation

Open command line tool (Terminal), enter command, enter virtual environment

Installing the Gdal Library

Conda install-c Conda-forge Gdal

Installing the Fiona Library

Conda Install-c Conda-forge Fiona

Installing the Rasterio Library

Conda install-c Conda-forge Rasterio

using the PIP for library installation

What is PIP? The PIP is the Python default and recommended practical package management tool that can be installed and managed automatically from the PyPI network warehouse using pip to download the Python package.

For precompiled packages for binary libraries under Windows, provide you with a Web site: Unofficial Windows Binaries for Python Extension Packages

When using PIP, if the underlying Python package relies on some C + + libraries, you need to compile them manually, or you can install a precompiled library under the specified platform.

Installing the Gdal Library

Pip Install GDAL‑2.2.4‑CP37‑CP37M‑WIN_AMD64.WHL

Installing the Fiona Library

Pip Install FIONA‑1.7.11.POST1‑CP37‑CP37M‑WIN_AMD64.WHL

Installing the Rasterio Library

Pip Install RASTERIO‑1.0A12‑CP37‑CP37M‑WIN_AMD64.WHL

Install Jupyter

Pip Install Jupyter

Programming with Jupyter Notebook

Jupyter Notebook

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.