Python 如何修复使用google_images_下载库的脚本的问题-可能与internet/ssl/proxy相关的问题?

Python 如何修复使用google_images_下载库的脚本的问题-可能与internet/ssl/proxy相关的问题?,python,ssl,Python,Ssl,我编写了一个python脚本,调用google_images_下载库,以便使用命令行工具从google抓取图像 在我的计算机上,代码运行并下载图像,但当我使用另一台具有相同脚本的计算机时,它会在标题中提供错误 我已经确保安装了库,并且其他计算机都安装了Python 3 我尝试使用不同的wifi网络,看看这是否能解决问题。在两台不同的笔记本电脑上,除了我的,我也犯了同样的错误 from google_images_download import google_images_download imp

我编写了一个python脚本,调用google_images_下载库,以便使用命令行工具从google抓取图像

在我的计算机上,代码运行并下载图像,但当我使用另一台具有相同脚本的计算机时,它会在标题中提供错误

我已经确保安装了库,并且其他计算机都安装了Python 3

我尝试使用不同的wifi网络,看看这是否能解决问题。在两台不同的笔记本电脑上,除了我的,我也犯了同样的错误

from google_images_download import google_images_download
import argparse

parser = argparse.ArgumentParser()
parser.add_argument("query")
parser.add_argument("limit", type=int)
args = parser.parse_args()


def download_images(query, limit):
    response = google_images_download.googleimagesdownload()
    arguments = {"keywords": query,
                 "limit": limit}
    try:
        response.download(arguments)


    except FileNotFoundError:
        arguments = {"keywords": query,
                     "limit": limit}

        try:
            response.download(arguments)
        except:
            pass




def main(query, limit):
    download_images(query, limit)
    print("Images Printed")

if __name__ == '__main__':
    main(args.query, args.limit)
我希望输出创建一个名为downloads的文件夹,其中包含一个子文件夹(即查询的名称),并在子文件夹中放置指定数量的图像

在终端中,应该说是下载图像I到N

输出是标题中显示的错误代码:

Could not open URL. Please check your internet connection and/or ssl settings if you are using proxy, make sure your proxy settings is configured correctly.

这把它修好了。这是一个证书问题

cd /Applications/Python\ 3.7/
./Install\ Certificates.command

代码在我的机器上运行得很好,你能告诉我你在使用什么其他计算机吗?@Ruturaj其他计算机是我下载python 3的Mac。因为他们在不同的城市,所以他们在不同的网络上。我是否应该具体研究哪些方面?