分页: 2 / 2

Re: 【原创】彩云/和风天气插件

发表于 : 周三 10月 21, 2020 16:09
obaby
peter58 写了: 周三 10月 21, 2020 12:48 oot@QH_hassio:~# cd /volume2/@appstore/py3k/usr/local/bin
root@QH_hassio:/volume2/@appstore/py3k/usr/local/bin# ./pip3 install requests
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Requirement already satisfied: requests in /volume2/@appstore/py3k/usr/local/lib/python3.5/site-packages (2.24.0)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /volume2/@appstore/py3k/usr/local/lib/python3.5/site-packages (from requests) (1.25.11)
Requirement already satisfied: certifi>=2017.4.17 in /volume2/@appstore/py3k/usr/local/lib/python3.5/site-packages (from requests) (2020.6.20)
Requirement already satisfied: idna<3,>=2.5 in /volume2/@appstore/py3k/usr/local/lib/python3.5/site-packages (from requests) (2.10)
Requirement already satisfied: chardet<4,>=3.0.2 in /volume2/@appstore/py3k/usr/local/lib/python3.5/site-packages (from requests) (3.0.4)
谢谢你一直耐心的解答,是不是安装成功了?
看意思是已经安装了,如果继续执行可能还是那个错误。你的python的lib搜索目录没有/volume2/@appstore/py3k/usr/local/lib/python3.5/site-packages
可能得手工加入到python的搜索目录。
修改plugin.py
在import requests之前加入如下代码试试:
import sys
sys.path.append("/volume2/@appstore/py3k/usr/local/lib/python3.5/site-packages")