You probably want to install with the --user
flag, which should put it on sys.path
automatically.
python setup.py install --user
If you need to use --prefix
for some other reason, then make sure that the directory you add to sys.path
is the folder containing the IPython package, not the IPython directory. It will probably end with 'site-packages'.