Python Forum

Full Version: How to install Python on a Mac
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Thanks @perfringo for the hint with VS Code - indeed a great alternative to IDLE. Now the next issue came around the corner: tried to install pandas (which worked) and run a Python script reading a CSV file from a web source. Result: "error 54, 'Connection reset by peer'". Apparently, this has do to with SSL or something like that. Unbelievable. I only want to install the most recent Python 3 version (3.8.6) on my Mac and use the most recent versions of standard packages (nothing exotic). I don't want to spend endless hours in searching the web, studying profile/rc files etc.. Why is is so difficult to get that simple thing done?
Your problem may be that site is blocking programatic access i.e doesn't allow scraping. If this is the case it's not problem of Python (or MacOS).
I can get to the data if I use requests, I can't if I use csv_read from Pandas.

I tried the same access method from Python on a Windows PC, did not work either.

However, in case the site blocks programmatic access via csv_read shouldn't it block access via requests as well?

What is difference between requests and csv_read from an implementation perspective?
@BlueBlue
The only difference is in fact the default value for the sep argument.

read_csv uses sep=','
Pages: 1 2