idf.py build 报错

qianxuping
Posts: 4
Joined: Fri Apr 23, 2021 1:28 am

idf.py build 报错

Postby qianxuping » Sat Apr 24, 2021 2:44 pm

idf.py build 报错,照着做都出现这样的问题,然后又这样/usr/bin/python -m pip install --user -r /home/pjw/ESP32/esp-idf/requirements.txt
还是不行,死心了在win10上用vscode弄了一天,一编译又The following Python requirements are not satisfied,安装官方的文档命令安装下去会按照python2.7,然后删除2.7,安装3.7,然后
ln -sv /usr/bin/python3.7 /usr/bin/python

python --version
Python 3.7.5

来来去去几个月,就没有一次成功。


The following Python requirements are not satisfied:
click>=7.0
pyserial>=3.3
future>=0.15.2
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
gdbgui==0.13.2.0
pygdbmi<=0.9.0.2
kconfiglib==13.7.1
reedsolo>=1.5.3,<=1.5.4
bitstring>=3.1.6
ecdsa>=0.16.0
construct==2.10.54
Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide
Diagnostic information:
IDF_PYTHON_ENV_PATH: (not set)
Python interpreter used: /usr/bin/python
Warning: python interpreter not running from IDF_PYTHON_ENV_PATH
PATH: /home/ll/git/esp-idf/tools:/home/ll/.local/bin:/usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

fatal: 不是一个 git 仓库:'/home/ll/git/esp-idf/.git'
WARNING: Git version unavailable, reading from source
ESP-IDF v4.4.0
ll@ll:~/git/esp-idf/examples/get-started/blink$ /usr/bin/python -m pip install --user -r /home/pjw/ESP32/esp-idf/requirements.txt
Could not open requirements file: [Errno 2] 没有那个文件或目录: '/home/pjw/ESP32/esp-idf/requirements.txt'
ll@ll:~/git/esp-idf/examples/get-started/blink$ /usr/bin/python -m pip install --user -r /home/ll/git/esp-idf/requirements.txt
Ignoring python-socketio: markers 'python_version <= "2.7"' don't match your environment
Ignoring None: markers 'sys_platform == "win32"' don't match your environment
Collecting setuptools>=21 (from -r /home/ll/git/esp-idf/requirements.txt (line 4))
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Collecting click>=7.0 (from -r /home/ll/git/esp-idf/requirements.txt (line 8))
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Collecting pyserial>=3.3 (from -r /home/ll/git/esp-idf/requirements.txt (line 9))
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Collecting future>=0.15.2 (from -r /home/ll/git/esp-idf/requirements.txt (line 10))
Using cached https://files.pythonhosted.org/packages ... 8.2.tar.gz
Collecting cryptography>=2.1.4 (from -r /home/ll/git/esp-idf/requirements.txt (line 11))
Using cached https://files.pythonhosted.org/packages ... 4.7.tar.gz
Complete output from command python setup.py egg_info:

=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:

Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-rxkvsp30/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rxkvsp30/cryptography/
ll@ll:~/git/esp-idf/examples/get-started/blink$
Attachments
1.PNG
1.PNG (45.8 KiB) Viewed 2888 times
2.PNG
2.PNG (239.86 KiB) Viewed 2888 times

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: idf.py build 报错

Postby ESP_Gargamel » Sat Apr 24, 2021 3:11 pm

请不要同一个问题重复发帖,其他两个同一问题将删除,以此贴为主。

请使用 ./install.sh 安装环境,按照你之前的贴图:
2.PNG
2.PNG (135.31 KiB) Viewed 2877 times
错误原因为:No module named pip,请参看 https://www.jianshu.com/p/8cba020b284b 自查。

你是否有正确系统所需的包,参看:https://docs.espressif.com/projects/esp ... requisites
你的操作系统为?哪个版本?如果为 ubuntu 16.04,请参看:https://docs.espressif.com/projects/esp ... untu-16-04

Who is online

Users browsing this forum: No registered users and 94 guests