Install Djangorestfamework
Install Djangorestfamework
Install Djangorestfamework
conda 4.3.14
crawler@linux:~/PycharmProjects/account_service$ conda update conda
Fetching package metadata .........
Solving package specifications: .
Proceed ([y]/n)? y
(account_service) crawler@linux:~/PycharmProjects/account_service$ ls
account_service venv
(account_service) crawler@linux:~/PycharmProjects/account_service$ cd
account_service
(account_service) crawler@linux:~/PycharmProjects/account_service/account_service$
ls
account_service db.sqlite3 manage.py
(account_service) crawler@linux:~/PycharmProjects/account_service/account_service$
python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception:
(account_service) crawler@linux:~/PycharmProjects/account_service/account_service$
pip freeze > requirement.txt
(account_service) crawler@linux:~/PycharmProjects/account_service/account_service$
conda env export > environment.yml
(account_service) crawler@linux:~/PycharmProjects/account_service/account_service$
conda env create -f environment.yml
Using Anaconda API: https://api.anaconda.org
CondaValueError: prefix already exists:
/home/crawler/anaconda2/envs/account_service
(account_service) crawler@linux:~/PycharmProjects/account_service/account_service$
python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception:
The above exception was the direct cause of the following exception:
(account_service) crawler@linux:~/PycharmProjects/account_service/account_service$
source activate account_service
(account_service) crawler@linux:~/PycharmProjects/account_service/account_service$
python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception: