ModuleNotFoundError: No module named ‘pyshp’
我再cmd终端和anaconda prompt终端分别用pip install 和conda install 命令下载pyshp,都显示我已经下载。
下面展示一些。
(base) C:\Users\24593>conda install pyshp
Collecting package metadata (repodata.json): done
Solving environment: done
All requested packages already installed.
C:\Users\24593>pip install pyshp
Requirement already satisfied: pyshp in c:\users\24593\appdata\local\programs\python\python36\lib\site-packages (2.1.0)
C:\Users\24593>conda list pyshp
# packages in environment at C:\Users\24593\AppData\Local\Continuum\anaconda3:
#
# Name Version Build Channel
pyshp 2.1.0 py_0
也有版本信息
但是我用python import pyshp 会报错说我没有叫‘pyshp’的模块:
(base) C:\Users\24593>python
Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyshp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pyshp'
我也很无奈,怎么解决这个问题?