Python Forum
How to install Python on a Mac
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to install Python on a Mac
#11
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?
Reply
#12
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'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply
#13
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?
Reply
#14
@BlueBlue
The only difference is in fact the default value for the sep argument.

read_csv uses sep=','
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020