Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

venv #32

Open
Geo2005 opened this issue Aug 10, 2024 · 1 comment
Open

venv #32

Geo2005 opened this issue Aug 10, 2024 · 1 comment

Comments

@Geo2005
Copy link

Geo2005 commented Aug 10, 2024

Будет очень приятно и полезно запускать в виртуальной среде.
Бубунта это любит.

@ButCheR-PRO
Copy link

ButCheR-PRO commented Oct 13, 2024

@echo off

if not exist venv (
    echo Creating virtual environment...
    python -m venv venv
)

echo Activating virtual environment...
call venv\Scripts\activate

if not exist venv\Lib\site-packages\installed (
    if exist requirements.txt (
		echo installing wheel for faster installing
		pip install wheel
        echo Installing dependencies...
        pip install -r requirements.txt
        echo. > venv\Lib\site-packages\installed
    ) else (
        echo requirements.txt not found, skipping dependency installation.
    )
) else (
    echo Dependencies already installed, skipping installation.
)


::Обновление локального репозитория без удаления изменений
git stash
git pull
git stash pop

echo Starting the bot...
python main.py

echo done
pause

В дальнейшем запускать через:

@echo off
echo Activating virtual environment...
call venv\Scripts\activate
echo Starting the bot...
python main.py
pause 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants