google-research / mood-board-search

Apache License 2.0
147 stars 20 forks source link

Could anyone help me how to install this? #21

Open glen1102 opened 6 months ago

glen1102 commented 6 months ago

I am a student majoring product design, which I have absolutely no coding knowledge. However, after I have downloaded Python 3.12, and node- what's the next step should I processed? I have tried copied into python or node- but seems like not working at all. Please, appreciate anyone who willing help me with this.

cd backend

python3.8 -m venv env
source env/bin/activate
pip install -U pip
pip install -r requirements.txt

image

joerick commented 6 months ago

You'd be better off using Python 3.8, rather than 3.12, as the instructions are geared to that. Also, these commands above should be input into a Console, not into Python itself.

Just a heads up, it might be a steep learning curve if you have no experience with shells and the command line.

glen1102 commented 6 months ago

You'd be better off using Python 3.8, rather than 3.12, as the instructions are geared to that. Also, these commands above should be input into a Console, not into Python itself.

Just a heads up, it might be a steep learning curve if you have no experience with shells and the command line.

Thank you so much for your kind reply. I have tried just put those commands in "terminal" or "PowerShell" on Windows 11; I know my question might be very simple and the part you mentioned might be basic knowledge. Perhaps nobody would be willing to help a newcomer like me. Nevertheless, I am very grateful for your time. Below is the feedback I received after entering the above command in the terminal. I have already changed my username to MY USER NAME.

PS C:\Users\MY USER NAME> cd backend cd : Path 'C:\Users\MY USER NAME\backend' cannot be found because it does not exist. Location Line: 1 Characters: 1

PS C:\Users\MY USER NAME> PS C:\Users\MY USER NAME> python3.8 -m venv env python3.8 : The item 'python3.8' is not recognized as The name of a cmdlet, function, script file, or executable program. Please check the spelling of the name and, if a path is included, make sure the path is correct and try again. Location Line: 1 Characters: 1

PS C:\Users\MY USER NAME> source env/bin/activate source : The item 'source' is not recognized as The name of a cmdlet, function, script file, or executable program. Please check the spelling of the name and, if a path is included, make sure the path is correct and try again. Location Line: 1 Characters: 1

PS C:\Users\MY USER NAME> pip install -U pip pip : The item 'pip' is not recognized as The name of a cmdlet, function, script file, or executable program. Please check the spelling of the name and, if a path is included, make sure the path is correct and try again. Location Line: 1 Characters: 1

PS C:\UsersMY USER NAME> pip install -r requirements.txt