Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Add #! python3.10.6 to top of Python scripts to use correct Python version on systems with multiple installed versions #15771

Open
1 task done
guylsmith1972 opened this issue May 13, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@guylsmith1972
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

Installing this project is a nuisance since it does not clearly report when you have a version of Python that is not compatible with Pytorch. Since in your requirements in the README you state that python version 3.10.6 should be used, add this (#! python3.10.6) to the top of the Python scripts (launch.py and webui.py) to make things easier for the user during install.

Proposed workflow

This is an automatic feature that will make installation slightly less painful.

Additional information

No response

@guylsmith1972 guylsmith1972 added the enhancement New feature or request label May 13, 2024
@missionfloyd
Copy link
Collaborator

The python version to use can be set in webui-user.sh.

#python_cmd="python3"

@guylsmith1972
Copy link
Author

The python version to use can be set in webui-user.sh.

#python_cmd="python3"

That's not the point. The problem is that the installation process fails because of this. The user should not have to manually modify files in order to get the software to install, especially when the documentation says that installation is automatic.

@MikiMirai
Copy link

I didn't know it wanted me to specify it at first so I uninstalled Python 3.12 and then it threw an error that it couldn't find "C:\Python312".
Fumbled around for 10 minutes and then it finally hit me that you can specify it in web-user.bat and fixed it.
The problem is mostly that if I haven't already watched some tutorial showing that you can specify the version path and it needs to be 3.10.6. I would be looking around the issues and googling why it's not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants