乐鑫技术交流
直播中

云达贞

7年用户 892经验值
私信 关注
[问答]

在Eclipse安装ESP-IDF工具,单击Install Tools后报错的原因?

  在  Eclipse 安装 ESP-IDF 工具
单击Install Tools 后  出现如下问题  

执行 F:PythonPython38python.exe F:ESP32_IDFesp-idf-4.2.2toolsidf_tools.py install-python-env
fatal: not a git repository (or any of the parent directories): .git
Processing f:esp32_idfesp-idf-4.2.2toolskconfig_newesp-windows-curses
  DEPRECAtiON: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Requirement already satisfied: setuptools>=21 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 4)) (57.1.0)
Requirement already satisfied: click>=5.0 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 8)) (8.0.1)
Requirement already satisfied: pyserial>=3.0 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 9)) (3.5)
Requirement already satisfied: future>=0.15.2 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 10)) (0.18.2)
Requirement already satisfied: cryptography>=2.1.4 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 11)) (3.4.7)
Requirement already satisfied: pyparsing<2.4.0,>=2.0.3 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 12)) (2.3.1)
Requirement already satisfied: pyelftools>=0.22 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 13)) (0.27)
Requirement already satisfied: gdbgui==0.13.2.0 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (0.13.2.0)
Requirement already satisfied: pygdbmi<=0.9.0.2 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 18)) (0.9.0.2)
Requirement already satisfied: python-socketio<5 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 21)) (4.6.1)
Requirement already satisfied: reedsolo<=1.5.4,>=1.5.3 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 24)) (1.5.4)
Requirement already satisfied: bitstring>=3.1.6 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 25)) (3.1.9)
Requirement already satisfied: ecdsa>=0.16.0 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from -r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 26)) (0.17.0)
Requirement already satisfied: windows-curses in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from esp-windows-curses==0.1->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 32)) (2.2.0)
Requirement already satisfied: Flask-SocketIO<3.0,>=2.9 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (2.9.6)
Requirement already satisfied: Pygments<3.0,>=2.2.0 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (2.9.0)
Requirement already satisfied: Flask-Compress<2.0,>=1.4.0 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (1.10.1)
Requirement already satisfied: gevent<2.0,>=1.2.2 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (1.5.0)
Requirement already satisfied: Flask<1.0,>=0.12.2 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (0.12.5)
Requirement already satisfied: colorama in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from click>=5.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 8)) (0.4.4)
Requirement already satisfied: cffi>=1.12 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from cryptography>=2.1.4->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 11)) (1.14.6)
Requirement already satisfied: six>=1.9.0 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from python-socketio<5->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 21)) (1.16.0)
Requirement already satisfied: python-engineio<4,>=3.13.0 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from python-socketio<5->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 21)) (3.14.2)
Requirement already satisfied: pycparser in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from cffi>=1.12->cryptography>=2.1.4->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 11)) (2.20)
Requirement already satisfied: Werkzeug<1.0,>=0.7 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from Flask<1.0,>=0.12.2->gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (0.16.1)
Requirement already satisfied: itsdangerous>=0.21 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from Flask<1.0,>=0.12.2->gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (2.0.1)
Requirement already satisfied: Jinja2>=2.4 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from Flask<1.0,>=0.12.2->gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (3.0.1)
Requirement already satisfied: brotli in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from Flask-Compress<2.0,>=1.4.0->gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (1.0.9)
Requirement already satisfied: greenlet>=0.4.14 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from gevent<2.0,>=1.2.2->gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (1.1.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:usersxxxx.espressifpython_envidf4.2_py3.8_envlibsite-packages (from Jinja2>=2.4->Flask<1.0,>=0.12.2->gdbgui==0.13.2.0->-r F:ESP32_IDFesp-idf-4.2.2requirements.txt (line 15)) (2.0.1)
Building wheels for collected packages: esp-windows-curses
  Building wheel for esp-windows-curses (setup.py): started
  Building wheel for esp-windows-curses (setup.py): finished with status 'done'
  Created wheel for esp-windows-curses: filename=esp_windows_curses-0.1-py3-none-any.whl size=1170 sha256=d829542743562a2ff4072c882163c038c20e7840b0fbc5087178733154adf9a4
  Stored in directory: c:usersxxxxappdatalocalpipcachewheels71�7�6e003d7cb8a74a5968d2c69845d0e954127a4d6284da34e8601
Successfully built esp-windows-curses
Installing collected packages: esp-windows-curses
  Attempting uninstall: esp-windows-curses
    Found existing installation: esp-windows-curses 0.1
    Uninstalling esp-windows-curses-0.1:
      Successfully uninstalled esp-windows-curses-0.1
Successfully installed esp-windows-curses-0.1
WARNING: Git describe was unsuccessul: Command '['git', 'describe']' returned non-zero exit status 128.
Installing Python packages from F:ESP32_IDFesp-idf-4.2.2requirements.txt

执行 F:PythonPython38python.exe F:ESP32_IDFesp-idf-4.2.2toolsidf_tools.py export --format=key-value
fatal: not a git repository (or any of the parent directories): .git
WARNING: Git describe was unsuccessul: Command '['git', 'describe']' returned non-zero exit status 128.
OPENOCD_SCRIPTS=C:Usersxxxxx.espressiftoolsopenocd-esp32v0.10.0-esp32-20200709openocd-esp32shareopenocdscripts
IDF_CCACHE_ENABLE=1
IDF_PYTHON_ENV_PATH=C:Usersxxxxx.espressifpython_envidf4.2_py3.8_env
PATH=C:Usersxxxxx.espressiftoolsxtensa-esp32-elfesp-2020r3-8.4.0xtensa-esp32-elfbin;C:Usersxxxxx.espressiftoolsxtensa-esp32s2-elfesp-2020r3-8.4.0xtensa-esp32s2-elfbin;C:Usersxxxx.espressiftoolsesp32ulp-elf2.28.51-esp-20191205esp32ulp-elf-binutilsbin;C:Usersxxxx.espressiftoolsesp32s2ulp-elf2.28.51-esp-20191205esp32s2ulp-elf-binutilsbin;C:Usersxxxx.espressiftoolscmake3.16.4bin;C:Usersxxxx.espressiftoolsopenocd-esp32v0.10.0-esp32-20200709openocd-esp32bin;C:Usersxxxx.espressiftoolsninja1.10.0;C:Usersxxxx.espressiftoolsidf-exe1.0.1;C:Usersxxxx.espressiftoolsccache3.7;C:Usersxxxx.espressiftoolsdfu-util�.9dfu-util-0.9-win64;C:Usersxxxx.espressifpython_envidf4.2_py3.8_envScripts;F:ESP32_IDFesp-idf-4.2.2tools;%PATH%
配置的 CDT 构建环境变量。请检查 "偏好设置" > "C/C++" > "构建" > "环境"
配置的 CMake 工具链。请检查 "偏好设置" > "C/C++" > "CMake"
                                                                                                                                                         

回帖(1)

久醉不醒

2024-6-21 17:17:51
在Eclipse安装ESP-IDF工具时,单击Install Tools后报错的原因可能有以下几点:

1. **Python版本问题**:ESP-IDF需要Python 3.5及以上版本。请确保你安装了正确版本的Python,并将其添加到系统环境变量中。

2. **Git仓库问题**:错误信息中提到 "fatal: not a git repository (or any of the parent directories): .git",这表明当前目录不是一个Git仓库。请确保你已经克隆了ESP-IDF的Git仓库到本地。

3. **ESP-IDF版本问题**:请确保你下载或克隆了正确的ESP-IDF版本。错误信息中提到了 "esp-idf-4.2.2",如果你使用的是不同的版本,请确保路径和版本号正确。

4. **pip版本问题**:错误信息中提到了 "DEPRECATION: A future pip version will change local packages to be built in-place without first",这表明你的pip版本可能较低。尝试更新pip到最新版本,使用命令 `python -m pip install --upgrade pip`。

5. **权限问题**:在某些情况下,权限问题可能导致安装失败。确保你有足够的权限来执行安装脚本。

6. **路径问题**:确保你的Python和ESP-IDF路径设置正确。错误信息中的路径看起来有些混乱,例如 "F:PythonPython38python.exe" 和 "F:ESP32_IDFesp-idf-4.2.2",这可能是由于路径中包含空格或特殊字符导致的。

解决步骤:

- 确认Python版本和环境变量设置。
- 确保你已经克隆了ESP-IDF的Git仓库。
- 检查ESP-IDF版本和路径设置。
- 更新pip到最新版本。
- 检查权限设置。
- 确保路径设置正确,避免使用包含空格或特殊字符的路径。


举报

更多回帖

发帖
×
20
完善资料,
赚取积分