bmcage / odes

The ODES scikit for ordinary differential and algebraic equations, an extension to scipy
https://scikits-odes.readthedocs.io/
Other
123 stars 45 forks source link

Installation on Windows 10 with Anaconda3 (64 bits) #113

Open rodvallejo opened 4 years ago

rodvallejo commented 4 years ago

Dear fellows,

I have tried to install scikits.odes on a Windows 10 OS with Anaconda 3, but I had some issues.

Packages Installed successfully: SUNDIALS (conda install -c conda-forge sundials) c-complier (conda install -c conda-forge c-compiler) fortran-compiles (conda install -c conda-forge fortran-compiler) lapack (conda install -c conda-forge lapack) blas (conda install -c conda-forge blas)

However, I had the following problems in order to install scikits.odes (pip install scikits.odes) error_scikits_odes.txt

Even with pip install -v scikits.odes i had problems

ERROR: Failed building wheel for scikits.odes ERROR: Could not build wheels for scikits.odes which use PEP 517 and cannot be installed directly

Could you help me ?

Thanks in advance.

ingegno-student commented 4 years ago

The error seems to be with not finding sundials:

Searching for SUNDIALS path...
pkgconfig module not found, using preset paths
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": 
https://visualstudio.microsoft.com/downloads/

odes does not need Microsoft Visual C++ 14.0 , so unclear to me why this would be searched. We do compile small test codes so as to test with what parameters sundials is installed. Can you execute one of the tests of sundials so as to see if correctly installed ?

Note also that pip installs latest version, not sure if conda already has sundials 5.1.0

rodvallejo commented 4 years ago

I am a newbie using python and conda ! How can I test sundials ?

bmcage commented 4 years ago

@rodvallejo the simplest way to use odes is on a linux box and following the installation part of the manual. In Windows you will need to have some experience on setting up build environment and determining if dependencies are correctly working.

rodvallejo commented 4 years ago

Tks @bmcage ! In my company all the computers are based on windows OS and we can't install linux. I have tried to build a virtual linux environment on a cloud server in order to install odes.

aravindh95babu commented 4 years ago

https://github.com/numpy/numpy/issues/12016#issuecomment-555354320

This solution worked for me when I had the same issue. Although it wasn't apparent to me why Visual C++ was needed.

moorepants commented 2 years ago

If you are installing the dependencies via conda-forge, you can also do this conda install scikits.odes to have a working installation on windows.

I am also now seeing build errors connected to recent versions of pip/setuptools on windows. See here: https://github.com/conda-forge/scikits.odes-feedstock/pull/8 I haven't quite been able to figure it out.