I face import error when trying to import shapely module. It was successfully installed by the
conda install -c conda-forge shapely
. Moreover, I've tried to reproduce it with pip
and got
Requirement already satisfied: shapely in /opt/miniconda3/envs/Nerkan_env_new3/lib/python3.7/site-packages (1.7.1)
However I am getting the error
File "/mnt/mipt_storage01/user7/QS/tsp/TSP.py", line 3, in <module>
from shapely.geometry import LineString
ModuleNotFoundError: No module named 'shapely'
I've specified the interpeters in all use files as #!/opt/miniconda3/bin/envs/Nerkan_env_new3/python
, where my env interpreter is stored, and os.environ['CONDA_DEFAULT_ENV']
returns the correct name Nerkan_env_new3
. So I wonder what is the issue with the package importing?