ModuleNotFoundError:没有名为'simplekml'的模块

时间:2018-05-25 16:41:20

标签: python-3.x spyder

我正在使用Anaconda Launcher上的udemy网站学习Python - > Spyder(Python 3.6) -

https://www.udemy.com/ardit-sulce-python-for-beginners/learn/v4/t/lecture/3577846?start=0

我收到了这个错误 -

ModuleNotFoundError: No module named 'simplekml'

请让我知道为什么我在运行此代码时遇到此错误 -

   import  simplekml
   import  pandas
   import  tkinter

   df = pandas.read_csv("D:\\Python Tutorial\\coordinates.csv")
  kml = simplekml.Kml()
 for lon,lat in zip (df["Longitude"],df["Latitude"]):
 kml.newpoint(coords=[(lon,lat)])

 kml.save("D:\\Python Tutorial\\Points.kml")

root = tkinter.Tk()
root.title("KML Generator")
label = tkinter.Label(root,text="This program generates a KML file")
label.pack()
browseButton=tkinter.Button(root,text="Browse")
browseButton.pack()
kmlButton=tkinter.Button(root,text="Generate KML")
kmlButton.pack()
root.mainloop()

1 个答案:

答案 0 :(得分:1)

使用“ pip”安装软件包!

pip install 'simplekml'