Install Shapely on Windows

2021/01/01閱讀時間約 3 分鐘
[ Original post is @ https://towardsdatascience.com/install-shapely-on-windows-72b6581bb46c ]
Shapely is a Python package full of wonderful possibilities for geometric stuff to do with your data.
Though, if you are working on Windows OS, installing Shapely is not a trivial task.

Installing with conda

Now this is really simple! For more information on why conda install shapely sometimes does not work, and why the first line is needed, go here.
conda config --add channels conda-forge
conda install shapely
And that’s it!
Another method is :
Go to Settings => System => About => System Type .
Find out your whether you are using Windows 32-bit or 64-bit.
  1. Find out your python version. Open Command prompt, enter python --version and remember the first two numbers. For example my version is Python 3.7.3 so I should remember the number 37 .
  2. pip install wheel
  3. Go here and download the wheel corresponding to items 1–2. For example, I have 64-bit OS and Python 3.7.3 so I need to download file Shapely-1.6.4.post2-cp37-cp37m-win_amd64.whl .
  4. pip install <path-to-Downloads>\<filename_from_item_3> .
    For example in my case I entered
    pip install C:\Users\Dalya\Downloads\Shapely-1.6.4.post2-cp37-cp37m-win_amd64.whl .
And that’s it!
為什麼會看到廣告
Jackie Lin
Jackie Lin
留言0
查看全部
發表第一個留言支持創作者!
從 Google News 追蹤更多 vocus 的最新精選內容