VSCode安装ESP-IDF失败

shy1439
Posts: 1
Joined: Mon Feb 28, 2022 11:53 am

VSCode安装ESP-IDF失败

Postby shy1439 » Mon Feb 28, 2022 12:02 pm

请问各位大佬,通过vscode扩展安装ESP-IDF,在最后一步安装python虚拟环境一直失败是怎么回事?
d55680405f6e1b6fe6de83bc7df06c1.png
d55680405f6e1b6fe6de83bc7df06c1.png (150.49 KiB) Viewed 2216 times
弹窗提示错误:
Command failed: "f:\ToolChains\ESPRESSIF\tools\idf-python\3.8.7\python.exe" "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py" install-python-env ERROR: Exception: Traceback (most recent call last): File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher yield File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in read data = self._fp.read(amt) if not fp_closed else b"" File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read data = self.__fp.read(amt) File "http\client.py", line 458, in read File "http\client.py", line 502, in readinto File "socket.py", line 669, in readinto File "ssl.py", line 1241, in recv_into File "ssl.py", line 1099, in read socket.timeout: The read operation timed out During handling of the above ex...
50cad1bcfd4475f89deb5c84cceb645.png
50cad1bcfd4475f89deb5c84cceb645.png (75.45 KiB) Viewed 2216 times
详细输出如下:
Requirement already satisfied: virtualenv in f:\toolchains\espressif\tools\idf-python\3.8.7\lib\site-packages (20.4.0)
Requirement already satisfied: appdirs<2,>=1.4.3 in f:\toolchains\espressif\tools\idf-python\3.8.7\lib\site-packages (from virtualenv) (1.4.4)
Requirement already satisfied: six<2,>=1.9.0 in f:\toolchains\espressif\tools\idf-python\3.8.7\lib\site-packages (from virtualenv) (1.15.0)
Requirement already satisfied: filelock<4,>=3.0.0 in f:\toolchains\espressif\tools\idf-python\3.8.7\lib\site-packages (from virtualenv) (3.0.12)
Requirement already satisfied: distlib<1,>=0.3.1 in f:\toolchains\espressif\tools\idf-python\3.8.7\lib\site-packages (from virtualenv) (0.3.1)
WARNING: You are using pip version 20.3.3; however, version 22.0.3 is available.
You should consider upgrading via the 'f:\ToolChains\ESPRESSIF\tools\idf-python\3.8.7\python.exe -m pip install --upgrade pip' command.


created virtual environment CPython3.8.7.final.0-64 in 1533ms
creator CPython3Windows(dest=F:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\Sean\AppData\Local\pypa\virtualenv)
added seed packages: pip==20.3.3, setuptools==51.3.3, wheel==0.36.2
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator


Python 3.8.7
pip 20.3.3 from f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip (python 3.8)

