Skip to content
Advertisement

Python returns “SyntaxError: invalid syntax sys module” [closed]

I got this error message when trying to get path for Pandas package. I’m using Centos 7 for my project. Pandas already installed in the system. I’m using Python 2.7.10.

JavaScript

My code

JavaScript

Advertisement

Answer

JavaScript

This line contains two statements. Split them into two lines:

JavaScript

Or, if they must be in one line, separate them with semicolon (highly not recomended!!!):

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement