I have some troubles with pip install and I am new to python:
First, this is my python version:
(base) becker@tsf-436-wpa-5-126 ~ % which python3
/Users/becker/opt/anaconda3/bin/python3
then for example I want to install turfpy, so I do
pip3 install turfpy
the output to that is
Requirement already satisfied: turfpy in ./opt/anaconda3/lib/python3.8/site-packages (0.0.6)
Requirement already satisfied: shapely in ./opt/anaconda3/lib/python3.8/site-packages (from turfpy) (1.7.1)
Requirement already satisfied: scipy in ./opt/anaconda3/lib/python3.8/site-packages (from turfpy) (1.5.2)
Requirement already satisfied: numpy in ./opt/anaconda3/lib/python3.8/site-packages (from turfpy) (1.19.2)
Requirement already satisfied: geojson in ./opt/anaconda3/lib/python3.8/site-packages (from turfpy) (2.5.0)
So In principle, I would assume that everything should work.
Now my python file that I am writing with spyder is in a different folder, you see the directory below, than any of the above.
In fact, running the file, I get
File "/Users/becker/Desktop/elevation data/pointinpolygon.py", line 1, in <module>
from turfpy.measurement import boolean_point_in_polygon
ModuleNotFoundError: No module named 'turfpy'
So I must assume that turfpy is not installed after all.
I apologize in advance if some additional information is missing that I should provide. I am a bit clueless what is going on. However, I would like to understand how to do it with spyder and not first uninstall everything to fix this issue, if that is possible.