Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Django Rest Framework using Anaconda?

Main OS I am using are Ubuntu and Windows.

I couldn't find the package in conda.I am using python 3.5.

like image 992
NY-M Avatar asked Jan 06 '23 18:01

NY-M


2 Answers

DRF is now on conda-forge. You can install it by using:

conda config --add channels conda-forge
conda install djangorestframework

More information about conda-forge: https://conda-forge.github.io/

like image 151
Charlotte Mays Avatar answered Jan 14 '23 19:01

Charlotte Mays


I have installed it on win7 and ubuntu 16.10. To install this package with conda run:

conda install -c anaconda django=1.10.5

activate myenv             # windows cmd
source activate myenv      # linux, MacOS

# Anaconda prompt

 pip install djangorestframework
 pip install markdown       # Markdown support for the browsable API.
 pip install django-filter  # Filtering support

# verify 

 conda list                 # Now you should see it on your list
like image 42
vladimir vojtisek Avatar answered Jan 14 '23 19:01

vladimir vojtisek