How do I update python from command line Linux?

Thành Đạt

New member
How do I update python from command line Linux?
Answer
Upgrade python 2.7 to 3.6 and 3.7 in Ubuntu
  1. $ sudo add-apt-repository ppa:deadsnakes/ppa.
  2. $ sudo apt-get update.
  3. $ sudo apt-get install python3.6. …
  4. $ sudo apt install python3-pip.
  5. $ sudo update-alternatives –install /usr/bin/python3 python3 /usr/bin/python3.6 1$ sudo update-alternatives –install /usr/bin/python3 python3 /usr/bin/python3.7 2.
 

Tìm kiếm

Back
Top