Install required version

bash
1
brew install python@3.12

Generate venv

Run in the specified directory

bash
1
python3.12 -m venv venv

will be generated in the directoryvenvfolder

Activate virtual environment

  • MacOS|Linux

    bash
    1
    
    source venv/bin/activate
  • Windows

    bash
    1
    
    venv\Scripts\activate

After activation you will see the command line appear:(venv)

Install dependencies in virtual environment

exist/venvAdd outside folderrequirements.txt, the contents are as follows:

txt
1
2
pyyaml
googletrans==4.0.0-rc1

Then activate the virtual environment and install dependencies

bash
1
pip install -r ./requirements.txt