ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

How to upgrade the standalone portable package to python 3.12 and cu124

Open IAFFeng opened this issue 1 year ago • 3 comments

Executed update_comfyui_and_python_dependencies.bat. After the update, only pytorch was upgraded to 2.5.1, and python and cu were still the old versions.

IAFFeng avatar Oct 29 '24 02:10 IAFFeng

YES! I wanna know this too. For the regular venv version we need to delete the whole venv and start over, but how do we do this for portable? I wanna upgrade the internal python from 3.11 to 3.12!

oliverban avatar Oct 30 '24 22:10 oliverban

Can you clarify? Standalone or embedded? I feel you mean embedded, and correct, embedded already comes with a locked python version, which will be "updated" when they release a new embedded with an updated python.

For standalone, it uses your system python, so you are free to update/upgrade that and continue onward, given you know what other packages to update for it.

Amorano avatar Nov 01 '24 11:11 Amorano

Can you clarify? Standalone or embedded? I feel you mean embedded, and correct, embedded already comes with a locked python version, which will be "updated" when they release a new embedded with an updated python.

For standalone, it uses your system python, so you are free to update/upgrade that and continue onward, given you know what other packages to update for it.

Portable version, that is, to replace the contents of the compressed package?

IAFFeng avatar Nov 05 '24 01:11 IAFFeng

This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically.

github-actions[bot] avatar Dec 05 '24 11:12 github-actions[bot]

??? Still no answer ???

metamountain avatar Jan 22 '25 18:01 metamountain

??? Still no answer ???

still no answer to what? I literally asked clarification questions and got no answers.

The update will not REPLACE the embedded python installation. You need to pull a new embedded, if you want a new python version.

Amorano avatar Jan 22 '25 20:01 Amorano

??? Still no answer ???

still no answer to what? I literally asked clarification questions and got no answers.

The update will not REPLACE the embedded python installation. You need to pull a new embedded, if you want a new python version.

Let's say I want to update embedded python from 3.11 to 3.12, I will need to pull the latest ComfyUI and replace the old 3.11 embedded_python with new pulled 3.12 embedded_python folder completely, is that correct approach? Is there anything could potentially be broke? Thanks

GitHongWu avatar Jul 16 '25 14:07 GitHongWu

??? Still no answer ???

still no answer to what? I literally asked clarification questions and got no answers.

The update will not REPLACE the embedded python installation. You need to pull a new embedded, if you want a new python version.

Let's say I want to update embedded python from 3.11 to 3.12, I will need to pull the latest ComfyUI and replace the old 3.11 embedded_python with new pulled 3.12 embedded_python folder completely, is that correct approach? Is there anything could potentially be broke? Thanks

That's correct. Additionally, you should extract the list of installed dependencies from the existing Python environment using python_embeded/python.exe -m pip freeze, and then carefully reinstall them in the new Python environment. (You should not reinstall torch related packages.) One thing to watch out for is that some dependencies may not be installable in the newer Python version.

ltdrdata avatar Jul 17 '25 09:07 ltdrdata