安装过程中遇到了一些问题,最主要是走一步一个error,从下载到powershell都出现了错误
错误如下:
2021-03-21 20:41:53.108 CreateShellLink Destination=C:\Users\52632\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\ESP-IDF\ESP-IDF Command Prompt (cmd.exe).lnk Description=Open ESP-IDF Command Prompt (cmd.exe) Command=/k ""D:\D\soft\esp-idf\.espressif\idf_cmd_init.bat" "C:\Users\52632\anaconda3\" "C:\Program Files\Git\cmd\""
2021-03-21 20:41:53.111 CreateShellLink Destination=C:\Users\52632\Desktop\ESP-IDF Command Prompt (cmd.exe).lnk Description=Open ESP-IDF Command Prompt (cmd.exe) Command=/k ""D:\D\soft\esp-idf\.espressif\idf_cmd_init.bat" "C:\Users\52632\anaconda3\" "C:\Program Files\Git\cmd\""
2021-03-21 20:41:53.112 Registering IDF Tools executables in Windows Defender: powershell -ExecutionPolicy ByPass -File "D:\D\soft\esp-idf\.espressif\dist\tools_WD_excl.ps1" -AddExclPath "D:\D\soft\esp-idf\.espressif\*.exe"
2021-03-21 20:41:53.136 ProcStart failed
2021-03-21 20:41:53.136 Done, exit code=-2
2021-03-21 20:41:53.136 --------
2021-03-21 20:41:53.136 Running command: powershell -ExecutionPolicy ByPass -File "D:\D\soft\esp-idf\.espressif\dist\tools_WD_excl.ps1" -AddExclPath "D:\D\soft\esp-idf\.espressif\*.exe"
或者是
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Traceback (most recent call last):
File "C:\Users\52632\anaconda3\lib\runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
这些主要是环境变量没设置好的问题
需要添加很多环境变量
python的下载
pip的安装
还有powershell
如下:
C:\Users\52632\anaconda3
C:\Users\52632\anaconda3\Library\bin
C:\Users\52632\anaconda3\Scripts
%SystemRoot%\system32
%SystemRoot%
%SystemRoot%\System32\Wbem
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
其中的52632是用户名,需要看你的anaconda安装在哪里
解决了环境变量的问题,然后重复安装几次就可以解决总是报错的问题了。