private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

In installing this private GPT I get this error and do not know how to resolve it: Launching privateGPT! Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. PS C:\Users\equus>

Open MoonTucker opened this issue 1 year ago • 7 comments

Note: if you'd like to ask a question or open a discussion, head over to the Discussions section and post it there.

Describe the bug and how to reproduce it A clear and concise description of what the bug is and the steps to reproduce the behavior.

Expected behavior A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • OS / hardware: [e.g. macOS 12.6 / M1]
  • Python version [e.g. 3.11.3]
  • Other relevant information

Additional context Add any other context about the problem here.

MoonTucker avatar May 29 '23 15:05 MoonTucker

are you using the python3 or python command to run the script?

andrewmayorga avatar May 29 '23 16:05 andrewmayorga

I saw Manage App Execution Alias when python was not installed on Windows 10. That shortcut takes you to Microsoft Store to install python. There is some confusion between Microsoft Store and python.org that needs to be resolved.

https://dev.to/naruaika/why-i-didn-t-install-python-from-the-microsoft-store-5cbd

djbaldwin avatar May 29 '23 16:05 djbaldwin

I downloaded python from: https://www.python.org/downloads/windows/ and installed version Python 3.10.0rc2 - Sept. 7, 2021

I am trying to follow the YT install guide here (https://www.youtube.com/watch?v=9lL2mPPAgN8) but not getting workable results for install.

MoonTucker avatar May 29 '23 16:05 MoonTucker

use py instead of python

maozdemir avatar May 29 '23 16:05 maozdemir

maozdemir. Thank you for your response. I don't have the context to understand what you mean by 'use' when you say: use py instead of python Will you help clarify for me, please? Is there a step-by-step install sheet I can reference to make sure I have all the needed programs installed too?

MoonTucker avatar May 29 '23 16:05 MoonTucker

what commands do you use to launch the project? can you paste here?

maozdemir avatar May 29 '23 17:05 maozdemir

Running Terminal on my pc as administrator I start with this prompt: iex (irm.privategpt.tc.ht) Everything goes well and a desktop icon for Private GPT is added. Immediately following that, I get this error: Python version is not between 3.10.6 and 3.10.11. Assuming you've installed the correct version, please enter the comand you use to access Python 3.9/3.10. Enter the Python program name (e.g. python3, python310): I have Python 3.10 installed but when I enter that in response to the above prompt I get this:

Python version is not between 3.10.6 and 3.10.11. Alternatively, follow this guide for manual installation: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs Process can try to continue, but will likely fail. Press Enter to continue...: Python 3.10.0b1 Python 3.10.0b1 I'll start by installing privateGPT first, then we'll get to the model...

Set-Location : An object at the specified path C:\Program Files (x86)2. does not exist. At line:161 char:5

  • Set-Location "$TCHT\"
    
  • ~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Set-Location], PSArgumentException
    • FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.SetLocationCommand

fatal: destination path 'privateGPT' already exists and is not an empty directory. Set-Location : Cannot find path 'C:\Program Files (x86)2.\privateGPT' because it does not exist. At line:165 char:5

  • Set-Location "$TCHT\privateGPT"
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\Program Files (x86)2.\privateGPT:String) [Set-Location], ItemNotFoun dException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' WARNING: You are using pip version 21.1.1; however, version 23.1.2 is available. You should consider upgrading via the 'C:\Users\equus\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command. Collecting requests Using cached requests-2.31.0-py3-none-any.whl (62 kB) Collecting urllib3<2 Using cached urllib3-1.26.16-py2.py3-none-any.whl (143 kB) Collecting charset-normalizer<4,>=2 Downloading charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB) |████████████████████████████████| 97 kB 272 kB/s Collecting certifi>=2017.4.17 Using cached certifi-2023.5.7-py3-none-any.whl (156 kB) Collecting idna<4,>=2.5 Using cached idna-3.4-py3-none-any.whl (61 kB) Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests Successfully installed certifi-2023.5.7 charset-normalizer-3.1.0 idna-3.4 requests-2.31.0 urllib3-1.26.16 WARNING: You are using pip version 21.1.1; however, version 23.1.2 is available. You should consider upgrading via the 'C:\Users\equus\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.

MoonTucker avatar May 29 '23 18:05 MoonTucker