Aug-07-2023, 04:47 PM
Good Evening,
I am just starting out with python (3.11) and i wanted to download an app from github ( a python photo album ). The author has kindly made some instructions, but i am totally lost already !!
in the windows (10) command line i tyype "py" and python 3.11.1 starts with the black screen, then i tried the instructions:-
1.Create venv virtual environment:
virtualenv virtualenv_name
i typed this into the python command line and received :-
>>> virtualenv virtualenv_name
File "<stdin>", line 1
virtualenv virtualenv_name
^^^^^^^^^^^^^^^
SyntaxError: invalid syntax
2. Activate venv virtual environment:
On Linux - source virtualenv_name/bin/activate
On Windows - virtualenv_name/Scripts/activate
does this windows command go into the command line as well ?
3.Firstly you need to clone or download my project from github repositories:
git clone https://github.com/hossainchisty/Photo-Album-App.git
i got this to work, it has been saved into "C:\Users\Adrian\Documents\GitHub\Photo-Album-App"
4. Then enter the corresponding directory:
cd Photo-Album-App
i substituted this for the path that the album has been installed in and received :-
C:\Users\Adrian\Documents\GitHub\Photo-Album-Appcd
^
SyntaxError: unexpected character after line continuation character
i am not sure where any of the following should be typed :-
Install all the requirements using pip:
pip install -r requirements.txt
Run server:
python manage.py runserver
Then go to http://127.0.0.1:8000 in your browser
Create Admin
python manage.py createsuperuser
Access the admin dashboard http://127.0.0.1:8000/admin
the github page is https://github.com/hossainchisty/Photo-Album-App#readme
any advice would be much appreciated !!!
Best Regards
Adrian
I am just starting out with python (3.11) and i wanted to download an app from github ( a python photo album ). The author has kindly made some instructions, but i am totally lost already !!
in the windows (10) command line i tyype "py" and python 3.11.1 starts with the black screen, then i tried the instructions:-
1.Create venv virtual environment:
virtualenv virtualenv_name
i typed this into the python command line and received :-
>>> virtualenv virtualenv_name
File "<stdin>", line 1
virtualenv virtualenv_name
^^^^^^^^^^^^^^^
SyntaxError: invalid syntax
2. Activate venv virtual environment:
On Linux - source virtualenv_name/bin/activate
On Windows - virtualenv_name/Scripts/activate
does this windows command go into the command line as well ?
3.Firstly you need to clone or download my project from github repositories:
git clone https://github.com/hossainchisty/Photo-Album-App.git
i got this to work, it has been saved into "C:\Users\Adrian\Documents\GitHub\Photo-Album-App"
4. Then enter the corresponding directory:
cd Photo-Album-App
i substituted this for the path that the album has been installed in and received :-
C:\Users\Adrian\Documents\GitHub\Photo-Album-Appcd
^
SyntaxError: unexpected character after line continuation character
i am not sure where any of the following should be typed :-
Install all the requirements using pip:
pip install -r requirements.txt
Run server:
python manage.py runserver
Then go to http://127.0.0.1:8000 in your browser
Create Admin
python manage.py createsuperuser
Access the admin dashboard http://127.0.0.1:8000/admin
the github page is https://github.com/hossainchisty/Photo-Album-App#readme
any advice would be much appreciated !!!
Best Regards
Adrian