Comments (9)
Maybe you can install torch-2.1.2+cu121 manually, by command pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121
.
(And if you are in China, the speed of connecting to this pytorch official website will be slow, you can use tsinghua mirror to download pytorch, by command pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://pypi.tuna.tsinghua.edu.cn/simple
)
from stable-diffusion-webui.
maybe you can try --timeout <sec>
param in pip to prevent timeout issues by setting sec to a large value, reference this: https://stackoverflow.com/questions/59796680/disable-pip-install-timeout-for-slow-connections
from stable-diffusion-webui.
I'm in Poland.
did it and here is the error.
C:\Users\User>pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121
Looking in indexes: https://download.pytorch.org/whl/cu121
Collecting torch==2.1.2
Downloading https://download.pytorch.org/whl/cu121/torch-2.1.2%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB)
---------------------------------- ----- 2.2/2.5 GB 1.7 MB/s eta 0:03:10
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 435, in _error_catcher
yield
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 516, in read
data = self._fp.read(amt) if not fp_closed else b""
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 90, in read
data = self.__fp.read(amt)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 465, in read
s = self.fp.read(amt)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1130, 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 "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\commands\install.py", line 369, in run
requirement_set = resolver.resolve(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\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 "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 297, in init
super().init(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 162, in init
self.dist = self._prepare()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 231, in _prepare
dist = self._prepare_distribution()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", line 438, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", line 483, in _prepare_linked_requirement
local_file = unpack_url(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", line 165, in unpack_url
file = get_http_url(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", line 106, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\network\download.py", line 147, in call
for chunk in chunks:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\network\utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 573, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 509, in read
with self._error_catcher():
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 440, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.
[notice] A new release of pip available: 22.2.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip
from stable-diffusion-webui.
I'm having the same problem here, Spain.
I tried installing torch manually before, but it try to install it anyways.
Proof:
PS C:\Users\Public\sd.webui> python -c "import torch; print(torch.version)"
2.1.2+cpu
Error:
PS C:\Users\Public\sd.webui> .\run.bat
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.0
Commit hash: adadb4e
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
Collecting torch==2.1.2
Downloading https://download.pytorch.org/whl/cu121/torch-2.1.2%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB)
--------------------------------------- 0.1/2.5 GB 1.6 MB/s eta 0:24:56
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\Public\sd.webui\system\python\lib\site-packages\pip_vendor\urllib3\response.py", line 438, in _error_catcher
yield
File "C:\Users\Public\sd.webui\system\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 "C:\Users\Public\sd.webui\system\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 "C:\Users\Public\sd.webui\system\python\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 98, in read
data: bytes = self.__fp.read(amt)
File "http\client.py", line 465, in read
File "socket.py", line 705, in readinto
File "ssl.py", line 1274, in recv_into
File "ssl.py", line 1130, in read
TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Public\sd.webui\system\python\lib\site-packages\pip_internal\cli\base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
...... etc
from stable-diffusion-webui.
The same error happened here. But when I read the installation page again I realized that my version of python is newer than the one supported by pytorch: python 3.10.6.
After creating a virtual environment with the correct version of python everything worked correctly here.
Hope this helps you.
from stable-diffusion-webui.
The same error happened here. But when I read the installation page again I realized that my version of python is newer than the one supported by pytorch: python 3.10.6.
After creating a virtual environment with the correct version of python everything worked correctly here.
Hope this helps you.
what version did you use and how to do it?
from stable-diffusion-webui.
The python version is 3.10.6 as pointed by README file.
I've created with conda:
conda create -n stable-diffusion-webui python=3.10.6
After this, activate the envinronment:
conda activate stable-diffusion-webui
Run the ./webui.sh script using the created envinronment.
from stable-diffusion-webui.
The python version is 3.10.6 as pointed by README file.
I've created with conda:
conda create -n stable-diffusion-webui python=3.10.6
After this, activate the envinronment:
conda activate stable-diffusion-webui
Run the ./webui.sh script using the created envinronment.
I have python version 3.10.6
After downloading conda and writing your code to cmd it give this error
'conda' is not recognized as an internal or external command,
operable program or batch file.
from stable-diffusion-webui.
maybe you can try
--timeout <sec>
param in pip to prevent timeout issues by setting sec to a large value, reference this: https://stackoverflow.com/questions/59796680/disable-pip-install-timeout-for-slow-connections
try it and it stopped at "2.1/2.5 GB 1.5 MB/s eta 0:03:34" and after some time it give this error
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 435, in _error_catcher
yield
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 516, in read
data = self._fp.read(amt) if not fp_closed else b""
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 90, in read
data = self.__fp.read(amt)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 465, in read
s = self.fp.read(amt)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1130, 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 "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\commands\install.py", line 369, in run
requirement_set = resolver.resolve(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\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 "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 297, in init
super().init(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 162, in init
self.dist = self._prepare()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 231, in _prepare
dist = self._prepare_distribution()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", line 438, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", line 483, in _prepare_linked_requirement
local_file = unpack_url(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", line 165, in unpack_url
file = get_http_url(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", line 106, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\network\download.py", line 147, in call
for chunk in chunks:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\network\utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 573, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 509, in read
with self._error_catcher():
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 440, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.
from stable-diffusion-webui.
Related Issues (20)
- [Feature Request]: merge pnginfo_interface into extras_interface
- [Bug]: Prompt S/R uses newlines as a delimeter as well as commas, but only commas are mentioned in the tooltip/hint
- [Bug]: Emphasis being applied outside of parentheses by `:3` and `:0` (even with emphasis disabled)
- [Bug]: SD is not installed. An error occurred during installation. HOT 4
- [Feature Request]: Add #! python3.10.6 to top of Python scripts to use correct Python version on systems with multiple installed versions HOT 3
- [Bug]: faceID processor is none, even after I have selected the preprocessor HOT 1
- [Bug]: CUDA error: an illegal instruction was encountered
- [Bug]: Torch is not able to use GPU HOT 2
- [Bug]: RuntimeError: "slow_conv2d_cpu" not implemented for 'Half'
- [Bug]: error when i use the addetailer and the controlnet extension at the same time and with a batch count more than 1 HOT 3
- [Bug]: AttributeError: 'NoneType' object has no attribute 'lowvram' HOT 4
- [Bug]: Automatic1111 works extremelly slow if Silly Tavern is also running at the same time
- [Bug]: Installation failed on Windows 11 [False alarm, tried again and it worked] HOT 2
- [Bug]: soft_inpainting TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
- Ui "screwed" up in Networks Tabs
- [Bug]: Crash in _multiarray_umath.cp310-win_amd64.pyd when using Upscale or ADetailer HOT 1
- [Bug]: 'NoneType' object is not iterable HOT 2
- [Bug]: torch.cuda.is_available() = True RuntimeError: Torch is not able to use GPU; HOT 1
- [Bug]: Couldn't find python (launch.py and webui.py works well) HOT 3
- [Bug]: RuntimeError: The size of tensor a (64) must match the size of tensor b (100) at non-singleton dimension 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-webui.