我正在使用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()
答案 0 :(得分:1)
使用“ pip”安装软件包!
pip install 'simplekml'