Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9007383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:40:28+00:00 2026-06-16T01:40:28+00:00

Preface I had a system-wide installation of Ipython which was working fine. However, when

  • 0

Preface

I had a system-wide installation of Ipython which was working fine. However, when I was working in a virtual environment and had to install ipython there, running it from there gave the following error:

File "/usr/bin/ipython", line 26, in <module>
    import IPython.Shell
ImportError: No module named Shell

Current problem

Unfortunately I accidently removed the ipython file in /usr/bin. So calling ipython from inside or outside the virtual environment now gives this error:

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

The following ipython-related files are currently in /usr/bin:

/usr/bin$ find ipython*
ipython2.6
ipython2.7
ipython-wx
ipythonx

If I remove all these files, will a fresh system-wide ipython install reinstall these files?
(I have my doubts since I reinstalled it and it didn’t add the deleted ipython file. in /usr/bin)

What should I do to fix this?

Extra info

I am using python2.7

Edit

When I replace the first line of the new /usr/bin/ipython file to #!/usr/bin/python as Monir suggested I get this error:

Traceback (most recent call last):
  File "/usr/bin/ipython", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2676, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 552, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: ipython==0.13.1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:40:30+00:00Added an answer on June 16, 2026 at 1:40 am

    — putting as answer to close this qn–

    Try searching for the ipython executable inside the virtual env and copying it to /usr/bin. If the system-wide ipython version was same as the one installed in the virtual env, this should work.

    As requested, I am pasting my /us/bin/ipython:

    #!/usr/bin/python
    # EASY-INSTALL-ENTRY-SCRIPT: 'ipython==0.13.1','console_scripts','ipython'
    __requires__ = 'ipython==0.13.1'
    import sys
    from pkg_resources import load_entry_point
    
    sys.exit(
       load_entry_point('ipython==0.13.1', 'console_scripts', 'ipython')()
    )
    

    This is pointing to system python, so has access to necessary system-wide packages instead of the virtual env python. Run a “which python” on a directory outside your virtualenv and put that path in the first line after the sha-bang. (most probably it wil be /usr/bin/pyhton)

    –Update: pasting part from recent comment to get this answer accepted and the qn closed.

    If all else fails, try reinstalling ipython at system level. Not sure if you already tried that in the first place.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Preface: I'm not sure what resources are. I need this form (which is working
To preface, I'm working with Google App Engine which does not allow JOINS or
Preface: I know that there are high quality graph APIs available. I'm interested in
Before the question, let me preface this with the fact that I am working
Preface: This question is about a project I am working on with a professor
preface note: I'm just starting to learn Grails, so I'm sure there are many
I will preface this question with the disclaimer that I know there are many
(Preface: this question is about ASP.NET MVC 3.0 which was released in 2011 ,
Preface: I've got a System.Web.UI.WebControls.Table on my ASPx page that I define within the
I'm in charge of a time clock system which provides easy access for our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.