IDF 3.3.1 UBUNTU下安装报错

taojunwei
Posts: 2
Joined: Thu Mar 26, 2020 12:05 pm

IDF 3.3.1 UBUNTU下安装报错

Postby taojunwei » Thu Mar 26, 2020 1:55 pm

操作系统为Ubuntu 18.04.4 LTS,64位
按照安装指导成功安装了准备工作,
sudo apt-get install git wget flex bison gperf python python-pip python-setuptools cmake ninja-build ccache libffi-dev libssl-dev
下载了IDFV3.3.1版本。
运行install.sh后出现如下提示信息:
Installing Python environment and packages
Creating a new Python environment in /home/tao/.espressif/python_env/idf3.3_py3.6_env
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--clear-app-data] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-posix,venv}] [--seeder {app-data,pip}] [--no-seed]
[--activators comma_sep_list] [--clear] [--system-site-packages] [--symlinks | --copies] [--download | --no-download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip]
[--no-setuptools] [--no-wheel] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: unrecognized arguments: --no-site-packages
Traceback (most recent call last):
File "/home/tao/esp/esp-idf-v3.3.1/tools/idf_tools.py", line 1349, in <module>
main(sys.argv[1:])
File "/home/tao/esp/esp-idf-v3.3.1/tools/idf_tools.py", line 1345, in main
action_func(args)
File "/home/tao/esp/esp-idf-v3.3.1/tools/idf_tools.py", line 1156, in action_install_python_env
stdout=sys.stdout, stderr=sys.stderr)
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-m', 'virtualenv', '--no-site-packages', '/home/tao/.espressif/python_env/idf3.3_py3.6_env']' returned non-zero exit status 2.

请问谁知道该如何处理该问题。看起来像是建立虚拟环境失败,virtualenv 命令不是别 --no-site-packages 这个参数。该如何解决呢?

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

Re: IDF 3.3.1 UBUNTU下安装报错

Postby ESP_Gargamel » Fri Mar 27, 2020 2:19 am

你参看一下:viewtopic.php?f=25&t=14869#p57348
同理解决该问题。

Who is online

Users browsing this forum: No registered users and 17 guests