What's the official state of Python module scipy in Cygwin?

My Name mname989@gmail.com
Mon Jun 22 02:38:51 GMT 2020


E.M.,

Your recipe has worked for me. I've successfully installed scipy per your
instructions. Thanks for your time and patience. I have wanted to use scipy
in Cygwin for three or four years, but had not asked here until yesterday.
Please don't apologize for abbreviating the package names at first. I
imagine everyone else reading knew exactly which packages you meant; but
despite relying on Cygwin for some basic things, my Cygwin expertise is
just novice. I work on my own development projects full-time, but haven't
been at a university or worked in a development team for thirty years;
haven't used gcc for three years and don't remember its details. My Cygwin
Setup which allowed me to install scipy was this:

=========================
setup-x86_64.exe -P
libopenblas,openblas-doc,liblapack-devel,liblapack-doc,gcc-core,gcc-g++,gcc-fortran,libgfortran4,libgfortran5,python27,python37,python37-devel,python37-pip,python37-tkinter,python37-six,python37-wheel,python37-numpy,bzr,emacs-w32,aspell,aspell-en,octave
=========================

I surely did some overkill with the three fortran packages, not knowing
which was meant by "gfortran", but it didn't hurt anything.

> Maybe I missed it, but I don't see anything indicating that you have
installed openblas or lapack

Before trying your relatively complex recipe, I tried MA and BI's simpler
recipes. First I tried MA's recipe, so I installed lapack but not
libopenblas. Next I tried BI's recipe, so I installed them both, but still
could not install scipy. Then, while preparing my batch file for your
recipe, I noticed I'd been installing python37 but not python37-devel
previously while trying MA and BI's recipes. That omission was
accidental not deliberate, and for all I know now, their solutions might
have worked if I'd installed python37-devel at the time.

I'm plenty satisfied with python3.7, but good luck with python3.8 / scipy.

Considering the power of scipy and (I'm guessing) its popularity, and
considering that the solution required nothing more than installing the
necessary packages via Cygwin Setup and then pip scipy, I respectfully
propose that the solution be included somewhere in the Cygwin documentation
or FAQ, even without scipy as an official Cygwin package.

Thanks to everyone in this thread for helping me.

Best regards


On Sun, Jun 21, 2020 at 4:16 PM My Name <mname989@gmail.com> wrote:

> E.M.,
>
> Can you please clarify several points you make?
>
> - In the Cygwin installer, I find no "lapack", but searching the installer
> for that term does return "liblapack". Would that Cygwin package suffice?
> If not, how would you suggest I install it?
>
> - In the Cygwin installer, I find no "openblas", but searching the
> installer for that term does return "libopenblas" (and the Cygwin installer
> tells me I already have v 0.3.9-1 installed). Does that suffice?
>
> - In the Cygwin installer, I find no "gcc", "g++", or "gfortran", but
> searching the installer for those terms does return "gcc-core", "gcc-g++",
> "libgfortran4", and "libgfortran5". Can you please tell me the exact
> spellings of the packages that worked for you? I lack the background to
> interpret your informal descriptions.
>
> - In the Cygwin installer, I find Packages with names of the form
> "python37-" followed respectively by "tkinter", "six", and "wheel", and I'm
> pretty confident that the long names I've found are what you're describing.
> Are you saying that these three are necessary for installing scipy, or that
> they're possibly necessary, and you're not sure?
>
> Since you had recent success installing scipy, I'd like to try your
> recipe, but could use exact spellings if you have time. Thank you.
>
>
> On Sun, Jun 21, 2020 at 12:40 PM Eliot Moss <moss@cs.umass.edu> wrote:
>
>> You need to install openblas (and lapack, if openblas does not install
>> it).
>>
>> You also need gcc, g++, and gfortran for building various components, and
>> the suitable python-devel and python-pip packages.  I further have the
>> suitable python tkinter, six, and wheel packages installed from cygwin.
>>
>> I am finding that building scipy takes quite a while (a lot of long
>> C and Fortran optimizing compilations).
>>
>> Above, when I say "suitable", I mean python37 (or whatever).  scipy
>> built for me under 3.7 just now, and I am starting a 3.8 build, which
>> will require a local build of numpy, I believe, tediously longer :-) ...
>>
>> Regards - Eliot Moss
>> --
>> Problem reports:      https://cygwin.com/problems.html
>> FAQ:                  https://cygwin.com/faq/
>> Documentation:        https://cygwin.com/docs.html
>> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>>
>


More information about the Cygwin mailing list