Python: Difference between revisions

From DWIKI
Line 12: Line 12:
Try
Try
  update-alternatives --config python
  update-alternatives --config python
===update-alternatives: error: no alternatives for python===
update-alternatives --install /usr/bin/python python $(which python3) 3
==Leave virtualenv==
==Leave virtualenv==
  deactivate
  deactivate


[[Category:Programming]]
[[Category:Programming]]

Revision as of 21:21, 20 May 2022

Links


FAQ

-bash: python: command not found

Try

update-alternatives --config python

update-alternatives: error: no alternatives for python

update-alternatives --install /usr/bin/python python $(which python3) 3

Leave virtualenv

deactivate