English | Portuguese
Tested version: Python 3.9
I highly recommend creating a Python virtualization environment before installing packages.
If you use Windows to avoid errors with Windows PowerShell, follow these steps before proceeding.
Check that the pip is up to date and install virtualenv
python -m pip install --upgrade pip
pip3 install virtualenv
Make sure you are in the project's root folder to use the commands below
Use the command below to create a virtualenv with the name "venv" or another of your choice.
virtualenv name_of_virtualenv
Activate the virtualenv you just created with this command
.\\name_of_virtualenv\\Scripts\\activate
The name you chose for virtualenv appears before the path, like this.
Use the command pip install -r requirements.txt
PowerShell works with an authorization feature (known as Execution Policy
) for running scripts
When trying to open virtualenv with PowerShell by running the script .\\name_of_virtualenv\\Scripts\\activate
may present an error about the execution policies, to avoid errors follow the instructions
To check the execution policy, open PowerShell as an administrator and run the following command:
Get-ExecutionPolicy
If it returns Restricted
, run the command:
Set-ExecutionPolicy RemoteSigned
And choose the option [A] Yes to All
If the above command has an error, try using:
Set-ExecutionPolicy Bypass -Scope Process
Verify that the permission change has occurred successfully by running the command again:
Get-ExecutionPolicy
With the permission changed, you can proceed.
Change your api_key within the project before running.
Or create a config.py
file like the example below