esp-mdf icon indicating copy to clipboard operation
esp-mdf copied to clipboard

esp-mdf安装错误

Open llltong opened this issue 3 years ago • 3 comments

不清楚为什么使用./install.sh安装后,会弹出这个,请问怎么解决?

root@l-VirtualBox:/usr/esp32/esp-mdf/esp-idf# ./install.sh Detecting the Python interpreter Checking "python" ... Checking "python3" ... Python 3.6.9 "python3" has been detected Installing ESP-IDF tools Selected targets are: esp32, esp32s2, esp32c3, esp32s3 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] (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 /root/.espressif/python_env/idf4.3_py3.6_env Usage: virtualenv.py [OPTIONS] DEST_DIR

virtualenv.py: error: no such option: --seeder Traceback (most recent call last): File "/usr/esp32/esp-mdf/esp-idf/tools/idf_tools.py", line 1822, in main(sys.argv[1:]) File "/usr/esp32/esp-mdf/esp-idf/tools/idf_tools.py", line 1818, in main action_func(args) File "/usr/esp32/esp-mdf/esp-idf/tools/idf_tools.py", line 1519, in action_install_python_env stdout=sys.stdout, stderr=sys.stderr) File "/usrb/python3.6/subprocess.py", line 311, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'virtualenv', '--seeder', 'pip', '/root/.espressif/python_env/idf4.3_py3.6_env']' returned non-zero exit status 2. root@l-VirtualBox:/usr/esp32/esp-mdf/esp-idf#

llltong avatar Dec 31 '21 06:12 llltong

@llltong 你可以使用这个 /usr/bin/python3', '-m', 'virtualenv', '--seeder', 'pip', '/root/.espressif/python_env/idf4.3_py3.6_env' 指令安装一下,看是否可以解决?这个应该是你的这个版本缺少了组件导致的。

Jiangyafeng avatar Jan 10 '22 13:01 Jiangyafeng

@llltong 你可以使用这个 /usr/bin/python3', '-m', 'virtualenv', '--seeder', 'pip', '/root/.espressif/python_env/idf4.3_py3.6_env' 指令安装一下,看是否可以解决?这个应该是你的这个版本缺少了组件导致的。 你这个命令我看不懂,不知道怎么输入,请问下具体步骤,谢谢了

llltong avatar Jan 17 '22 10:01 llltong

@llltong sudo apt-get install python-virtualenv,安装一下,看是否可以解决你的问题?最好是你的linux系统默认python要是v3.x 版本,你直接使用python --version查询一下,如果不是,请将其切换为python3版本。

Jiangyafeng avatar Feb 12 '22 10:02 Jiangyafeng