This post will show how to install python3 and pip in Ubuntu 24.04 OS. This post also shows how to overcome the externally managed environment error
$ sudo apt install python3-full python3 python3-pip
If you get this error,
error: externally-managed-environment, then you need to create a virtual environment for Python and get things done...
$ python3 -m venv ./pradeep
$ source ./pradeep/bin/activate
activate is common for Ubuntu/Fedora, activate.fish to be used in Arch Linux
I tried to install a notebook
$ pip install notebook
so whenever you start running python3 and pip, use this command
$ source ./pradeep/bin/activate
For complete details, watch the following video
Thats it. Subscribe to my channel for more such videos.
Source Codes: https://github.com/tspradeepkumar
My other Channel - https://www.youtube.com/tspradeepkumar
My Tech Blog - https://www.nsnam.com/
My Personal webiste - https://www.pradeepkumar.org
Comments
Post a Comment