Installation of pysftp in debian 9 and Ubuntu
The line of code that throws Could not run curl-config: [Errno 2] No such file or directory” when installing pycurl on Linux, should inform the user as to remedy - a pre-requisite, rather than leaving them to test their google skills.
Try the xlrd library. From what I can see from your comment, something like the snippet below might do the trick. I'm assuming here that...
Now that you have your SMTP connection set up and authorized your app with Google, you can finally use Python to send email with Gmail
How to change the Jupyter Lab start-up folder