# Accelerate: command not found

**URL:** <https://discuss.huggingface.co/t/accelerate-command-not-found/20163>\
**Category:** 🤗Accelerate\
**Created:** [July 8, 2022, 8:22pm UTC](https://discuss.huggingface.co/t/accelerate-command-not-found/20163 "2022-07-08T20:22:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohamed123321](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@Mohamed123321](https://discuss.huggingface.co/u/Mohamed123321)\
**Post date:** [July 8, 2022, 8:22pm UTC](https://discuss.huggingface.co/t/accelerate-command-not-found/20163/1 "2022-07-08T20:22:24Z")

</div>

Hello,  
So I read about the accelerate library and it sounds way easier to use than the pytorch DPP.  
So I installed it using pip install accelerate on my virtual machine (linux docker). After that I tried to type the command accelerate configurate in the terminal and it tells me that : bash: accelerate: command not found. any solutions please ?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![muellerzr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/muellerzr/32/21583_2.png) [@muellerzr](https://discuss.huggingface.co/u/muellerzr)\
**Post date:** [July 8, 2022, 10:51pm UTC](https://discuss.huggingface.co/t/accelerate-command-not-found/20163/2 "2022-07-08T22:51:35Z")

</div>

> [@Mohamed123321](#):
>
> any solutions please

What may be happening is the wrong python could be getting pointed to: [python - pip not installing entry\_points as executables - Stack Overflow](https://stackoverflow.com/questions/42182707/pip-not-installing-entry-points-as-executables)

You should check `which python` and `pip show accelerate` to see where everything is being installed.

Ideally try using something like `venv` or `conda` to install it there, I haven’t personally had issues with the entrypoint commands having issues that way

---

<div class="post-metadata">

**Author:** ![JKMO](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@JKMO](https://discuss.huggingface.co/u/JKMO)\
**Post date:** [December 8, 2022, 1:52pm UTC](https://discuss.huggingface.co/t/accelerate-command-not-found/20163/3 "2022-12-08T13:52:02Z")

</div>

But isn’t google colab run in your browser totally independend from the programs you have downloaded on your pc? Like python? Furthermore I wouldn’t know how to check if the wrong python is being pointed at, since without the pro version one doesnt have access to the terminal

---

<div class="post-metadata">

**Author:** ![oxweis](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/oxweis/32/13383_2.png) [@oxweis](https://discuss.huggingface.co/u/oxweis)\
**Post date:** [January 6, 2023, 7:20pm UTC](https://discuss.huggingface.co/t/accelerate-command-not-found/20163/4 "2023-01-06T19:20:51Z")

</div>

@JKMO even without the pro version your able to run commands and install stuff by implementing your code into a cell and by running it , me I’m using python and it was installed on the computer that google gives me remotely , and i install and the dependencies on it without acces to the terminal or pro membership

---

<div class="post-metadata">

**Author:** ![one-thing](https://avatars.discourse-cdn.com/v4/letter/o/4da419/32.png) [@one-thing](https://discuss.huggingface.co/u/one-thing)\
**Post date:** [October 10, 2023, 7:14am UTC](https://discuss.huggingface.co/t/accelerate-command-not-found/20163/5 "2023-10-10T07:14:05Z")

</div>

I got the same issue, in Jupiter notebook we need to provide the path variable,  
this solution works for me → **/home/user/.local/bin/accelerate launch** … instead of direct **accelerate launch** …

---

<div class="post-metadata">

**Author:** ![Ppiyush28](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@Ppiyush28](https://discuss.huggingface.co/u/Ppiyush28)\
**Post date:** [July 14, 2024, 11:46am UTC](https://discuss.huggingface.co/t/accelerate-command-not-found/20163/6 "2024-07-14T11:46:01Z")

</div>

I am trying to run transformer,however getting below error

ImportError: Using the `Trainer` with `PyTorch` requires `accelerate>=0.21.0`: Please run `pip install transformers[torch]` or `pip install accelerate -U`

could you please help me which version need to be used.

Transformer - 4.42.4  
accelerate - 0.29.3

---

<div class="post-metadata">

**Author:** ![dgarza29](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@dgarza29](https://discuss.huggingface.co/u/dgarza29)\
**Post date:** [July 15, 2024, 12:29am UTC](https://discuss.huggingface.co/t/accelerate-command-not-found/20163/7 "2024-07-15T00:29:00Z")

</div>

ImportError: Using the `Trainer` with `PyTorch` requires `accelerate>=0.21.0`: Please run `pip install transformers[torch]` or `pip install accelerate -U`  
I am also having this issue.  
Running pip list shows:  
Package Version

* * *

accelerate 0.32.1  
certifi 2024.7.4  
charset-normalizer 3.3.2  
colorama 0.4.6  
contourpy 1.2.1  
cycler 0.12.1  
et-xmlfile 1.1.0  
filelock 3.15.4  
fonttools 4.53.0  
fsspec 2024.6.1  
huggingface-hub 0.23.4  
idna 3.7  
intel-openmp 2021.4.0  
Jinja2 3.1.4  
kiwisolver 1.4.5  
MarkupSafe 2.1.5  
matplotlib 3.9.0  
mkl 2021.4.0  
mpmath 1.3.0  
networkx 3.3  
numpy 1.26.4  
openpyxl 3.1.3  
packaging 24.1  
pandas 2.2.2  
pillow 10.3.0  
pip 24.1.2  
psutil 6.0.0  
pyparsing 3.1.2  
python-dateutil 2.9.0.post0  
pytz 2024.1  
PyYAML 6.0.1  
regex 2024.5.15  
requests 2.32.3  
safetensors 0.4.3  
seaborn 0.13.2  
six 1.16.0  
sympy 1.13.0  
tbb 2021.13.0  
tokenizers 0.19.1  
torch 2.3.1  
tqdm 4.66.4  
transformers 4.42.4  
typing\_extensions 4.12.2  
tzdata 2024.1  
urllib3 2.2.2  
What should I do? I don’t really feel that I should have to set up a new virtual environment for this error? Could there be something else going on?
