Python27 (32-bit) installation Rtree

Source: Internet
Author: User

Start with Pip install-r requirements.txt error: Oserror:could not find or load Spatialindex_c.dll

1) Download the compiled Spatialindex_c.dll from the following link (note: Select DLLs with the same number of Python bits after decompression)

Libspatialindex-1.8.1-win-msvc-2008-x64-x32.zip

It doesn't seem to work. Error: Attributeerror:function ' error_getlasterrornum ' not found.

2) also download the SpatialIndex source file from the following link:

Spatialindex-src-1.8.5-src.tar.gz

3) Open compilation with VS2013, choose 32-bit compile, generate 32-bit Spatialindex_c.dll

4) Copy this DLL to the C:\Windows\SysWOW64 folder (because it is a Windows 64-bit OS).

5) Download the Rtree WHL file in the following link and copy it to the D:\Python27 directory.

http://www.lfd.uci.edu/~gohlke/pythonlibs/#rtree

Rtree-0.8.2-cp27-cp27m-win32.whl

6) Installing RTREE-0.8.2-CP27-CP27M-WIN32.WHL with PIP Install: Successfully installed Rtree-0.8.2

Python27 (32-bit) installation Rtree

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.