简体   繁体   中英

Installing Shapely in Python (Spyder)

Good morning. I need to install the Shapely package for using Python for GIS analysis. I searched online and I found that it should be enough to write this line:

conda install -c conda-forge shapely

I'm a total beginner and it is not clear to me if I need to put this line in Python's IDLE or if it is enough to write it in Spyder (which I'm learning to use). I tried both options and the result is always the same:

SyntaxError: invalid syntax

Do you have any ideas/suggestions? Thanks!

This is something you write in your command prompt on Windows. This assumes that you have conda installed. You may have better luck using pip , which is bundled with Python by default. The command you type in the command prompt is pip install shapely . Hope it works for you, good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM