3

I'm running PepperMint Linux and I've installed IPython using pip but I can't initialize it:

$ ipython
bash: /usr/bin/ipython: No such file or directory

Although pip says it's correctly installed:

$ pip show ipython
---
Name: ipython
Version: 1.2.1
Location: /usr/local/lib/python2.7/dist-packages
Requires:

This folder doesn't seem to have any executable files, only source codes:

$ ls /usr/local/lib/python2.7/dist-packages/IPython
config core extensions frontend.pyc __init__.pyc __main__.py nbformat scripts testing
consoleapp.py display.py external html kernel __main__.pyc parallel sphinxext utils
consoleapp.pyc display.pyc frontend.py __init__.py lib nbconvert qt terminal

How can I initialize IPython shell? Is it even possible from a pip install, or does pip only download IPython source code?

asked Mar 31, 2014 at 16:00
2
  • Pip should install the entire package. What was the output when you installed via pip? What is your current PATH? Commented Mar 31, 2014 at 16:15
  • Are any IPython executables present in your Python scripts directory? If so, can you run IPython from that directory? Commented Mar 31, 2014 at 16:16

1 Answer 1

4

If the modules were installed under /usr/local, then it's likely the ipython script was installed in the same way. So try running:

$ /usr/local/bin/ipython

If that works, it would seem /usr/local/bin is not in your $PATH for some reason, so you need to fix that if you want to start ipython without specifying the full path (or you could just create an alias for it).

answered Mar 31, 2014 at 18:26
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, ipython was on /usr/local/bin/ipython
By the way, I think it would be better to install pip globally, using the packet manager.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.