Python ftplib connection error (gaierror)

前端 未结 2 584
你的背包
你的背包 2020-12-20 14:20

I am trying to make a very basic FTP client in python, and within the first few lines of code I have already run into a problem

My Code:

from ftplib          


        
2条回答
  •  伪装坚强ぢ
    2020-12-20 14:48

    Actually, this means that your computer can't resolve the domain name that you gave it. A detailed error description is available here. Try to use a well-known working FTP to test (e.g. ftp.microsoft.com). Then try to open the FTP you're trying to access with some FTP client.

提交回复
热议问题