Closed
Description
Environment
Only the relevant items:
- IDF version: v4.4-dev-4-g73db14240
- Build System: cmake 3.19.4
- Operating System: macOS Catalina
- Using an IDE?: Not yet
Problem Description
During step 3 of the ESP-IDF installation on macOS,
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html#id3, the result of ./install.sh
is
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, esp32s2ulp-elf, openocd-esp32
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected]_64eb9ff-8.4.0 (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Installing Python environment and packages
Creating a new Python environment in /Users/jschulen/.espressif/python_env/idf4.4_py2.7_env
Installing virtualenv
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip
Traceback (most recent call last):
File "/Users/jschulen/Code/iot/esp/esp-idf/tools/idf_tools.py", line 1655, in <module>
main(sys.argv[1:])
File "/Users/jschulen/Code/iot/esp/esp-idf/tools/idf_tools.py", line 1651, in main
action_func(args)
File "/Users/jschulen/Code/iot/esp/esp-idf/tools/idf_tools.py", line 1357, in action_install_python_env
stdout=sys.stdout, stderr=sys.stderr)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python', '-m', 'pip', 'install', '--user', 'virtualenv']' returned non-zero exit status 1
Installation of step 1 and 2 went fine. The problem with step 3 seems to be No module named pip
but pip
/ pip3
is available on macOS Catalina:
$ python --version
Python 3.9.1
$ pip --version
pip 21.0.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
$ which -a python
python: aliased to python3
/usr/bin/python
$ which -a python3
/usr/local/bin/python3
/usr/bin/python3
The problem just before that step is that apparently an environment for Python 2.7 is created or expected. Python 2.7 is still installed on my laptop but not active, Python 3.9 is.
Expected Behavior
An installation that succeeds.
Actual Behavior
See above.
Steps to reproduce
Do the ESP-IDF installation from scratch.
Metadata
Metadata
Assignees
Labels
No labels