The import json
The import requests
The from datetime import datetime
The import numpy as np
The import matplotlib
The import matplotlib. Figure
The from matplotlib. Font_manager import FontProperties
The from matplotlib. Backends. Backend_agg import FigureCanvasAgg
The from matplotlib. Patches import Polygon
The from matplotlib. Collections import PatchCollection
The from mpl_toolkits. Basemap import basemap
The import matplotlib. Pyplot as PLT
The import matplotlib. Dates as mdates
Error:
C: \ Python \ Python36-32 \ Python exe C:/Users/Administrator/PycharmProjects whfy/yiqing. Py
Traceback (the most recent call last) :
File "C:/Users/Administrator/PycharmProjects whfy/yiqing. Py", line 12, the in & lt; module>
The from mpl_toolkits. Basemap import basemap
File "C: \ Python \ Python36-32 \ lib \ site - packages \ mpl_toolkits \ basemap \ set py", line 38, the in & lt; module>
The import pyproj
The File "C: \ Python \ Python36-32 - packages \ pyproj \ \ lib \ site set py", line 70, in & lt; module>
The from pyproj import _datadir
ImportError: always import a name '_datadir'
The Process finished with exit code 1
Consult everybody warrior, how to return a responsibility???
CodePudding user response:
Problem has been resolved, it is suggested that everyone in python (or pycharm) when installing a plug-in using the Anaconda, so that you can download the installation package, according to the existing environment matching my main reason is that the installation package version mismatch problem,