April 25th, 2013, 09:26 AM
Join Date: Apr 2013
Time spent in forums: 1 h 26 m 51 sec
Reputation Power: 0
A problem about import
I am quite new programmer with Python. I am using Eclipse as IDE. What I want to do is to import scipy lib into my program.
what I have done is
1 I have set the PYTHONPATH where my scipy lib is
2 add the import sentence into my program
then come out this error:
could not import scipy.optimize.leastsq
Traceback (most recent call last):
File "/home/deathlypest/workspace/Robotics/helper.py", line 5, in <module>
import scipy.interpolate as sp
File "/home/deathlypest/workspace/scipy/scipy/__init__.py", line 120, 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.
I have browse through the internet and find no solution.
Is there anyone can help with that? fully appreciation thanks