Hello all,
I was setting up my new server at the moment and wanted to install scipy on it. I got it all setup thanks to a couple online tutorials. When I tried to run one of my scripts, I got a segmentation fault when it came to importing scipy.optimize. I then used the software manager to install another version of scipy (0.7.0-2 instead of 0.7.2). I then could at least import scipy.optimize, but scipy.optimize.curve_fit could not be found. So I installed 0.7.2 again and now scipy.optimize could be found, but curve_fit was still missing. I looked on google and could only find one solution by replacing the minpack.py file. I tried that and does not seem to work either. Any other ideas or hints?
optimize.curve_fit was added to scipy after 0.7.x (if I remember correctly)
curve_fit is a standalone function (plus two helper functions) and can
be copied anywhere.
Josef
>
> Chuck
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy...@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
_______________________________________________
SciPy-User mailing list
SciPy...@scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-user
build-essential gfortran libatlas-sse2-devvia apt-get. Then I installed nose, numpy and finally scipy using the package from the website
python-all-dev ipython
subversion
http://python-nose.googlecode.com/filesWhen I first installed it. Nose and numpy went through fine, but scipy installation had some g++ problems, so I had to install a new g++. I tried it out and optimize was screwed.
http://superb-east.dl.sourceforge.net/sourceforge/numpy
http://voxel.dl.sourceforge.net/sourceforge/scipy/
_______________________________________________
SciPy-User mailing list
SciPy...@scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-user
Hey,
It is Ubuntu 10.04 on an AMD-64 from the alternative install CD. I first installed
build-essential gfortran libatlas-sse2-dev
python-all-dev ipythonvia apt-get. Then I installed nose, numpy and finally scipy using the package from the website
subversion
http://python-nose.googlecode.com/filesWhen I first installed it. Nose and numpy went through fine, but scipy installation had some g++ problems, so I had to install a new g++. I tried it out and optimize was screwed.
http://superb-east.dl.sourceforge.net/sourceforge/numpy
http://voxel.dl.sourceforge.net/sourceforge/scipy/
When that did not work, I installed 0.7.0 via the Ubuntu software center. After that optimize worked, but curve_fit was gone. So back to 0.7.2 I went to and optimize now worked, but curve_fit still did not.
On Thu, Jul 15, 2010 at 11:52 PM, Benedikt Riedel <bri...@wisc.edu> wrote:Hey,
It is Ubuntu 10.04 on an AMD-64 from the alternative install CD. I first installed
Same here except AMD Phenom.build-essential gfortran libatlas-sse2-dev
Special SSE2 packages are a 32 bit thing, are you running the 32 bit version of Ubuntu?
python-all-dev ipythonvia apt-get. Then I installed nose, numpy and finally scipy using the package from the website
subversion
Usually I apt-get numpy and scipy for the dependencies, then install from svn. If you do install from source in addition to the ubuntu packages you might want to modify the path so the proper package is used. I use
$charris@ubuntu ~$ cat ~/.local/lib/python2.6/site-packages/install.pth
/usr/local/lib/python2.6/dist-packages
Although I suspect /usr/local/lib/python2.6/site-packages would work as well.
http://python-nose.googlecode.com/filesWhen I first installed it. Nose and numpy went through fine, but scipy installation had some g++ problems, so I had to install a new g++. I tried it out and optimize was screwed.
http://superb-east.dl.sourceforge.net/sourceforge/numpy
http://voxel.dl.sourceforge.net/sourceforge/scipy/
When that did not work, I installed 0.7.0 via the Ubuntu software center. After that optimize worked, but curve_fit was gone. So back to 0.7.2 I went to and optimize now worked, but curve_fit still did not.
Chuck
_______________________________________________
SciPy-User mailing list
SciPy...@scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-user
On Fri, Jul 16, 2010 at 01:10, Charles R Harris <charles...@gmail.com> wrote:
On Thu, Jul 15, 2010 at 11:52 PM, Benedikt Riedel <bri...@wisc.edu> wrote:Hey,
It is Ubuntu 10.04 on an AMD-64 from the alternative install CD. I first installed
Same here except AMD Phenom.build-essential gfortran libatlas-sse2-dev
Special SSE2 packages are a 32 bit thing, are you running the 32 bit version of Ubuntu?
Running a 64-bit versionpython-all-dev ipythonvia apt-get. Then I installed nose, numpy and finally scipy using the package from the website
subversion
Usually I apt-get numpy and scipy for the dependencies, then install from svn. If you do install from source in addition to the ubuntu packages you might want to modify the path so the proper package is used. I use
$charris@ubuntu ~$ cat ~/.local/lib/python2.6/site-packages/install.pth
/usr/local/lib/python2.6/dist-packages
Although I suspect /usr/local/lib/python2.6/site-packages would work as well.
I tried the apt-get path but it tells me that numpy and scipy is installed therefore I cant reinstall it.
I dont seem to have /usr/local/lib/python2.6/site-packages but instead only have a /usr/local/lib/python2.6/dist-packages.
I checked out the minpack.py in the dist-packages folder (/usr/local/lib/python2.6/dist-packages) and found that it did have a reference to curve_fit, but when I checked /usr/lib/python2.6/dist-packages and the minpack.py did not have a reference to curve_fit.
_______________________________________________
SciPy-User mailing list
SciPy...@scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-user