Python Forum

Full Version: Keep getting "invalid syntax error"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
when running the following code
export SPOTIPY_CLIENT_ID = 'client id'
I get the error "SyntaxError: invalid syntax". The same error is happening with other packages i install as well.

I've been researching what's causing this for a while but i just can't figure out what simple thing I'm doing wrong.

Any help or guidance is appreciated.
Where did you find this export command? It is not Python as far as I know. It looks like a Unix shell command, but then there should be no spaces.
this is not python code. It looks like export command on Linux to create environmental variable SPOTIPY_CLIENT_ID with specific value.
https://stackoverflow.com/questions/1379...command-do

Probably that's part of the installation instructions of whatever script/package you try to run/install
What do you expect to achieve with this command?