From 9223ea90ce5315a9a29e90d2b321617ca5373f6d Mon Sep 17 00:00:00 2001 From: Kushal Das Date: Fri, 4 Aug 2023 07:57:19 +0200 Subject: [PATCH] Uses python -m pip style for installation Updates the readme to use `python -m pip install` style for installing python packages. This is what we suggest at upstream to reduce the confusion of which Python interpreter is being used. See more: https://snarky.ca/why-you-should-use-python-m-pip/ --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3a7c4aca..e3687f1e 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,11 @@ AudioCraft requires Python 3.9, PyTorch 2.0.0. To install AudioCraft, you can ru ```shell # Best to make sure you have torch installed first, in particular before installing xformers. # Don't run this if you already have PyTorch installed. -pip install 'torch>=2.0' +python -m pip install 'torch>=2.0' # Then proceed to one of the following -pip install -U audiocraft # stable release -pip install -U git+https://git@github.com/facebookresearch/audiocraft#egg=audiocraft # bleeding edge -pip install -e . # or if you cloned the repo locally (mandatory if you want to train). +python -m pip install -U audiocraft # stable release +python -m pip install -U git+https://git@github.com/facebookresearch/audiocraft#egg=audiocraft # bleeding edge +python -m pip install -e . # or if you cloned the repo locally (mandatory if you want to train). ``` We also recommend having `ffmpeg` installed, either through your system or Anaconda: