Last active
April 20, 2018 11:55
-
-
Save salihkaragoz/689cb614cdec066b7c3c1ac951a4604f to your computer and use it in GitHub Desktop.
install python3 from source
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
mkdir /truba/home/{username}/python3 | |
cd python3 | |
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz | |
tar zxfv Python-3.5.2.tgz | |
cd Python-3.5.2.tgz | |
./configure --prefix=/truba/home/{username}/python3 | |
make && make install | |
export PATH=/truba/home/{username}/python3/Python-3.5.2/:$PATH | |
export PYTHONPATH=/truba/home/{username}/python3/Python-3.5.2 | |
which python | |
# Python 3.5.2 | |
# Pip install | |
export PATH=/truba/home/{username}/python3/bin:$PATH | |
pip3 install tensorflow-gpu==1.4.0 | |
### for import apt_pkg problem look: | |
https://stackoverflow.com/questions/41720578/modulenotfounderror-in-tracebacks-with-python3-6-on-linux | |
### for pip problem look | |
https://github.com/pypa/pip/issues/4220 | |
### for pygraphviz error | |
https://github.com/pygraphviz/pygraphviz/issues/71 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment