摘要: 步骤: 1. 访问 https://pypi.org/ 2. 搜索要下载的依赖 3. 下载tar.gz文件 4. 解压,再解压(第一次解压后的dist文件夹内tar文件需解压) 5. 解压后的文件夹内部,有setup.py文件, 执行 python setup.py install 即可 注意:此种 阅读全文
posted @ 2024-07-26 15:35 人间春风意 阅读(352) 评论(0) 推荐(1)
摘要: 背景:访问https接口,使用http代理 版本:requests: 2.31.0 从报错可以看出,是proxy相关的报错 调整代码,设定不使用代理,将http与https对应的proxy值置空即可(尝试过proxies = {},但此写法不生效) proxies = { 'http': '', ' 阅读全文
posted @ 2024-07-26 15:30 人间春风意 阅读(1346) 评论(0) 推荐(0)
摘要: import requests # 请求接口 import ssl context = ssl.create_default_context() context.check_hostname = False context.verify_mode = ssl.CERT_NONE response = 阅读全文
posted @ 2024-07-26 13:39 人间春风意 阅读(83) 评论(0) 推荐(0)