Comments on Adding Python 3.11 to `$PATH`
Post
Adding Python 3.11 to $PATH
+5
−0
I built Python 3.11 from source (from GitHub python/cpython branch "3.11").
Here is what I did (after downloading the repo as ZIP)
cd Downloads
7z x cpython-3.11.zip
cd cpython-3.11
chmod +x configure
./configure
make
Everything is okay, but I can run Python 3.11 only in the cpython-3.11 directory because it is not added to $PATH. And here is the problem.
What I tried :
- Rename the file
~/cpython-3.11/pythonto~/cpython-3.11/python3.11 - Open the
.bashrcfile located in/home/[username]/ - Added that line of code at the end:
(Note that my user name isexport PATH="/home/hg/cpython-3.11/python3.11:$PATHhg, cf. HGStyle).
So I restarted my terminal and it does not work. Can someone help please ?
- I tried to do the same thing on the
.profilefile but it still does not work. - I tried to remove the quote marks but it still does not work.

4 comment threads