@echo off
|
|
@REM change to the filepath
|
cd %~dp0
|
|
@REM create the virtual env for this project
|
@REM please make sure your machine have installed a
|
@REM python with global env variable or select it by yourself.
|
|
python -m venv "../.env"
|
|
@REM add vitrual env python to the path
|
path "%~dp0/../.env/Scripts/";%path%
|
|
@REM install some packages
|
python -m pip install --no-index -f "requirements" -r "../requirements.txt"
|
echo #####################################################################
|
python -c "import cv2, pika, flask; print('Hello World! The env is ready!')"
|
|
cd %~dp0
|
call "../src/protos/compile.bat"
|
echo =========== ALL DONE ================
|
echo Press any key to exit this windiow.
|
pause
|