Skip to content

Commit

Permalink
Updates pip command to use python executable (bloomberg#34)
Browse files Browse the repository at this point in the history
Use `python -m pip install ...` instead of `pip install ...` to promote good practices when using `pip`.
  • Loading branch information
kushaldas committed Apr 21, 2022
1 parent c0dc534 commit 605d453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ packaging tools. We recommend installing the latest stable release from
[PyPI](https://pypi.org/project/memray/) with pip:

```shell
pip install memray
python3 -m pip install memray
```

Notice that Memray contains a C extension so releases are distributed as binary
Expand All @@ -66,8 +66,8 @@ git clone git@github.com:bloomberg/memray.git memray
cd memray
python3 -m venv ../memray-env/ # just an example, put this wherever you want
source ../memray-env/bin/activate
pip install --upgrade pip
pip install -e . -r requirements-test.txt -r requirements-extra.txt
python3 -m pip install --upgrade pip
python3 -m pip install -e . -r requirements-test.txt -r requirements-extra.txt
```

This will install Memray in the virtual environment in development mode (the `-e` of the last `pip install` command).
Expand Down

0 comments on commit 605d453

Please sign in to comment.