Python Ftplib Winerror 10060
I am learning to retrieve files from an ftp server using ftplib from this link : https://docs.python.org/2/library/ftplib.html When i run this code from ftplib import FTP ftp = FTP
Solution 1:
Nothing wrong with this code. It works for me. Maybe the server was just very slow at the time you tried it. You can set a timeout in the connect:
ftp.connect('ftp.debian.org',timeout=seconds)
Post a Comment for "Python Ftplib Winerror 10060"