Skip to content

u/EconomicConstipator

In this archive from Sep 2023 to Jan 2025

0
posts
12
comments
0
media
34
score

For torch, I keep few different .whl versions of it on drive. Essentially I made 3 folders, each with it's own venv. It goes like this, make sure the venv is activated then execute

"pip download torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 -d ./downloads"

This has to be a link to the version that you want. It will download to the specified folder, if it doesn't exist it will create new one.

https://preview.redd.it/e96ioh6gapce1.png?width=624&format=png&auto=webp&s=da0281239021b5cb06b48cf263ca0e45fe778ea6

It also downloads all compatible dependencies.

Now to make list of all files in the directory and place it into "requirements.txt" make sure to "cd" to downloads folder and execute command "dir /b *.whl > requirements.txt"

After that if you want to install it locally you just have to specify full path to the location of that requirement.txt

Make sure to activate venv in your project first.

1 points

I git clone the repository and then I open cmd inside comfyui folder, then I execute "python -m venv venv" to create virtual environment, after that activate it with "venv\scripts\activate", then execute "pip install -r requirements.txt", everything auto downloads and installs. Libs like torch should be matched to supported CUDA version. Then to avoid having to redo all these steps manually I create batch file to launch comfyui each time.

If you ever need to list all installed libs you just have to activate venv and do "pip list", you can also dump it into txt file by typing "pip freeze > requirements.txt" or any other name as not to overwrite original one. Also use "pip help" to see other commands.

3 points

Download the wheels and store it on drive and make list of what is compatible, you can install it from directory afterwards when venv is activated. Not the best solution but can save headaches having to re-download stuff constantly. I only got Triton to work by manually downloading and installing pre-compiled wheel.

3 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.