I tried to import pyproj, and this error occurred.
import pyproj
Traceback (most recent call last):
File "<ipython-input-6-98cb605ea9de>", line 1, in <module>
import pyproj
File "C:\ProgramData\Anaconda3\lib\site-packages\pyproj\__init__.py", line 62, in <module>
from pyproj.crs import CRS
ModuleNotFoundError: No module named 'pyproj.crs'
At first, I thought it has problem with pyproj, but after I reinstalled the latest version of pyproj,
this error still occurred. I also tried to import cartopy.crs and same problem happened.
import cartopy.crs as ccrs
Traceback (most recent call last):
File "<ipython-input-7-139fa5ad2567>", line 1, in <module>
import cartopy.crs as ccrs
ModuleNotFoundError: No module named 'cartopy.crs'
How can I do with this problem? Is there a set of coordinate reference system that I can download
somewhere, or should I remove all about my python and reinstall? I'm really hoping to avoid that.
Any advice, please!
What finally helped me was
import pyximport
pyximport.install()
the _crs module is a pyx file (needs to be translated to C by Cython), pyximport allows it to be imported.
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.