其他分享
首页 > 其他分享> > 问题1终解决

问题1终解决

作者:互联网

先说结果:
运行:

from kivy.garden.mapview import MapView
from kivy.app import App


class MapViewApp(App):
    def build(self):
        mapview = MapView(zoom=11, lat=50.6394, lon=3.057)
        return mapview

MapViewApp().run()

运行正常的窗口安装好kivy后,再安装一个garden模块。

C:\Users\New year>python -m pip install kivy.garden
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting kivy.garden
Requirement already satisfied: requests in f:\vmware\python\python36\lib\site-packages (from kivy.garden) (2.22.0)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in f:\vmware\python\python36\lib\site-packages (from requests->kivy.garden) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in f:\vmware\python\python36\lib\site-packages (from requests->kivy.garden) (1.25.3)
Requirement already satisfied: certifi>=2017.4.17 in f:\vmware\python\python36\lib\site-packages (from requests->kivy.garden) (2019.6.16)
Requirement already satisfied: idna<2.9,>=2.5 in f:\vmware\python\python36\lib\site-packages (from requests->kivy.garden) (2.8)
Installing collected packages: kivy.garden
Successfully installed kivy.garden

正常安装mapview应该是在命令行直接输入:

garden install mapview

安装的。
但是我的一直安装不成功。

所以就直接从GitHub上下载的压缩包,解压后把文件名改成mapview,然后放到python安装目录下的这个garden文件中去。

F:\VMware\python\python36\Lib\site-packages\kivy\garden

然后就解决了。
啊啊啊啊啊,就这么个问题又搞了两天。

标签:garden,python,site,问题,python36,kivy,解决,packages
来源: https://blog.csdn.net/weixin_43763794/article/details/98474065