Last active
November 29, 2023 05:03
-
-
Save 4sskick/19f071f0b454849b03c31d753527d86a to your computer and use it in GitHub Desktop.
python 3.10 on system but wanna using python 3.12 on venv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- I use WSL 2 on windows machine, by default it using version 3.10. Then I install the version 3.12 by add repo `sudo add-apt-repository ppa:deadsnakes/ppa` | |
- do `sudo apt update`. Let's see, if the version 3.12 are listed and availbale to install by `apt list | grep python3.12`. It will list all the python version 3.12 | |
- do install `sudo apt install python3.12` finish then check version `python3.12 --version` | |
- install add on essential `sudo apt install python3.12-venv python3.12-dev` | |
- when everthing are done, ready to create venv `python3.12 -m venv venv` | |
- do activate the virtual env `source venv/bin/activate` | |
- check python version usin on venv `python --version` | |
- do deactivate the virutal env just type `deactivate` on root project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment