Skip to content

Instantly share code, notes, and snippets.

@RonnyPfannschmidt
Created November 5, 2013 10:45
Show Gist options
  • Save RonnyPfannschmidt/7317171 to your computer and use it in GitHub Desktop.
Save RonnyPfannschmidt/7317171 to your computer and use it in GitHub Desktop.
$ ~/.local/bin/python
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 2.7.5 (default, Nov 5 2013, 11:14:45)
[GCC 4.7.2 20130108 [gcc-4_7-branch revision 195012]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/etc/pythonstart", line 7, in <module>
import readline
ImportError: No module named readline
user@opensuse$ ls ~/.local/
bin include lib lib64 share
user@others$ ls ~/.local/
bin include lib share
cd ~/.local/share
wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz
tar xf Python-2.7.5.tgz
cd Python-2.7.5/
./configure --prefix $HOME/.local/
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment