Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esptool.py: command not found (ESPTOOL-915) #343

Closed
jain-Anuj opened this issue Aug 5, 2018 · 5 comments
Closed

esptool.py: command not found (ESPTOOL-915) #343

jain-Anuj opened this issue Aug 5, 2018 · 5 comments

Comments

@jain-Anuj
Copy link

I am trying to flash a file to esp8266 using esptool but i am again agaiin facing the same error "esptool.py: command not found". I have both python 3.6.4 and python 2.7 installed in my ubuntu 18.04.1 LTS and i am using pip install esptool to install it.
screenshot from 2018-08-05 23-50-48

@jain-Anuj
Copy link
Author

screenshot from 2018-08-05 23-53-01

@projectgus
Copy link
Contributor

Hi @gitAnuj1234 ,

Thanks for reporting this issue. I think this might be a PATH issue with your install.

If you run "pip" as a normal user on Linux (ie pip install esptool rather than sudo pip install esptool then the esptool.py executable is installed to the directory ~/local/.bin directory (ie the hidden .local/bin directory inside your home directory).

In a default Ubuntu install, this directory is normally part of your user's PATH (there's a line in .profile which adds it). Maybe the .profile file or the PATH has been modified on your install.

Some workarounds, either of which should which should work:

  • Run esptool.py as ~/.local/bin/esptool.py -p /dev/ttyUSB0 ...
  • Edit the .profile file in your home directory and look for a line like this:
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"

... and add it if it's not already there (note you have to log out of your session and back in before changes to .profile take effect).

@jain-Anuj
Copy link
Author

thanks @projectgus for the help I used sudo pip install esptool instead of pip install esptool as advised by you and it worked ....thanks for the help

@projectgus
Copy link
Contributor

Great to hear @gitAnuj1234, thanks for the update.

@CodeThrustersDev
Copy link

Im also facing the same issue but i use windows 10, im just a begginer so i dont really know what im doing

@github-actions github-actions bot changed the title esptool.py: command not found esptool.py: command not found (ESPTOOL-915) Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants