0

I am a newbie and I need your help!!

I have installed scipy on my Ubuntu.

When I ran the code from scipy import optimize, special

I get the following in terminal: can't read /var/mail/scipy.optimize

and if I type python, and get >>> then type in from scipy import optimize

then I ran code including scipy, optimize, I get the following: name 'scipy' is not defined

1

1 Answer 1

3

from scipy import optimize, special on the shell prompt starts the from command, which is an email program.

from scipy import optimize, special in Python will put the modules optimize and special in your namespace, but not scipy. Either use them unqualified or do import scipy instead.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.