Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changed terminal script to activate the Python virtual environment.

...

  1. Use the following code:

    Code Block
    languagebash
    # 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 venvchmod +x ~/.virtualenvs/env
    
    # Activate virtual environment./bin/activate  
    $ . ~/.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]
    
    


...