microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.13k stars 28.52k forks source link

install libraries #187845

Closed ImMrMahdi closed 1 year ago

ImMrMahdi commented 1 year ago

Type: Bug

i just want to install and use some new libraries in VSCode (python) when i use "pip install " in terminal terminal gives me this errors please help me and let me know what i have to do for fix it """ ERROR: Exception: Traceback (most recent call last): File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_vendor\urllib3\response.py", line 438, in _error_catcher
yield File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_vendor\urllib3\response.py", line 561, in read data = self._fp_read(amt) if not fp_closed else b"" ^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_vendor\urllib3\response.py", line 527, in _fp_read return self._fp.read(amt) if amt is not None else self._fp.read() ^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 90, in read data = self.__fp.read(amt) ^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\http\client.py", line 466, in read s = self.fp.read(amt) ^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\socket.py", line 706, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\ssl.py", line 1278, in recv_into return self.read(nbytes, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\ssl.py", line 1134, in read return self._sslobj.read(len, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\cli\base_command.py", line 169, in exc_logging_wrapper status = run_func(*args) ^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\cli\req_command.py", line 248, in wrapper return func(self, options, args) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\commands\install.py", line 377, in run requirement_set = resolver.resolve( ^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve result = self._result = resolver.resolve( ^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 397, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria if not criterion.candidates: File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_vendor\resolvelib\structs.py", line 156, in bool return bool(self._sequence) ^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool return any(self) ^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in return (c for c in iterator if id(c) not in self._incompatible_ids) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built candidate = func() ^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( ^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 293, in init super().init( File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 156, in init self.dist = self._prepare() ^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 225, in _prepare dist = self._prepare_distribution() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 304, in _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\operations\prepare.py", line 516, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\operations\prepare.py", line 587, in _prepare_linked_requirement local_file = unpack_url( ^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\operations\prepare.py", line 166, in unpack_url file = get_http_url( ^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\operations\prepare.py", line 107, in get_http_url from_path, content_type = download(link, temp_dir.path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\network\download.py", line 147, in call for chunk in chunks: File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\cli\progress_bars.py", line 53, in _rich_progress_bar for chunk in iterable: File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_internal\network\utils.py", line 63, in response_chunks for chunk in response.raw.stream( File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_vendor\urllib3\response.py", line 622, in stream data = self.read(amt=amt, decode_content=decode_content) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\SoftWare\Programing\Python\Python\Lib\site-packages\pip_vendor\urllib3\response.py", line 560, in read with self._error_catcher(): File "E:\SoftWare\Programing\Python\Python\Lib\contextlib.py", line 155, in exit self.gen.throw(typ, value, traceback) File "E:\SoftWare\Programing\Python\Python\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. " thank you

VS Code version: Code 1.80.0 (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T15:06:02.407Z) OS version: Windows_NT x64 10.0.19044 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 5500U with Radeon Graphics (12 x 2096)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|9.86GB (3.11GB free)| |Process Argv|--crash-reporter-id 4b693618-aa7b-469c-8941-3df9104aff72| |Screen Reader|no| |VM|0%|
Extensions (24) Extension|Author (truncated)|Version ---|---|--- matlab-formatter|Aff|2.10.51 matlab-interactive-terminal|apo|0.4.0 matlab-extension-pack|bat|0.1.0 matlab-code-run|bra|1.0.2 code-runner|for|0.12.0 c-cpp-runner|fra|7.0.2 matlab|Gim|3.0.2 language-matlab|Mat|1.1.1 csharp|ms-|1.26.0 python|ms-|2023.13.11941005 vscode-pylance|ms-|2023.7.20 jupyter|ms-|2023.6.1101941928 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 cmake-tools|ms-|1.14.34 cpptools|ms-|1.16.3 cpptools-extension-pack|ms-|1.3.0 ispy|Ric|0.0.4 matlab-complete|Sla|1.1.1 cmake|twx|0.0.17 vscode-lldb|vad|1.9.2 NbConverter|yig|1.5.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263cf:30784848 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 3biah626:30602489 pyind779:30671433 89544117:30613380 pythonsymbol12:30671437 2i9eh265:30646982 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 03d35959:30757346 ecj1e332:30736112 pythonfmttext:30731395 pythoncmv:30756943 fixshowwlkth:30771522 showindicator:30785052 pythongtdpath:30769146 bgfeh915:30780428 pythonnosm12tcf:30779713 pythonidxpt:30784022 pythonnocebcf:30776496 e537b577:30786199 ```
VSCodeTriageBot commented 1 year ago

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.

Happy Coding!