'unrecognized arguments: --no-site-packages' during esp-idf tools installation (IEP-181)
See original GitHub issueHi, I freshly downloaded and installed esp-idf 4.0 on Win10 according to the documentation I could successfully flash and monitor the hello world example from command line. Then I wanted to do the same in eclipse, so I proceeded by the readme.md of this project. At ‘Installing ESP-IDF Tools’ the console shows this error:
Executing C:\Program Files (x86)\Python38-32\python.exe C:\DEV\esp-idf40\dl\tools\idf_tools.py install-python-env
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--clear-app-data] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list]
[--clear] [--system-site-packages] [--copies] [--no-download | --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
Creating a new Python environment in C:\DEV\esp-idf40\python_env\idf4.0_py3.8_env
Traceback (most recent call last):
File "C:\DEV\esp-idf40\dl\tools\idf_tools.py", line 1372, in <module>
main(sys.argv[1:])
File "C:\DEV\esp-idf40\dl\tools\idf_tools.py", line 1368, in main
action_func(args)
File "C:\DEV\esp-idf40\dl\tools\idf_tools.py", line 1182, in action_install_python_env
subprocess.check_call([sys.executable, '-m', 'virtualenv', '--no-site-packages', idf_python_env_path],
File "C:\Program Files (x86)\Python38-32\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Program Files (x86)\\Python38-32\\python.exe', '-m', 'virtualenv', '--no-site-packages', 'C:\\DEV\\esp-idf40\\python_env\\idf4.0_py3.8_env']' returned non-zero exit status 2.
To Reproduce
- Delete the ‘python-env’ folder from your ‘esp-idf’ folder, and make sure you have Python38-32 installed
- Install ESP-IDF Tools as described in the readme.md
- See the console
Expected behavior successfull installation, and an item showing up in eclipse ‘Help/Espressive IDF tools manager/List installed tools’
Screenshots
Environment Information: eclipseConfig.txt
ESP-IDF Tools Information: Help > Espressif Tools Manager > List Installed Tools —> this list is empty 😦
Any help is welcome - Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Installing esp-idf 4.0 RC Tools - ESP32 Forum
Installing ESP-IDF tools Installing tools : xtensa-esp32-elf, ... error: unrecognized arguments: --no-site-packages Traceback (most recent ...
Read more >esp-idf installation failed (Please help!) : r/esp32 - Reddit
But while installing the esp-idf-tools-setup-2.2.exe, ... [-h] dest virtualenv: error: unrecognized arguments: --no-site-packages Creating a ...
Read more >Installing virtualenv: unrecognized arguments: --no-site ...
When the virtualenv version is greater than 20, it is the default no site packages parameter.
Read more >no-site-packages 已弃用, 无法识别的参数 - 免费编程教程
须藤'unrecognized arguments: --no-site-packages' during esp-idf tools 'unrecognized arguments: --no-site-packages' 在esp-idf 工具安装期间install-python-env ...
Read more >Standard Setup of Toolchain for Windows - ESP32
ESP-IDF requires some prerequisite tools to be installed so you can build firmware for supported chips. The prerequisite tools include Python, Git, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @ahinsen, this is an issue in v4.0 release, which has a fix on release/v4.0 branch (see https://github.com/espressif/esp-idf/issues/5204#issuecomment-620537960). Please try one of the following:
git checkout release/v4.0
,git pull origin release/v4.0
.Closing this issue for now, please report us back if you see the same issue with our recent release.