sdfxai / sdfx

The ultimate no-code platform to build and share AI apps with beautiful UI.
https://sdfx.ai
GNU Affero General Public License v3.0
389 stars 25 forks source link

The setup doesn't seem to find my python installed #3

Closed RLArt2022 closed 5 months ago

RLArt2022 commented 5 months ago

I have python 3.11.0 installed, but when running the setup.bat

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. The system cannot find the path specified.

is the error it shows.

Using win11, I do not have store installed anymore, so cannot install python that way.

Gushousekai195 commented 5 months ago

Same issue but I'm on Win10. My python instance was installed manually.

BenDes21 commented 5 months ago

same issue

MrKuenning commented 5 months ago

I ran into this error also. I got around it by changing the setup bat to this.

@echo off

python -m venv .venv
call .venv\Scripts\activate

python setup.py %*

pause
RLArt2022 commented 5 months ago

I ran into this error also. I got around it by changing the setup bat to this.

@echo off

python -m venv .venv
call .venv\Scripts\activate

python setup.py %*

pause

That got me further, thanks. After that I had to put git and nodjs on my path, then it installed. Appreciate the great tip.

spartanz51 commented 5 months ago

It seems that your Python wasn't added to the Windows environment variables during installation. That's why the setup script can't find Python in your setup When installing Python, the checkbox to add it to the environment variables should be checked; I've added this instruction to the Windows documentation

Additionally, I've still added in https://github.com/sdfxai/sdfx/commit/d1788fe181fb6705ed8ff73b2e9cb8100cd3dcf5 a small fallback in the setup script to attempt to determine the Python executable path automatically, taking into account feedback from Reddit users