Radish H.
Radish H.

Reputation: 72

Setting up a virtual environment with virtualenv gives "SyntaxError: invalid syntax python3"

When trying to set up a virtual environment for TensorFlow in Python 3.6.7 with:

virtualenv --system-site-packages -p python3 ./venv

I get the following error:

SyntaxError: invalid syntax python3

Upvotes: 0

Views: 924

Answers (1)

Ravi
Ravi

Reputation: 338

try to use this python3 -m venv env

Upvotes: 1

Related Questions