THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Use the following code:
Code Block language bash # Initialize virtual environment called "env" in ~/.virtualenvs or any other directory. (Consider using pyenv, to manage the python version as well as installed packages in your virtual environment) $ python3 -m venv ~/.virtualenvs/env # Activate virtual environment. $ . ~/.virtualenvs/env/bin/activate # Upgrade other tools. (Optional) pip install --upgrade pip pip install --upgrade setuptools # Install setup.py requirements. (env) $ pip install -r build-requirements.txt # Install Apache Beam package in editable mode. (env) $ pip install -e .[gcp,test]
For certain systems, particularly Macs with M1 chips, this installation method may not generate urns correctly. If running
python gen_protos.py
doesn't resolve the issue, consult https://github.com/apache/beam/issues/22742#issuecomment-1218216468 for further guidance.
On Windows
Use the following code:
Code Block language bash > c:\Python37\python.exe -m venv c:\path\to\env > c:\path\to\env\Scripts\activate.bat # Powershell users should run instead: > c:\path\to\env\Scripts\activate.ps1 (env) > pip install -e .[gcp,test]
You can deactivate the
virtualenv
when done.Code Block language bash (env) $ deactivate
...