How do i install awscli in a python virtualenv?



  • First install the python virtualenv software.

    $ pip install --user virtualenv
    Collecting virtualenv
      Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB)
        100%....
        1.8MB 824kB/s 
    Installing collected packages: virtualenv
    Successfully installed virtualenv-15.1.0
    

    Create a virtualenv.

    $ virtualenv ~/my-ve
    New python executable in /home/parallels/my-ve/bin/python
    Installing setuptools, pip, wheel...done.
    

    Activate the virtualenv.

    $ source ~/my-ve/bin/activate
    (my-ve) $ 
    

    Install the awscli commands.

    (my-ve) $ pip install --upgrade awscli
    Collecting awscli
      Using cached awscli-1.14.11-py2.py3-none-any.whl
    ...
    ...
    ...
    

    Verify.

    (my-ve) $ aws --version
    aws-cli/1.14.11 Python/2.7.12 Linux/4.10.0-42-generic botocore/1.8.15
    

Log in to reply
 

© Lightnetics 2024