Created
April 17, 2018 15:11
-
-
Save magks/853c5474c77fe2918901887508ead0de to your computer and use it in GitHub Desktop.
Local install without sudo python3-devel
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
wget https://www.python.org/ftp/python/3.4.5/Python-3.4.5.tgz | |
tar -zxvf Python-3.4.5.tgz | |
cd Python-3.4.5/ | |
./configure --with-pydebug --prefix=/home/<USERNAME>/<LOCALPROGRAMDIR> | |
make altinstall -s -j<CPU_CORES--CHECK_WITH_NPROC_TO_SEE_HOW_MANY_YOU_HAVE> | |
ln -s /home/USERNAME/<LOCALPROGRAMDIR>/python3.4 /home/USERNAME/<LOCALPROGRAMDIR>/python3 | |
# DONE -- make sure your path looks in /home/<USERNAME>/<LOCALPROGRAMDIR> first | |
# e.g. echo "export PATH=/home/<USERNAME>/<LOCALPROGRAMDIR>:$PATH" >> ~/bash_profile | |
# followed by source ~/bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing these instructions in a public gist! 🙂
I installed Python 3.7.16 in my home using these commands. But trying to install
psutil
fails with an error:Some online sources suggest doing
yum install libffi-devel
- but I don't havesudo
access. Do you have any idea how to solve this problem withoutsudo
access?