ModuleNotFoundError: No module named 'shapefile'

Viewed 150

I tried to import the shapefile into anaconda spyder, but there are problems ModuleNotFoundError: No module named 'shapefile'

Am I missing something here, and should I try all the matches from PyPi search without any reason? I'm a little lost here...

3 Answers

Before you run import shapefile, you must to do install pyshp using:

conda install -c conda-forge pyshp

In your command prompt and wait until the installation process is complete.

Try to run pip install pyshp from your command line.

There isn't any module called shapefile. You need to install pyshp module with the command:

pip install PyShp

If you want to know more about, you can read about here: https://pypi.org/project/pyshp/

Related