1

I have followed some guidance on how to indicate Python 3 to run on Visual Studio Code in my Linux machine. However when I execute my script it gives me an error with path indicating Python 2.7

/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)

I don't know if I configure something wrong.

1 Answer 1

2

You need to set python 3 as default on the system by running:

sudo update-alternatives  --set python /usr/bin/python3.6
Sign up to request clarification or add additional context in comments.

2 Comments

It still uses the old path. Do I need to restart my machine?
restart not required for linux, however, you may require to close existing console/IDE and open a new console wherever you are testing.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.