Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Install the EB CLI in a virtual environment

Focus mode
Install the EB CLI in a virtual environment - AWS Elastic Beanstalk

You can avoid version requirement conflicts with other pip packages by installing the EB CLI in a virtual environment.

To install the EB CLI in a virtual environment
  1. Install virtualenv with pip.

    $ pip install --user virtualenv
  2. Create a virtual environment.

    $ virtualenv ~/eb-ve

    To use a Python executable other than the default, use the -p option.

    $ virtualenv -p /usr/bin/python3.7 ~/eb-ve
  3. Activate the virtual environment.

    Linux, Unix, or macOS

    $ source ~/eb-ve/bin/activate

    Windows

    $ %USERPROFILE%\eb-ve\Scripts\activate
  4. Install the EB CLI.

    (eb-ve)~$ pip install awsebcli --upgrade
  5. Verify that the EB CLI is installed correctly.

    $ eb --version EB CLI 3.14.8 (Python 3.7)

You can use the deactivate command to exit the virtual environment. Whenever you start a new session, run the activation command again.

To upgrade to the latest version, run the installation command again.

(eb-ve)~$ pip install awsebcli --upgrade
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.