Django/Python on FreeBSD: First Steps

2019-06-10 09:56:54+00

I'm starting a new web project and taking the opportunity to evaluate Django/Python on FreeBSD.

First, let's see if python is already installed

$ pkg info | grep python
python27-2.7.16_1              Interpreted object-oriented programming language
python36-3.6.8_2               Interpreted object-oriented programming language
python: Command not found.
 # python3.6
Python 3.6.8 (default, May 11 2019, 08:32:34) 
[GCC 4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601/final 335540)] on freebsd12
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

Installation of the package manager

cd /usr/ports/devel/py-pip/ && make install clean
# pip-3.6

  pip  [options]

  install                     Install packages.
  download                    Download packages.

Tag: django