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

  • Home
  • SEARCH
  • 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 8159933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:04:58+00:00 2026-06-06T18:04:58+00:00

When I try to import the scipy module (version 0.11.0b1) in the Python interpreter

  • 0

When I try to import the scipy module (version 0.11.0b1) in the Python interpreter (version 2.6.1), I receive the following error:


Traceback (most recent call last):

File "<stdin>", line 1, in module

File "/Users/...long path.../Desktop/scipy-0.11.0b1/scipy/\__init__.py", line 114, in module

ImportError: Error importing scipy: you cannot import scipy while
    being in scipy source directory; please exit the scipy source
    tree first, and relaunch your python intepreter.

The problem is that python is reading from a file that doesn’t exist. I deleted the scipy directory from my Desktop a while ago and have since tried restarting the interpreter (and the computer) several times. Why does the traceback continue to refer to a file that doesn’t exist?

  • 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-06T18:05:00+00:00Added an answer on June 6, 2026 at 6:05 pm

    It looks like the python path is including a reference to the directory you deleted.

    If you:

    import sys
    print sys.path
    

    You should be able to see a reference in there to the deleted directory. If that’s the case, removing that entry from sys.path will allow you to import scipy as before.

    The tricky part may be finding where that path is being injected into sys.path. Possible locations include (but aren’t limited to): your system’s site.py file, the PYTHONPATH environment variable, or even your O/S PATH environment variable.

    Best of luck!

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

Sidebar

Related Questions

I'm running the following Python script: #!/usr/bin/python import os,sys from scipy import stats import
I can check for a module in Python doing something like: try: import some_module
I have installed Numpy using ActivePython and when I try to import numpy module,
I try to run #!/usr/bin/env python import os from numpy import * b= ones((3,
i am trying to use scapy in python while i try to import the
Take Django for instance, in manage.py : try: import settings except ImportError: sys.stderr.write(Error: Can't
When I try and import scriptext on PyS60 version 2.0 on my N95 phone,
I try to import sql script, generated with Server Management Studio, into SQL Compact
I try to import a .jar lib. Add in code, I import it with
I just follow this DIHQuickStart , try to import data to solr from mysql.

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.