numpy has got newtonsmethod?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue Jan 1 21:04:24 EST 2013


On Tue, 01 Jan 2013 16:42:13 -0800, Usama Khan wrote:

> Traceback (most recent call last):
>   File "C:/Python27/12.py", line 4, in <module>
>     import scipy  # also has log
>   File "C:/Python27\scipy\__init__.py", line 114, in <module>
>     raise ImportError(msg)
> 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.


Please read the error message. It tells you exactly what you need to do.

You cannot import scipy while being in scipy source directory; please 
exit the scipy source tree first, and relaunch your python interpreter.

Do you understand what a source directory is? It is a directory (a 
folder) with the source code in it. Leave the scipy directory, and re-
start Python, then try importing scipy.



-- 
Steven



More information about the Python-list mailing list