Looking in indexes: https://pypi.org/simple, https://dl.espressif.com/pypi
Requirement already satisfied: setuptools>=21 in f:\toolchains\espressif\python_env\idf4.4_py3.8_env\lib\site-packages (from -r f:\ToolChains\ESP\esp-idf\requirements.txt (line 4)) (51.3.3)
Processing f:\toolchains\esp\esp-idf\tools\kconfig_new\esp-windows-curses
Collecting construct==2.10.54
Using cached https://dl.espressif.com/pypi/construct ... ne-any.whl (57 kB)
Collecting gdbgui==0.13.2.0
Using cached https://dl.espressif.com/pypi/gdbgui/gd ... ne-any.whl (878 kB)
Collecting kconfiglib==13.7.1
Using cached https://dl.espressif.com/pypi/kconfigli ... ne-any.whl (145 kB)
Collecting bitstring>=3.1.6
Using cached https://dl.espressif.com/pypi/bitstring ... ne-any.whl (38 kB)
Collecting click>=7.0
Using cached click-8.0.4-py3-none-any.whl (97 kB)
Collecting cryptography>=2.1.4
Using cached https://dl.espressif.com/pypi/cryptogra ... _amd64.whl (2.2 MB)
Collecting ecdsa>=0.16.0
Using cached https://dl.espressif.com/pypi/ecdsa/ecd ... ne-any.whl (119 kB)
Collecting future>=0.15.2
Using cached https://dl.espressif.com/pypi/future/fu ... ne-any.whl (491 kB)
Collecting idf-component-manager>=0.2.99-beta
Using cached idf_component_manager-1.0.1-py3-none-any.whl (76 kB)
Collecting pyelftools>=0.22
Using cached pyelftools-0.28-py2.py3-none-any.whl (155 kB)
Collecting pygdbmi<=0.9.0.2
Using cached https://dl.espressif.com/pypi/pygdbmi/p ... ne-any.whl (16 kB)
Collecting pyparsing<2.4.0,>=2.0.3
Using cached https://dl.espressif.com/pypi/pyparsing ... ne-any.whl (61 kB)
Collecting pyserial>=3.3
Using cached https://dl.espressif.com/pypi/pyserial/ ... ne-any.whl (90 kB)
Collecting python-socketio<5
Downloading python_socketio-4.6.1-py2.py3-none-any.whl (51 kB)
Collecting reedsolo<=1.5.4,>=1.5.3
Downloading https://dl.espressif.com/pypi/reedsolo/ ... ne-any.whl (28 kB)
Collecting cffi>=1.12
Downloading cffi-1.15.0-cp38-cp38-win_amd64.whl (179 kB)
Installing Python packages from f:\ToolChains\ESP\esp-idf\requirements.txt
ERROR: Exception:
Traceback (most recent call last):
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
yield
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "http\client.py", line 458, in read
File "http\client.py", line 502, in readinto
File "socket.py", line 669, in readinto
File "ssl.py", line 1241, in recv_into
File "ssl.py", line 1099, in read
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\cli\base_command.py", line 224, in _main
status = self.run(options, args)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\cli\req_command.py", line 180, in wrapper
return func(self, options, args)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\commands\install.py", line 320, in run
requirement_set = resolver.resolve(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 121, in resolve
self._result = resolver.resolve(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 445, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 339, in resolve
failure_causes = self._attempt_to_pin_criterion(name, criterion)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 207, in _attempt_to_pin_criterion
criteria = self._get_criteria_to_update(candidate)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 198, in _get_criteria_to_update
for r in self._p.get_dependencies(candidate):
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\provider.py", line 170, in get_dependencies
return [
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\provider.py", line 170, in <listcomp>
return [
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 257, in iter_dependencies
requires = self.dist.requires() if with_requires else ()
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 239, in dist
self._prepare()
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 226, in _prepare
dist = self._prepare_distribution()
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 318, in _prepare_distribution
return self._factory.preparer.prepare_linked_requirement(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 480, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 503, in _prepare_linked_requirement
local_file = unpack_url(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 253, in unpack_url
file = get_http_url(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 130, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\network\download.py", line 163, in __call__
for chunk in chunks:
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\cli\progress_bars.py", line 168, in iter
for x in it:
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\network\utils.py", line 64, in response_chunks
for chunk in response.raw.stream(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "contextlib.py", line 131, in __exit__
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
WARNING: You are using pip version 20.3.3; however, version 22.0.3 is available.
You should consider upgrading via the 'f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\Scripts\python.exe -m pip install --upgrade pip' command.
Traceback (most recent call last):
File "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py", line 1828, in <module>
main(sys.argv[1:])
File "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py", line 1824, in main
action_func(args)
File "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py", line 1545, in action_install_python_env
subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr, env=env_copy)
File "subprocess.py", line 364, in check_call
subprocess.CalledProcessError: Command '['f:\\ToolChains\\ESPRESSIF\\python_env\\idf4.4_py3.8_env\\Scripts\\python.exe', '-m', 'pip', 'install', '--no-warn-script-location', '-r', 'f:\\ToolChains\\ESP\\esp-idf\\requirements.txt', '--extra-index-url', 'https://dl.espressif.com/pypi']' returned non-zero exit status 2.
Command failed: "f:\ToolChains\ESPRESSIF\tools\idf-python\3.8.7\python.exe" "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py" install-python-env
ERROR: Exception:
Traceback (most recent call last):
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
yield
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "http\client.py", line 458, in read
File "http\client.py", line 502, in readinto
File "socket.py", line 669, in readinto
File "ssl.py", line 1241, in recv_into
File "ssl.py", line 1099, in read
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\cli\base_command.py", line 224, in _main
status = self.run(options, args)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\cli\req_command.py", line 180, in wrapper
return func(self, options, args)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\commands\install.py", line 320, in run
requirement_set = resolver.resolve(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 121, in resolve
self._result = resolver.resolve(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 445, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 339, in resolve
failure_causes = self._attempt_to_pin_criterion(name, criterion)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 207, in _attempt_to_pin_criterion
criteria = self._get_criteria_to_update(candidate)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 198, in _get_criteria_to_update
for r in self._p.get_dependencies(candidate):
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\provider.py", line 170, in get_dependencies
return [
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\provider.py", line 170, in <listcomp>
return [
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 257, in iter_dependencies
requires = self.dist.requires() if with_requires else ()
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 239, in dist
self._prepare()
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 226, in _prepare
dist = self._prepare_distribution()
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 318, in _prepare_distribution
return self._factory.preparer.prepare_linked_requirement(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 480, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 503, in _prepare_linked_requirement
local_file = unpack_url(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 253, in unpack_url
file = get_http_url(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 130, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\network\download.py", line 163, in __call__
for chunk in chunks:
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\cli\progress_bars.py", line 168, in iter
for x in it:
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\network\utils.py", line 64, in response_chunks
for chunk in response.raw.stream(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "contextlib.py", line 131, in __exit__
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
WARNING: You are using pip version 20.3.3; however, version 22.0.3 is available.
You should consider upgrading via the 'f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\Scripts\python.exe -m pip install --upgrade pip' command.
Traceback (most recent call last):
File "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py", line 1828, in <module>
main(sys.argv[1:])
File "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py", line 1824, in main
action_func(args)
File "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py", line 1545, in action_install_python_env
subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr, env=env_copy)
File "subprocess.py", line 364, in check_call
subprocess.CalledProcessError: Command '['f:\\ToolChains\\ESPRESSIF\\python_env\\idf4.4_py3.8_env\\Scripts\\python.exe', '-m', 'pip', 'install', '--no-warn-script-location', '-r', 'f:\\ToolChains\\ESP\\esp-idf\\requirements.txt', '--extra-index-url', 'https://dl.espressif.com/pypi']' returned non-zero exit status 2.
Command failed: "f:\ToolChains\ESPRESSIF\tools\idf-python\3.8.7\python.exe" "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py" install-python-env
ERROR: Exception:
Traceback (most recent call last):
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
yield
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "http\client.py", line 458, in read
File "http\client.py", line 502, in readinto
File "socket.py", line 669, in readinto
File "ssl.py", line 1241, in recv_into
File "ssl.py", line 1099, in read
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\cli\base_command.py", line 224, in _main
status = self.run(options, args)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\cli\req_command.py", line 180, in wrapper
return func(self, options, args)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\commands\install.py", line 320, in run
requirement_set = resolver.resolve(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 121, in resolve
self._result = resolver.resolve(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 445, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 339, in resolve
failure_causes = self._attempt_to_pin_criterion(name, criterion)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 207, in _attempt_to_pin_criterion
criteria = self._get_criteria_to_update(candidate)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 198, in _get_criteria_to_update
for r in self._p.get_dependencies(candidate):
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\provider.py", line 170, in get_dependencies
return [
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\provider.py", line 170, in <listcomp>
return [
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 257, in iter_dependencies
requires = self.dist.requires() if with_requires else ()
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 239, in dist
self._prepare()
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 226, in _prepare
dist = self._prepare_distribution()
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 318, in _prepare_distribution
return self._factory.preparer.prepare_linked_requirement(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 480, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 503, in _prepare_linked_requirement
local_file = unpack_url(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 253, in unpack_url
file = get_http_url(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\operations\prepare.py", line 130, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\network\download.py", line 163, in __call__
for chunk in chunks:
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\cli\progress_bars.py", line 168, in iter
for x in it:
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_internal\network\utils.py", line 64, in response_chunks
for chunk in response.raw.stream(
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "contextlib.py", line 131, in __exit__
File "f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
WARNING: You are using pip version 20.3.3; however, version 22.0.3 is available.
You should consider upgrading via the 'f:\ToolChains\ESPRESSIF\python_env\idf4.4_py3.8_env\Scripts\python.exe -m pip install --upgrade pip' command.
Traceback (most recent call last):
File "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py", line 1828, in <module>
main(sys.argv[1:])
File "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py", line 1824, in main
action_func(args)
File "f:\ToolChains\ESP\esp-idf\tools\idf_tools.py", line 1545, in action_install_python_env
subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr, env=env_copy)
File "subprocess.py", line 364, in check_call
subprocess.CalledProcessError: Command '['f:\\ToolChains\\ESPRESSIF\\python_env\\idf4.4_py3.8_env\\Scripts\\python.exe', '-m', 'pip', 'install', '--no-warn-script-location', '-r', 'f:\\ToolChains\\ESP\\esp-idf\\requirements.txt', '--extra-index-url', 'https://dl.espressif.com/pypi']' returned non-zero exit status 2.

dcs_bl
Posts: 1
Joined: Sun Apr 17, 2022 6:37 am

Re: VSCode安装ESP-IDF失败

Postby dcs_bl » Sun Apr 17, 2022 6:42 am


Who is online

Users browsing this forum: Baidu [Spider] and 86 guests