Hi, I'm a Master student a new user of yt I have some troubles to use scipy and yt together. When I'm usin the yt environment yt works fine but i can't import scipy, but when I'm out of the environment i can use it. I really have no idea what's happening so if you could help me would be great Best regards Jose
Hi Jose, yt installs its own python installation that is completely separate from the other python installations on your system. We did this to guard against issues that many people have run into over the years that crop up when setting up yt to work with a python installation that already exists on a system. You should be able to get scipy working by doing the following at the command line: pip install scipy You'll have to do this inside the yt environment. One downside to this way of setting up scipy is that you will have two separate installations of scipy on your hard drive. You might also be able to get your current installation of scipy working with the version of python that yt installs by adjusting the PYTHONPATH environment variable, although I'm not sure if that will cause other issues. It's possible that the scipy installation will fail since scipy has a large number of internal dependencies that some compiler/OS combinations have trouble with. Let us know if you have trouble getting scipy working this way. Cheers, Nathan On 1/13/13 1:59 PM, jutreras@das.uchile.cl wrote:
Hi, I'm a Master student a new user of yt I have some troubles to use scipy and yt together. When I'm usin the yt environment yt works fine but i can't import scipy, but when I'm out of the environment i can use it.
I really have no idea what's happening so if you could help me would be great
Best regards Jose
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Jose and Nathan,
pip install scipy
I have heard of mixed results when doing this in the yt environment. You will need to install LAPACK and BLAS beforehand (http://www.scipy.org/Installing_SciPy/BuildingGeneral). Another option is to try to install yt in a python environment that already has scipy built/installed, as long as that environment has the things that yt needs (http://yt-project.org/doc/advanced/installing.html?highlight=requirements#ma...). Good luck! -- Stephen Skory s@skory.us http://stephenskory.com/ 510.621.3687 (google voice)
On 1/13/13 3:23 PM, Stephen Skory wrote:
I have heard of mixed results when doing this in the yt environment. You will need to install LAPACK and BLAS beforehand (http://www.scipy.org/Installing_SciPy/BuildingGeneral).
I managed to build scipy using pip on a completely clean OS X installation about a month ago without installing BLAS and LAPACK. Your mileage may vary... -Nathan
Hi Nathan Sorry for the delayed answer. I did what you said and now is working good so far. Thanks
Hi Jose, I incurred in the exactly same problem. The way I solved it (after a lot of struggle to be precise) was to install yt on the system python instead of using the yt install script, which relates to its own python. You can do that by (0.remove the current yt installation and the related python) 1.downloading yt 2.going in the yt folder and build yt through the command: python ./setup.py build after ensuring that your pythonpath includes the directory .../your_system_python_path/site-packages It will not work the first time, because you need to satisfy all the yt dependancies, but through the errors you get you can install the dependencies one by one. 3.finally you can install yt by going in the yt directory and typing: python ./setup.py install --prefix=.../directory_where_you_want_yt 4.it is possible that yt will show errors during the use because of the fact that non vital dependencies are not satisfied, if you encounter those errors just install those dependencies when it happens. Hope this helps, cheers, Roberto 2013/1/14 <jutreras@das.uchile.cl>
Hi, I'm a Master student a new user of yt I have some troubles to use scipy and yt together. When I'm usin the yt environment yt works fine but i can't import scipy, but when I'm out of the environment i can use it.
I really have no idea what's happening so if you could help me would be great
Best regards Jose
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
To get things working on NASA's Pleiades, I followed the directions here: http://www.scipy.org/Installing_SciPy/BuildingGeneral, as Stephen suggested, and set the target to YT's site-packages directory. Additionally, I had to include -lgfortran in the compile flags for BLAS/LAPACK to get the SciPy compilation working without throwing a library error, as I was using the gfortran compiler. On Tue, Jan 15, 2013 at 7:31 PM, trobolo dinni < trobolo.trobolo.dinni5@gmail.com> wrote:
Hi Jose,
I incurred in the exactly same problem. The way I solved it (after a lot of struggle to be precise) was to install yt on the system python instead of using the yt install script, which relates to its own python.
You can do that by (0.remove the current yt installation and the related python) 1.downloading yt 2.going in the yt folder and build yt through the command: python ./setup.py build after ensuring that your pythonpath includes the directory .../your_system_python_path/site-packages It will not work the first time, because you need to satisfy all the yt dependancies, but through the errors you get you can install the dependencies one by one. 3.finally you can install yt by going in the yt directory and typing: python ./setup.py install --prefix=.../directory_where_you_want_yt 4.it is possible that yt will show errors during the use because of the fact that non vital dependencies are not satisfied, if you encounter those errors just install those dependencies when it happens.
Hope this helps, cheers, Roberto
2013/1/14 <jutreras@das.uchile.cl>
Hi, I'm a Master student a new user of yt
I have some troubles to use scipy and yt together. When I'm usin the yt environment yt works fine but i can't import scipy, but when I'm out of the environment i can use it.
I really have no idea what's happening so if you could help me would be great
Best regards Jose
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- James Guillochon Department of Astronomy & Astrophysics University of California, Santa Cruz jfg@ucolick.org
participants (6)
-
James Guillochon
-
José Utreras
-
jutreras@das.uchile.cl
-
Nathan Goldbaum
-
Stephen Skory
-
trobolo dinni