0
I am trying to run on my pc a Django project that I cloned from github, but if I try to run the command 'python Manage.py' returns me the following error: File "Manage.py", line 16 ) from exc Syntaxerror: invalid syntax
and if I try to run python3 Manage.py runserver I have the following error: Modulenotfounderror: No module named 'django_filters'
I tried to run with and without a virtual environment. I tried to know and saw that maybe they are different versions of Django installed. If so, how can I make my virtual environment run in the correct version, since I don’t know the version that runs in the original environment?
At first it seems that the module Django-filter is not installed. You have already spun
pip install -r requirements.txt
,pip install django-filter
or something like that?– Giovanni Nunes
Giovanni, the pip3 install Django filter solved, I was trying to install with’s' which appears in the error, in the case: pip3 install Django-Filters. but now is giving another error... No module named 'psycopg2'. knows which command to install this module?
– Alberis Ricardo
There must be a file called "Reshuffles.txt" in the project you downloaded that contains its dependencies for you to install (in the first comment is the syntax of
pip
for this).– Giovanni Nunes
I created a requiriments.txt with Pip Freeze that I got from the original environment and it worked fine, thanks
– Alberis Ricardo