0

I have two version of python 2.7.18rc1 and 3.8.2.If i type on my terminal python -V then it's open python 2.7.18rc1.I want it to change 3.8.2.How can i change this?

Plabon Kumer
  • 45
  • 2
  • 12
  • Does `python3` work? If so you can use that and don't have to worry about changing the default version. – ThisIsAQuestion Jun 19 '20 at 16:52
  • maybe this will help - https://stackoverflow.com/questions/41986507/unable-to-set-default-python-version-to-python3-in-ubuntu – Michal Yanko Jun 19 '20 at 16:57
  • Actually i'm learning flask,There i got an error .It's like `plabon@plabon-H110M-S2PV-DDR3:~/Desktop/flask$ python flaskblog.py File "flaskblog.py", line 40 flash(f'Account created for {form.username.data}!','success') ^ SyntaxError: invalid syntax `That's why i tried to change this. – Plabon Kumer Jun 19 '20 at 16:58
  • 2
    @PlabonKumer if you just replace `python` with `python3` it should fix your problem – ThisIsAQuestion Jun 19 '20 at 17:05
  • Wow,Thank you so much.It's really fix now. – Plabon Kumer Jun 19 '20 at 17:12
  • I would also recommend looking into virtual environments and/or Anaconda. https://www.anaconda.com/products/individual – adam Jun 19 '20 at 18:51

0 Answers0