Simplifying Python commands

Prerequisite states use of Python3 (python users should be familiar enough to know how to change to Python 2.x if they really want to)
This commit is contained in:
Ori Zohar 2020-04-24 09:00:21 -07:00 committed by GitHub
parent cdf2f54e62
commit ad7bccc4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 8 deletions

View File

@ -254,21 +254,16 @@ while True:
Now we can open a **new** command line terminal and go to the `1.hello-world` directory.
1. Depending on the Python version you are using, install dependencies
1. Install dependencies:
For Python 2.x
```sh
pip install requests
```
Or for Python 3.x
```sh
pip3 install requests
```
2. Start the Python App with Dapr:
```bash
dapr run --app-id pythonapp python app.py` or `dapr run --app-id pythonapp python3 app.py`
dapr run --app-id pythonapp python3 app.py
```
3. If all went well, the **other** terminal, running the Node App, should log entries like these: