Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

SyntaxError: invalid syntax #4

Closed
ghost opened this issue Jan 7, 2017 · 1 comment
Closed

SyntaxError: invalid syntax #4

ghost opened this issue Jan 7, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 7, 2017

$ python main.py preprocess games/*
  File "main.py", line 42
    def preprocess(*data_sets, processed_dir="processed_data"):
                                           ^
SyntaxError: invalid syntax

Using:

$ python --version
Python 2.7.12
@prescod
Copy link

prescod commented Jan 7, 2017

You need to use Python 3. I did that this way:

virtualenv -p python3 py3
source py3/bin/activate

This assumes you have python3 and virtualenv installed already.

@ghost ghost closed this as completed Jan 7, 2017
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant