all AI news
How To Change Default Python On A Linux Machine
Jan. 3, 2024, 10:57 p.m. | Furkan Gözükara
DEV Community dev.to
Let's say you have installed Python into the following folder
/home/ubuntu/Python-3.10.13
To set it default python version open a terminal
Execute the following commands
echo 'export PATH="/home/ubuntu/Python-3.10.13:$PATH"' >> ~/.bashrc
source ~/.bashrc
Then with the following command you should see 3.10.13 as default
python --version
This above will make it only temporarily for that terminal session
Execute below ones for permanent on all terminals
echo 'export PATH=/home/ubuntu/Python-3.10.13:$PATH' >> ~/.bash_profile
echo 'export PATH=/home/ubuntu/Python-3.10.13:$PATH' >> ~/.profile
echo 'export PATH=/home/ubuntu/Python-3.10.13:$PATH' | sudo tee -a …
bash change command echo export home linux machine path python set terminal tutorial ubuntu will
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
Software Engineer for AI Training Data (School Specific)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Python)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Tier 2)
@ G2i Inc | Remote
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US