You can also use a requirements.txt
file containing your Python
packages to be not dependent on your bash
type, then install the packages from this file on your virtual env.
To correctly manage the Python
versions on your machine, you can install the PyEnv tool.
Go to the root folder of your project and create a virtual env :
python3 -m venv <virtual-environment-name>
python3 -m venv my-env
my-env
is the name of the virtual env.
Activate this venv :
source my-env/bin/activate
At the root of your project, create a file called requirements.txt
:
apache-beam[gcp]==2.46.0
Run the following command :
pip install -r requirements.txt