MemoryError python sql : I’m getting a MemoryError when I try to read a large sql file in Python3.6 with this command:

with open(sql_file, ‘r’) as f:

Is there an alternative to this so I can correctly read my sql file ?