Skip to content

Commit

Permalink
install: Update Python
Browse files Browse the repository at this point in the history
  • Loading branch information
klenin committed Sep 23, 2022
1 parent 756582d commit cf80164
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions install/install-de-pbox.bat
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,23 @@ if exist %TEMP%\R-win.exe %TEMP%\R-win.exe /verysilent /dir=C:\Lang\r
mkdir C:\git\
call pbox install git --homedir=C:\git

if not exist "%PYTHON3_HOME%\python.exe" (
rem pbox has 3.9.7, this version supports Win7
%PBOX_HOME%\bin\wget --output-document %TEMP%\python.exe https://github.com/adang1345/PythonWin7/raw/master/3.10.7/python-3.10.7-amd64-full.exe
%TEMP%\python.exe /quiet InstallAllUsers=1 TargetDir="C:\Lang\python3"
setx PYTHON3_HOME C:\Lang\python3
)

rem PYTHON3_HOME is set by pbox installer.
if exist "%PYTHON3_HOME%\python.exe" (
rem Update sqlite3 library
%PBOX_HOME%\bin\wget --output-document %TEMP%\sqlite3.zip http://www.sqlite.org/2018/sqlite-dll-win64-x64-3250200.zip
%PBOX_HOME%\bin\wget --output-document %TEMP%\sqlite3.zip https://www.sqlite.org/2022/sqlite-dll-win64-x64-3390300.zip
%PBOX_HOME%\bin\7za x -y -o"%PYTHON3_HOME%\DLLs" %TEMP%\sqlite3.zip
rem Includes numpy
"%PYTHON3_HOME%\python.exe" -m pip install pandas sklearn opencv-python matplotlib
"%PYTHON3_HOME%\python.exe" -m pip install pandas sklearn opencv-python matplotlib requests
rem Install cython
"%PYTHON3_HOME%\python.exe" -m pip install cython
copy /y cython.bat "%PYTHON3_HOME%\cython.bat"
"%PYTHON3_HOME%\python.exe" -m pip install requests
)

mkdir C:\Lang\logisim
Expand Down

0 comments on commit cf80164

Please sign in to comment.