Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install Rtree via python pip




Rtree - R-Tree spatial index for Python GIS, it belongs to Classifiers:

- Development Status :: 5 - Production/Stable
- Intended Audience :: Science/Research
- Programming Language :: C
- Programming Language :: C++
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.10
- Topic :: Database
- Topic :: Scientific/Engineering
- Topic :: Scientific/Engineering :: GIS

When you know about this project and you want to new install Rtree to support your project or you get trouble as ModuleNotFoundError: No module named "Rtree" or ImportError: cannot import name "Rtree" in your project, let follow this tutorial to install Rtree



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_Rtree_env

- Active the virtual environment

test_Rtree_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_Rtree_env

- Active the virtual environment

source test_Rtree_env/bin/active


Step 2: OK, now, let flow below content to start the installation Rtree

To install Rtree on Windows(CMD):

py -m pip install Rtree

To install Rtree on Unix/macOs:

pip install Rtree


Step 3: If you want to install a specific Rtree version, add ==<Rtree version> to the end command line

Example:

pip install Rtree==0.1.0


Please see the version list below table:

VersionReleased dateCommand
Rtree 1.0.02022-04-04T23:22:01Windows:

py -m pip install Rtree==1.0.0

Unix/macOs:

pip install Rtree==1.0.0

Rtree 0.9.72020-12-24T15:38:56Windows:

py -m pip install Rtree==0.9.7

Unix/macOs:

pip install Rtree==0.9.7

Rtree 0.9.62020-12-22T16:21:09Windows:

py -m pip install Rtree==0.9.6

Unix/macOs:

pip install Rtree==0.9.6

Rtree 0.9.52020-12-18T12:36:41Windows:

py -m pip install Rtree==0.9.5

Unix/macOs:

pip install Rtree==0.9.5

Rtree 0.9.42020-02-11T15:11:27Windows:

py -m pip install Rtree==0.9.4

Unix/macOs:

pip install Rtree==0.9.4

Rtree 0.9.32019-12-10T19:53:49Windows:

py -m pip install Rtree==0.9.3

Unix/macOs:

pip install Rtree==0.9.3

Rtree 0.9.22019-12-09T21:39:06Windows:

py -m pip install Rtree==0.9.2

Unix/macOs:

pip install Rtree==0.9.2

Rtree 0.9.12019-11-25T15:06:44Windows:

py -m pip install Rtree==0.9.1

Unix/macOs:

pip install Rtree==0.9.1

Rtree 0.9.02019-11-25T03:31:39Windows:

py -m pip install Rtree==0.9.0

Unix/macOs:

pip install Rtree==0.9.0

Rtree 0.8.32016-12-14T20:42:07Windows:

py -m pip install Rtree==0.8.3

Unix/macOs:

pip install Rtree==0.8.3

Rtree 0.8.22014-11-18T14:52:56Windows:

py -m pip install Rtree==0.8.2

Unix/macOs:

pip install Rtree==0.8.2

Rtree 0.8.12014-11-03T03:20:46Windows:

py -m pip install Rtree==0.8.1

Unix/macOs:

pip install Rtree==0.8.1

Rtree 0.8.02014-07-17T20:55:52Windows:

py -m pip install Rtree==0.8.0

Unix/macOs:

pip install Rtree==0.8.0

Rtree 0.7.02011-12-29T17:07:14Windows:

py -m pip install Rtree==0.7.0

Unix/macOs:

pip install Rtree==0.7.0

Rtree 0.6.02010-04-13T16:08:35Windows:

py -m pip install Rtree==0.6.0

Unix/macOs:

pip install Rtree==0.6.0

Rtree 0.5.02009-08-06T03:05:23Windows:

py -m pip install Rtree==0.5.0

Unix/macOs:

pip install Rtree==0.5.0

Rtree 0.4.32009-06-05T16:13:00Windows:

py -m pip install Rtree==0.4.3

Unix/macOs:

pip install Rtree==0.4.3

Rtree 0.4.22009-05-28T18:03:12Windows:

py -m pip install Rtree==0.4.2

Unix/macOs:

pip install Rtree==0.4.2

Rtree 0.4.12008-03-24T19:48:08Windows:

py -m pip install Rtree==0.4.1

Unix/macOs:

pip install Rtree==0.4.1

Rtree 0.42008-01-24T20:37:28Windows:

py -m pip install Rtree==0.4

Unix/macOs:

pip install Rtree==0.4

Rtree 0.3.02007-11-26T22:59:40Windows:

py -m pip install Rtree==0.3.0

Unix/macOs:

pip install Rtree==0.3.0

Rtree 0.2.02007-05-18T17:03:13Windows:

py -m pip install Rtree==0.2.0

Unix/macOs:

pip install Rtree==0.2.0

Rtree 0.1.02007-04-13T21:24:58Windows:

py -m pip install Rtree==0.1.0

Unix/macOs:

pip install Rtree==0.1.0


Step 4: Otherwise, you can install Rtree from local archives:

Download the distribution file from Rtree-1.0.0.tar.gz or the specific Rtree version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_Rtree_downloaded_file>

On Unix/macOs:

pip install <path_to_Rtree_downloaded_file>


List distribution:


Project link:

- Homepage