idf.py build 报错
Posted: 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$
还是不行,死心了在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$