|
@@ -1,21 +1,21 @@
|
|
|
@echo off
|
|
@echo off
|
|
|
|
|
|
|
|
|
|
+REM Verificar que no hay una versión anterior
|
|
|
|
|
+
|
|
|
echo Instalando Python y paquetes necesarios
|
|
echo Instalando Python y paquetes necesarios
|
|
|
-echo Descargando Python...
|
|
|
|
|
-powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe', 'mc3.exe') }"
|
|
|
|
|
|
|
+REM echo Descargando Python...
|
|
|
|
|
+REM powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe', 'mc3.exe') }"
|
|
|
|
|
|
|
|
-echo Instalando Python
|
|
|
|
|
|
|
+echo Instalando Python...
|
|
|
start /wait "" mc3.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /NoRegistry=1 /S /D=%LOCALAPPDATA%\Merelec\spr\mc3
|
|
start /wait "" mc3.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /NoRegistry=1 /S /D=%LOCALAPPDATA%\Merelec\spr\mc3
|
|
|
-
|
|
|
|
|
|
|
+echo Python se instalo correctamente...
|
|
|
echo Verificando la version de Python
|
|
echo Verificando la version de Python
|
|
|
|
|
|
|
|
%LOCALAPPDATA%\Merelec\spr\mc3\python.exe --version
|
|
%LOCALAPPDATA%\Merelec\spr\mc3\python.exe --version
|
|
|
|
|
|
|
|
%LOCALAPPDATA%\Merelec\spr\mc3\python.exe install_copy_files.py
|
|
%LOCALAPPDATA%\Merelec\spr\mc3\python.exe install_copy_files.py
|
|
|
|
|
|
|
|
-Seteando variables para resolver el problema ssl
|
|
|
|
|
-echo
|
|
|
|
|
-echo
|
|
|
|
|
|
|
+
|
|
|
echo Seteando variables de entorno...
|
|
echo Seteando variables de entorno...
|
|
|
|
|
|
|
|
SET PATH=%PATH%;%LOCALAPPDATA%\Merelec\spr\mc3;%LOCALAPPDATA%\Merelec\spr\mc3\Scripts;%LOCALAPPDATA%\Merelec\spr\mc3\Library;%LOCALAPPDATA%\Merelec\spr\mc3\Library\bin
|
|
SET PATH=%PATH%;%LOCALAPPDATA%\Merelec\spr\mc3;%LOCALAPPDATA%\Merelec\spr\mc3\Scripts;%LOCALAPPDATA%\Merelec\spr\mc3\Library;%LOCALAPPDATA%\Merelec\spr\mc3\Library\bin
|
|
@@ -35,10 +35,15 @@ echo Instalando paquetes necesarios
|
|
|
%LOCALAPPDATA%\Merelec\spr\mc3\Scripts\pip.exe install -r requirements.txt
|
|
%LOCALAPPDATA%\Merelec\spr\mc3\Scripts\pip.exe install -r requirements.txt
|
|
|
|
|
|
|
|
@echo off
|
|
@echo off
|
|
|
-set ipopt=%LOCALAPPDATA%\Merelec\spr\ipopt
|
|
|
|
|
|
|
+echo Agregando IPOPT to Path
|
|
|
|
|
|
|
|
-echo Verificando instalación de python y Ipopt
|
|
|
|
|
|
|
+SET PATH=%PATH%;%LOCALAPPDATA%\Merelec\spr\ipopt\bin
|
|
|
|
|
+
|
|
|
|
|
+echo Verificando instalación de Ipopt
|
|
|
|
|
|
|
|
ipopt --version
|
|
ipopt --version
|
|
|
|
|
|
|
|
|
|
+echo Creando Acceso directo en el escritorio...
|
|
|
|
|
+%LOCALAPPDATA%\Merelec\spr\mc3\python.exe create_shortcut.py
|
|
|
|
|
+
|
|
|
pause
|
|
pause
|