alecaceres / SCA

Ejercicios resueltos de Sistemas de Control Automático con Python Control Systems Library.
0 stars 0 forks source link

Problema con la instalación de slycot en Windows 10 #1

Open marcos2307 opened 4 years ago

marcos2307 commented 4 years ago

Necesito su ayuda! WhatsApp Image 2020-08-17 at 7 59 53 PM

C:\Users\rocinante>pip install slycot
Collecting slycot
  Using cached slycot-0.4.0.0.tar.gz (1.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: numpy in c:\users\rocinante\appdata\local\programs\python\python37-32\lib\site-packages (from slycot) (1.19.1)
Building wheels for collected packages: slycot
  Building wheel for slycot (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\rocinante\appdata\local\programs\python\python37-32\python.exe' 'c:\users\rocinante\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\ROCINA~1\AppData\Local\Temp\tmpp3hkv_a9'
       cwd: C:\Users\ROCINA~1\AppData\Local\Temp\pip-install-n543yhwx\slycot
  Complete output (56 lines):
  Not searching for unused variables given on the command line.
  -- The C compiler identification is unknown
  CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
    The CMAKE_C_COMPILER:

      cl

    is not a full path and was not found in the PATH.

    To use the NMake generator with Visual C++, cmake must be run from a shell
    that can use the compiler cl from the command line.  This environment is
    unable to invoke the cl compiler.  To fix this problem, run cmake from the
    Visual Studio Command Prompt (vcvarsall.bat).

    Tell CMake where to find the compiler by setting either the environment
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH.

  -- Configuring incomplete, errors occurred!
  See also "C:/Users/rocinante/AppData/Local/Temp/pip-install-n543yhwx/slycot/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
  See also "C:/Users/rocinante/AppData/Local/Temp/pip-install-n543yhwx/slycot/_cmake_test_compile/build/CMakeFiles/CMakeError.log".
  FC ('-DCMAKE_Fortran_COMPILER=', 'c:/users/rocinante/appdata/local/programs/python/python37-32/Library/bin/flang.exe')
  F2PY ('-DF2PY_EXECUTABLE=', 'c:/users/rocinante/appdata/local/programs/python/python37-32/Scripts/f2py.exe')
  NUMPY_INCLUDE ('-DNumPy_INCLUDE_DIR=', 'c:/users/rocinante/appdata/local/programs/python/python37-32/Include')
  ['-DSLYCOT_VERSION:STRING=0.4.0', '-DGIT_REVISION:STRING=ac0944b363a6cfcc0c3d5128cdd484d74173aa3b', '-DISRELEASE:STRING=True', '-DFULL_VERSION=0.4.0.gitac0944b', '-GNMake Makefiles', '-DCMAKE_Fortran_COMPILER=c:/users/rocinante/appdata/local/programs/python/python37-32/Library/bin/flang.exe', '-DF2PY_EXECUTABLE=c:/users/rocinante/appdata/local/programs/python/python37-32/Scripts/f2py.exe', '-DNumPy_INCLUDE_DIR=c:/users/rocinante/appdata/local/programs/python/python37-32/Include', '-DCMAKE_Fortran_SIMULATE_VERSION=5.0.0', '-DCMAKE_Fortran_COMPILER_ID=Flang', '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON']

  --------------------------------------------------------------------------------
  -- Trying "NMake Makefiles (Visual Studio 15 2017 v141)" generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying "NMake Makefiles (Visual Studio 15 2017 v141)" generator - failure
  --------------------------------------------------------------------------------

  ********************************************************************************
  scikit-build could not get a working generator for your system. Aborting build.

  Building windows wheels for Python 3.7 requires Microsoft Visual Studio 2017.
  Get it with "Visual Studio 2017":

    https://visualstudio.microsoft.com/vs/

  ********************************************************************************
  ----------------------------------------
  ERROR: Failed building wheel for slycot
Failed to build slycot
ERROR: Could not build wheels for slycot which use PEP 517 and cannot be installed directly

Tratando de resolver ahora el error. Probé las rutinas y me corren pero no veo los gráficos, sólo las salidas (Outputs). ¿Es así nomas o debería graficarme ya?

alecaceres commented 4 years ago

Sin slycot debería funcionar para la mayoría de las funciones. Si estás corriendo desde tu terminal, podés fijarte importando matplotlib.pyplot y después darle matplotlib.pyplot.show() para que se muestren los gráficos.

tetotille commented 4 years ago

Te recomiendo usar el instalador de miniconda: conda install -c conda-forge slycot

o en todo caso si querés instalar con pip creo que se necesita todo esto antes

If you are compiling and installing Slycot from source, you will need the following dependencies:

Python 2.7, 3.5+
NumPy
scikit-build >= 0.10.0
CMake
C compiler (e.g. gcc, MS Visual C++)
FORTRAN compiler (e.g. gfortran, ifort, flang)
BLAS/LAPACK (e.g. OpenBLAS, ATLAS, MKL)

https://pypi.org/project/slycot/

marcos2307 commented 4 years ago

por el compilador es, ahora estoy instalando el del VS2017, yo uso el visual c++ que viene con el VS2015 por algo del matlab. miniconda pio es el tema?

marcos2307 commented 4 years ago

Sin slycot debería funcionar para la mayoría de las funciones. Si estás corriendo desde tu terminal, podés fijarte importando matplotlib.pyplot y después darle matplotlib.pyplot.show() para que se muestren los gráficos.

voy a probar el show