Label

Books (1) CARTO (3) Fun (21) GBDX (1) geoserver (1) GIS (57) greed (4) memo (4) movie (1) music (2) python (4) R (12) statistics (10) study (20) swim (5) tools (19) Ubuntu (7)

2019/12/26

【CARTOframes】Installing CARTOframes

Python 3.6 + CARTOframes 1.0b7 on Windows10


1.  Install Python

     https://www.python.org/downloads/windows/
     python-3.6.8-amd64-webinstall.exe

2. Create venv

    ・Start cmd.exe
    ・cd to your working directory
cd C:\yourworkingdirectory
    ・Create environment called "cartoframes"
python -m venv cartoframes

3. Activate

C:\yourwirkingdirectory\cartoframes\Scripts\activate

4. Install libraries

   GDAL

   ・Download whl file from here
   ・Find "GDAL‑3.0.2‑cp36‑cp36m‑win_amd64.whl"(for 64 bit)
   ・Save it to your working directory
pip install GDAL-3.0.2-cp36-cp36m-win_amd64.whl

   Fiona

   ・Download whl file from here
   ・Find "Fiona‑1.8.13‑cp36‑cp36m‑win_amd64.whl"(for 64 bit)
   ・Save it to your working directory
pip installFiona‑1.8.13‑cp36‑cp36m‑win_amd64.whl

   Shapely

   ・Download whl file from here
   ・Find "Shapely‑1.6.4.post2‑cp36‑cp36m‑win_amd64.whl"(for 64 bit)
   ・Save it to your working directory
pip installShapely‑1.6.4.post2‑cp36‑cp36m‑win_amd64.whl

   Geopandas

pip install geopandas

   cartoframes

pip install cartoframes==1.0b7

   jupyter notebook

pip install jupyter notebook

5. Check 

   ・Open jupyter notebook
jupyter notebook
   ・And try to run this example