mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
Upgraded install batch files
This commit is contained in:
parent
ece46c505e
commit
864c5769e9
7
.gitignore
vendored
7
.gitignore
vendored
@ -130,6 +130,13 @@ dmypy.json
|
|||||||
|
|
||||||
# Database
|
# Database
|
||||||
*.db
|
*.db
|
||||||
|
|
||||||
|
# Docker files
|
||||||
/data
|
/data
|
||||||
|
|
||||||
|
# models
|
||||||
models/
|
models/
|
||||||
!models/README.md
|
!models/README.md
|
||||||
|
|
||||||
|
# Temporary files
|
||||||
|
tmp/
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"ros.distro": "noetic"
|
||||||
|
}
|
66
install.bat
66
install.bat
@ -1,12 +1,47 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
echo HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHH .HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHH. ,HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHH.## HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHHH#.HHHHH/*,*,*,*,*,*,*,*,***,*,**#HHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHHHHH.*,,***,***,***,***,***,***,*******HHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHHH*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*,,,,,HHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHH.,,,***,***,***,***,***,***,***,***,***,***/HHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHH*,,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*HHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHH#,***,***,***,***,***,***,***,***,***,***,***,**HHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHH..HHH,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*#HHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHH,,,**,/H*,***,***,***,,,*,***,***,***,**,,,**,***,***,***H,,*,***HHHHHHHH
|
||||||
|
echo HHHHHH.*,,,*,,,,,*,*,*,***#HHHHH.,,*,*,*,*,**/HHHHH.,*,*,*,*,*,*,*,*****HHHHHHHH
|
||||||
|
echo HHHHHH.*,***,*,*,***,***,.HHHHHHH/**,***,****HHHHHHH.***,***,***,*******HHHHHHHH
|
||||||
|
echo HHHHHH.,,,,,,,,,,,,,,,,,,,.HHHHH.,,,,,,,,,,,,.HHHHHH,,,,,,,,,,,,,,,,,***HHHHHHHH
|
||||||
|
echo HHHHHH.,,,,,,/H,,,**,***,***,,,*,***,***,***,**,,,,*,***,***,***H***,***HHHHHHHH
|
||||||
|
echo HHHHHHH.,,,,*.H,,,,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,***H*,,,,/HHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHH*,***,***,**,,***,***,***,***,***,***,***,***,**.HHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHH,,,,,,,,*,,#H#,,,,,*,,,*,,,,,,,,*#H*,,,,,,,,,**HHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHH,,*,***,***,**/.HHHHHHHHHHHHH#*,,,*,***,***,*HHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHH,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*,*HHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHH**,***,***,***,***,***,***,***,***,***,***,*.HHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHH*,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,*HHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHH**,***,***,*******/..HHHHHHHHH.#/*,*,,,***,***HHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHH*,*,*,******#HHHHHHHHHHHHHHHHHHHHHHHHHHHH./**,,,.HHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHH.,,*,***.HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH.*#HHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHH/,,,*.HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHH,,#HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHH.HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
echo HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
|
||||||
|
|
||||||
|
|
||||||
REM Check if Python is installed
|
REM Check if Python is installed
|
||||||
set /p="Checking for python..." <nul
|
set /p="Checking for python..." <nul
|
||||||
where python >nul 2>&1
|
where python >nul 2>&1
|
||||||
if %ERRORLEVEL% neq 0 (
|
if %errorlevel% neq 0 (
|
||||||
echo Python is not installed. Would you like to install Python? [Y/N]
|
set /p choice=Python is not installed. Would you like to install Python? [Y/N]
|
||||||
set /p choice=
|
if /i ".choice." equ "Y" (
|
||||||
if /i "%choice%" equ "Y" (
|
|
||||||
REM Download Python installer
|
REM Download Python installer
|
||||||
echo Downloading Python installer...
|
echo Downloading Python installer...
|
||||||
powershell -Command "Invoke-WebRequest -Uri 'https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe' -OutFile 'python.exe'"
|
powershell -Command "Invoke-WebRequest -Uri 'https://www.python.org/ftp/python/3.10.0/python-3.10.0-amd64.exe' -OutFile 'python.exe'"
|
||||||
@ -22,20 +57,20 @@ if %ERRORLEVEL% neq 0 (
|
|||||||
echo OK
|
echo OK
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
REM Check if pip is installed
|
REM Check if pip is installed
|
||||||
set /p="Checking for pip..." <nul
|
set /p="Checking for pip..." <nul
|
||||||
python -m pip >nul 2>&1
|
python -m pip >nul 2>&1
|
||||||
if %ERRORLEVEL% neq 0 (
|
if %errorlevel% neq 0 (
|
||||||
echo Pip is not installed. Would you like to install pip? [Y/N]
|
set /p choice=Pip is not installed. Would you like to install pip? [Y/N]
|
||||||
set /p choice=
|
if /i ".choice." equ "Y" (
|
||||||
if /i "%choice%" equ "Y" (
|
|
||||||
REM Download get-pip.py
|
REM Download get-pip.py
|
||||||
echo Downloading get-pip.py...
|
echo Downloading get-pip.py...
|
||||||
powershell -Command "Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile 'get-pip.py'"
|
powershell -Command "Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile 'get-pip.py'"
|
||||||
REM Install pip
|
REM Install pip
|
||||||
echo Installing pip...
|
echo Installing pip...
|
||||||
python get-pip.py
|
python get-pip.py
|
||||||
) else (
|
) else .
|
||||||
echo Please install pip and try again.
|
echo Please install pip and try again.
|
||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
@ -47,10 +82,9 @@ if %ERRORLEVEL% neq 0 (
|
|||||||
REM Check if venv module is available
|
REM Check if venv module is available
|
||||||
set /p="Checking for venv..." <nul
|
set /p="Checking for venv..." <nul
|
||||||
python -c "import venv" >nul 2>&1
|
python -c "import venv" >nul 2>&1
|
||||||
if %ERRORLEVEL% neq 0 (
|
if %errorlevel% neq 0 (
|
||||||
echo venv module is not available. Would you like to upgrade Python to the latest version? [Y/N]
|
set /p choice=venv module is not available. Would you like to upgrade Python to the latest version? [Y/N]
|
||||||
set /p choice=
|
if /i ".choice." equ "Y" (
|
||||||
if /i "%choice%" equ "Y" (
|
|
||||||
REM Upgrade Python
|
REM Upgrade Python
|
||||||
echo Upgrading Python...
|
echo Upgrading Python...
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
@ -67,7 +101,7 @@ if %ERRORLEVEL% neq 0 (
|
|||||||
REM Create a new virtual environment
|
REM Create a new virtual environment
|
||||||
set /p="Creating virtual environment ..." <nul
|
set /p="Creating virtual environment ..." <nul
|
||||||
python -m venv env
|
python -m venv env
|
||||||
if %ERRORLEVEL% neq 0 (
|
if %errorlevel% neq 0 (
|
||||||
echo Failed to create virtual environment. Please check your Python installation and try again.
|
echo Failed to create virtual environment. Please check your Python installation and try again.
|
||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
@ -81,11 +115,9 @@ call env\Scripts\activate.bat
|
|||||||
echo OK
|
echo OK
|
||||||
REM Install the required packages
|
REM Install the required packages
|
||||||
echo Installing requirements ...
|
echo Installing requirements ...
|
||||||
set DS_BUILD_OPS=0
|
|
||||||
set DS_BUILD_AIO=0
|
|
||||||
python -m pip install pip --upgrade
|
python -m pip install pip --upgrade
|
||||||
python -m pip install -r requirements.txt
|
python -m pip install -r requirements.txt
|
||||||
if %ERRORLEVEL% neq 0 (
|
if .ERRORLEVEL. neq 0 (
|
||||||
echo Failed to install required packages. Please check your internet connection and try again.
|
echo Failed to install required packages. Please check your internet connection and try again.
|
||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
|
@ -6,7 +6,7 @@ if /i "%choice%" equ "Y" (
|
|||||||
REM Download Python installer
|
REM Download Python installer
|
||||||
echo -n
|
echo -n
|
||||||
set /p="Removing virtual environment..." <nul
|
set /p="Removing virtual environment..." <nul
|
||||||
powershell -Command "rm env -y"
|
powershell -Command "rm env"
|
||||||
echo OK
|
echo OK
|
||||||
pause
|
pause
|
||||||
) else (
|
) else (
|
||||||
|
Loading…
Reference in New Issue
Block a user