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

Unable to use esptool.py chances are I havent installed correctly or set the $PATH as I havent understood 100% (ESPTOOL-960) #1033

Closed
1 task done
ylnest2018 opened this issue Nov 8, 2024 · 1 comment

Comments

@ylnest2018
Copy link

ylnest2018 commented Nov 8, 2024

Operating System

macOS 14.2.1

Esptool Version

4.8.1

Python Version

Python 2.7.18 & 3.9

Chip Description

ESP32-DEV

Device Description

I dont think I have installed Python correcly I have used the install commands listed on this repo but for some reason when I run python -V it shows 2.7.18, when I have 3.9 installed to my /Users//Library/Python/3.9/

Hardware Configuration

No response

How is Esptool Run

macOS Terminal

Full Esptool Command Line that Was Run

esptool.py -p COM3 -b 460800 read_flash 0 ALL flash_contents.bin

Esptool Output

zsh: command not found: esptool.py

WARNING: The scripts pip, pip3 and pip3.9 are installed in '/Users/leo/Library/Python/3.9/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.


DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

WARNING: The scripts activate-global-python-argcomplete, python-argcomplete-check-easy-install-script and register-python-argcomplete are installed in '/Users/leo/Library/Python/3.9/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

More Information

If I run your command to upgrade python3 and pip I get:

WARNING: The scripts pip, pip3 and pip3.9 are installed in '/Users/leo/Library/Python/3.9/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

or

WARNING: The scripts activate-global-python-argcomplete, python-argcomplete-check-easy-install-script and register-python-argcomplete are installed in '/Users/leo/Library/Python/3.9/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

If I try check esptool.py version I get this:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

Other Steps to Reproduce

No response

I Have Read the Troubleshooting Guide

  • I confirm I have read the troubleshooting guide.
@github-actions github-actions bot changed the title Unable to use esptool.py chances are I havent installed correctly or set the $PATH as I havent understood 100% Unable to use esptool.py chances are I havent installed correctly or set the $PATH as I havent understood 100% (ESPTOOL-960) Nov 8, 2024
@dobairoland
Copy link
Collaborator

Hi @ylnest2018,

you can use your desired Python directly by specifying the path to it, e.g. /Users/leo/Library/Python/3.9/bin/python -m pip install esptool.

If you want to make /Users/leo/Library/Python/3.9 your default python, so python, pip and similar would work without specifying the whole path then please search the Internet for "how to make a custom Python to be default on MacOS" or similar terms.

I'm closing this because it is not an esptool or its installation issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants