官方vscode安装出错
Posted: Sat Jul 29, 2023 12:46 pm
我在主机和虚拟机安装espidf时候到最后那个python虚拟环境就出错了
Code: Select all
Successfully installed distlib-0.3.7 filelock-3.12.2 platformdirs-3.9.1 virtualenv-20.24.2
Installing virtualenv
Creating a new Python environment in c:\Users\xiaoci\python_env\idf4.3_py3.11_env
WARNING: The script virtualenv.exe is installed in 'C:\Users\xiaoci\AppData\Roaming\Python\Python311\Scripts' 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:\Users\xiaoci\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
c:\Users\xiaoci\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
File "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py", line 1855, in <module>
main(sys.argv[1:])
File "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py", line 1851, in main
action_func(args)
File "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py", line 1547, in action_install_python_env
subprocess.check_call([sys.executable, '-m', 'virtualenv'] +
File "subprocess.py", line 413, in check_call
subprocess.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:\Users\xiaoci\tools\idf-python\3.11.2\python.exe" "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py" install-python-env
WARNING: The script virtualenv.exe is installed in 'C:\Users\xiaoci\AppData\Roaming\Python\Python311\Scripts' 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:\Users\xiaoci\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
c:\Users\xiaoci\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
File "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py", line 1855, in <module>
main(sys.argv[1:])
File "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py", line 1851, in main
action_func(args)
File "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py", line 1547, in action_install_python_env
subprocess.check_call([sys.executable, '-m', 'virtualenv'] +
File "subprocess.py", line 413, in check_call
subprocess.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:\Users\xiaoci\tools\idf-python\3.11.2\python.exe" "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py" install-python-env
WARNING: The script virtualenv.exe is installed in 'C:\Users\xiaoci\AppData\Roaming\Python\Python311\Scripts' 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:\Users\xiaoci\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
c:\Users\xiaoci\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
File "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py", line 1855, in <module>
main(sys.argv[1:])
File "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py", line 1851, in main
action_func(args)
File "c:\Users\xiaoci\esp\esp-idf\esp-idf\tools\idf_tools.py", line 1547, in action_install_python_env
subprocess.check_call([sys.executable, '-m', 'virtualenv'] +
File "subprocess.py", line 413, in check_call
subprocess.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.