完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在主机和虚拟机安装espidf时候到最后那个python虚拟环境就出错了Code: Select all
Successfully installed distlib-0.3.7 filelock-3.12.2 platformdirs-3.9.1 virtualenv-20.24.2Installing virtualenvCreating a new Python environment in c:Usersxiaocipython_envidf4.3_py3.11_env WARNING: The script virtualenv.exe is installed in 'C:UsersxiaociAppDataRoamingPythonPython311Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.[notice] A new release of pip available: 22.3.1 -> 23.2.1[notice] To update, run: c:Usersxiaocitoolsidf-python3.11.2python.exe -m pip install --upgrade pipc:Usersxiaocitoolsidf-python3.11.2python.exe: No module named virtualenvTraceback (most recent call last): File "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py", line 1855, in main(sys.argv[1:]) File "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py", line 1851, in main action_func(args) File "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py", line 1547, in action_install_python_env subprocess.check_call([sys.executable, '-m', 'virtualenv'] + File "subprocess.py", line 413, in check_callsubprocess.CalledProcessError: Command '['c:\Users\xiaoci\tools\idf-python\3.11.2\python.exe', '-m', 'virtualenv', '--python', 'c:\Users\xiaoci\tools\idf-python\3.11.2\python.exe', '--seeder', 'pip', 'c:\Users\xiaoci\python_env\idf4.3_py3.11_env']' returned non-zero exit status 1.Command failed: "c:Usersxiaocitoolsidf-python3.11.2python.exe" "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py" install-python-env WARNING: The script virtualenv.exe is installed in 'C:UsersxiaociAppDataRoamingPythonPython311Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.[notice] A new release of pip available: 22.3.1 -> 23.2.1[notice] To update, run: c:Usersxiaocitoolsidf-python3.11.2python.exe -m pip install --upgrade pipc:Usersxiaocitoolsidf-python3.11.2python.exe: No module named virtualenvTraceback (most recent call last): File "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py", line 1855, in main(sys.argv[1:]) File "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py", line 1851, in main action_func(args) File "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py", line 1547, in action_install_python_env subprocess.check_call([sys.executable, '-m', 'virtualenv'] + File "subprocess.py", line 413, in check_callsubprocess.CalledProcessError: Command '['c:\Users\xiaoci\tools\idf-python\3.11.2\python.exe', '-m', 'virtualenv', '--python', 'c:\Users\xiaoci\tools\idf-python\3.11.2\python.exe', '--seeder', 'pip', 'c:\Users\xiaoci\python_env\idf4.3_py3.11_env']' returned non-zero exit status 1.Command failed: "c:Usersxiaocitoolsidf-python3.11.2python.exe" "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py" install-python-env WARNING: The script virtualenv.exe is installed in 'C:UsersxiaociAppDataRoamingPythonPython311Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.[notice] A new release of pip available: 22.3.1 -> 23.2.1[notice] To update, run: c:Usersxiaocitoolsidf-python3.11.2python.exe -m pip install --upgrade pipc:Usersxiaocitoolsidf-python3.11.2python.exe: No module named virtualenvTraceback (most recent call last): File "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py", line 1855, in main(sys.argv[1:]) File "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py", line 1851, in main action_func(args) File "c:Usersxiaociespesp-idfesp-idftoolsidf_tools.py", line 1547, in action_install_python_env subprocess.check_call([sys.executable, '-m', 'virtualenv'] + File "subprocess.py", line 413, in check_callsubprocess.CalledProcessError: Command '['c:\Users\xiaoci\tools\idf-python\3.11.2\python.exe', '-m', 'virtualenv', '--python', 'c:\Users\xiaoci\tools\idf-python\3.11.2\python.exe', '--seeder', 'pip', 'c:\Users\xiaoci\python_env\idf4.3_py3.11_env']' returned non-zero exit status 1. |
|
相关推荐
1个回答
|
|
有可能是你的 ESP-IDF Tools directory 的 path 没有⾃动找到,请检查 IDF_PATH 和 IDF_TOOLS_PATH 的路径是否正确。如果不正确的话,需要在 IDF 插件最开始的安装时⼿动更改 IDF_TOOLS_PATH。 在 Espressif ⾥选择 tools 文件夹,例如 C:Espressiftools。
如果 IDF_PATH 和 IDF_TOOLS_PATH 全部配置正确后依然遇到同样的报错,大概率是因为 VScode 的 IDF 插件会自动安装3.11 的 python,而你环境中的 python 起了冲突。最简单的解决方式是将插件版本回退到 v1.6.3,进入插件管理界面,选择 install another version,然后选择 v1.6.3。这样应该可以解决你的问题。 如果依然没有解决的话,可以考虑检查你环境中的 Python 环境并进行更新。 |
|
|
|
只有小组成员才能发言,加入小组>>
1106 浏览 1 评论
574浏览 6评论
477浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
460浏览 5评论
461浏览 4评论
435浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 10:07 , Processed in 0.825340 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号