安装esp-idf环境时报错

snow999
Posts: 1
Joined: Sat Dec 12, 2020 2:05 pm

安装esp-idf环境时报错

Postby snow999 » Sat Dec 12, 2020 2:13 pm

在esp-idf目录执行 ./install.sh 时出现以下报错:
Collecting MarkupSafe>=0.23
Using cached MarkupSafe-1.1.1-cp27-cp27m-macosx_10_6_intel.whl (17 kB)
ERROR: Could not find a version that satisfies the requirement bidict>=0.21.0 (from python-socketio>=1.6.1->Flask-SocketIO<3.0,>=2.9->gdbgui==0.13.2.0->-r /Users/apple/esp32_official/src/esp-idf/requirements.txt (line 14)) (from versions: 0.1.5, 0.2.1, 0.3.0, 0.3.1, 0.9.0rc0, 0.9.0.post1, 0.10.0, 0.10.0.post1, 0.11.0, 0.12.0.post1, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.14.2, 0.15.0.dev0, 0.15.0.dev1, 0.15.0rc1, 0.15.0, 0.16.0, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.17.4, 0.17.5, 0.18.0, 0.18.1, 0.18.2, 0.18.3, 0.18.4)
ERROR: No matching distribution found for bidict>=0.21.0 (from python-socketio>=1.6.1->Flask-SocketIO<3.0,>=2.9->gdbgui==0.13.2.0->-r /Users/apple/esp32_official/src/esp-idf/requirements.txt (line 14))
Traceback (most recent call last):
File "/Users/apple/esp32_official/src/esp-idf/tools/idf_tools.py", line 1589, in <module>
main(sys.argv[1:])
File "/Users/apple/esp32_official/src/esp-idf/tools/idf_tools.py", line 1585, in main
action_func(args)
File "/Users/apple/esp32_official/src/esp-idf/tools/idf_tools.py", line 1312, in action_install_python_env
subprocess.check_call(run_args, 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 '['/Users/apple/.espressif/python_env/idf4.3_py2.7_env/bin/python', '-m', 'pip', 'install', '--no-warn-script-location', '-r', '/Users/apple/esp32_official/src/esp-idf/requirements.txt']' returned non-zero exit status 1
appledeMBP:esp-idf Snow$ /Users/apple/.espressif/python_env/idf4.3_py2.7_env/bin/python
Attachments
QQ20201212-221116@2x.png
QQ20201212-221116@2x.png (571.95 KiB) Viewed 5046 times
QQ20201212-220754@2x.png
QQ20201212-220754@2x.png (524.37 KiB) Viewed 5046 times

gemini910508
Posts: 3
Joined: Fri Dec 25, 2020 3:59 pm

Re: 安装esp-idf环境时报错

Postby gemini910508 » Sat Dec 26, 2020 6:46 am

我也是遇到这样的问题,就一个开发环境为什么整得这么难

ESP_wangfang
Posts: 12
Joined: Fri Dec 25, 2020 11:06 am

Re: 安装esp-idf环境时报错

Postby ESP_wangfang » Mon Dec 28, 2020 3:19 am

Hi @snow999,
请点击这个链接 https://docs.espressif.com/projects/esp ... as-default
查看如何将 python3 设置为默认 python。

Who is online

Users browsing this forum: No registered users and 107 guests