Installation guide

Prerequisites

  • OS support: Windows, Linux and OSX

Dependencies

name

version

numpy

pandas

paddlepaddle

>=2.0.0rc0

pgl

>=2.1

(‘-’ means no specific version requirement for that package)

Instruction

PaddleSpatial depends on the paddlepaddle of version 2.0.0rc0 or above. We suggest using conda to create a new environment for the installation. Detailed instruction is shown below:

  1. If you do not have conda installed, please check this website to get it first:

    https://docs.conda.io/projects/conda/en/latest/user-guide/install/

  2. Create a new environment with conda:

    conda create -n paddlespatial
    
  3. Activate the environment which is just created:

    conda activate paddlespatial
    
  4. Install the right version of paddlepaddle according to the device (CPU/GPU) you want to run PaddleSpatial on.

    If you want to use the GPU version of paddlepaddle, run this:

      python -m pip install paddlepaddle-gpu -f https://paddlepaddle.org.cn/whl/stable.html
    
    Or if you want to use the CPU version of ``paddlepaddle``\ , run this:
    
    python -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
    

    Noting that the version of paddlepaddle should be higher than 2.0. Check paddlepaddle‘s official document for more installation guide.

  5. Install PGL using pip:

    pip install pgl
    
  6. Install PaddleSpatial using pip:

    pip install paddlespatial
    
  7. The installation is done!

Note

After playing, if you want to deactivate the conda environment, do this:

conda deactivate