Best VPN Service (English Banners)

GeekBuying.com

Using Django to Build a Website (Mac) 1-6

Alibaba Cloud
Autonomous Standing Desk

System Mechanic® Ultimate Defense™
Save up to 50% on ANSI Standards Packages

install python3 and pip

 

IK Multimedia's T-RackS 5

$ python3 -V

Python 3.6.5 :: Anaconda, Inc.

$ pip3 list

Autonomous Standing Desk

Package                            Version 

———————————- ———

alabaster                          0.7.10 

zict                               0.1.3    

You are using pip version 18.0, however version 19.3.1 is available.

You should consider upgrading via the ‘pip install –upgrade pip’ command.

$ pip install –upgrade pip

Collecting pip

  Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)

    100% |████████████████████████████████| 1.4MB 958kB/s

Installing collected packages: pip

  Found existing installation: pip 18.0

    Uninstalling pip-18.0:

      Successfully uninstalled pip-18.0

Successfully installed pip-19.3.1

$ sudo pip3 install virtualenvwrapper

Password:

WARNING: The directory ‘/Users/user1/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.

WARNING: The directory ‘/Users/user1/Library/Caches/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.

Collecting virtualenvwrapper

  Downloading https://files.pythonhosted.org/packages/c1/6b/2f05d73b2d2f2410b48b90d3783a0034c26afa534a4a95ad5f1178d61191/virtualenvwrapper-4.8.4.tar.gz (334kB)

     |████████████████████████████████| 337kB 1.7MB/s

Requirement already satisfied: virtualenv in ./anaconda3/lib/python3.6/site-packages (from virtualenvwrapper) (16.0.0)

Collecting virtualenv-clone

  Downloading https://files.pythonhosted.org/packages/ba/f8/50c2b7dbc99e05fce5e5b9d9a31f37c988c99acd4e8dedd720b7b8d4011d/virtualenv_clone-0.5.3-py2.py3-none-any.whl

Collecting stevedore

  Downloading https://files.pythonhosted.org/packages/b1/e1/f5ddbd83f60b03f522f173c03e406c1bff8343f0232a292ac96aa633b47a/stevedore-1.31.0-py2.py3-none-any.whl (43kB)

     |████████████████████████████████| 51kB 1.6MB/s

Collecting pbr!=2.1.0,>=2.0.0

  Downloading https://files.pythonhosted.org/packages/46/a4/d5c83831a3452713e4b4f126149bc4fbda170f7cb16a86a00ce57ce0e9ad/pbr-5.4.3-py2.py3-none-any.whl (110kB)

     |████████████████████████████████| 112kB 1.4MB/s

Requirement already satisfied: six>=1.10.0 in ./anaconda3/lib/python3.6/site-packages (from stevedore->virtualenvwrapper) (1.11.0)

Building wheels for collected packages: virtualenvwrapper

  Building wheel for virtualenvwrapper (setup.py) … done

  Created wheel for virtualenvwrapper: filename=virtualenvwrapper-4.8.4-py2.py3-none-any.whl size=22490 sha256=fd5f854056d2bfa0c4f13c9026bffae99bd4a1d27f357f581bc2441951e8d629

  Stored in directory: /Users/user1/Library/Caches/pip/wheels/70/d7/39/a522e494b0e145a1bec42f45a6e542f097c20d0be3ec26866e

Successfully built virtualenvwrapper

Installing collected packages: virtualenv-clone, pbr, stevedore, virtualenvwrapper

Successfully installed pbr-5.4.3 stevedore-1.31.0 virtualenv-clone-0.5.3 virtualenvwrapper-4.8.4

$ mkdir Env1

$ cd Env1

(or $ cd !$)

MacBook:Env1 user1$virtualenv project1_env

Using base prefix ‘/Users/user1/anaconda3’

New python executable in /Users/liveuk/Env1/project1_env/bin/python

Installing setuptools, pip, wheel…done.

MacBook:Env1 user1$ source project1_env/bin/activate

(project1_env) MacBook:Env1 user1$ which python

/Users/user1/Env1/project1_env/bin/python

(project1_env) MacBook:Env1 user1$ which pip

/Users/liveuk/Env1/project1_env/bin/pip

(project1_env) MacBook:Env1 user1$ pip list

Package    Version

———- ——-

pip        19.3.1

setuptools 41.6.0

wheel      0.33.6

(project1_env) MacBook:Env1 user1$ pip install numpy

Collecting numpy

  Downloading https://files.pythonhosted.org/packages/22/99/36e3408ae2cb8b72260de4e538196d17736d7fb82a1086cb2c21ee156ddc/numpy-1.17.4-cp36-cp36m-macosx_10_9_x86_64.whl (15.1MB)

     |████████████████████████████████| 15.1MB 1.2MB/s

Installing collected packages: numpy

(project1_env) MacBook:Env1 user1$ pip3 install django

Collecting django

  Downloading https://files.pythonhosted.org/packages/a0/36/463632a2e9161a7e713488d719a280e8cb0c7e3a66ed32a32e801891caae/Django-2.2.7-py3-none-any.whl (7.5MB)

     |████████████████████████████████| 7.5MB 653kB/s

Collecting sqlparse

  Downloading https://files.pythonhosted.org/packages/ef/53/900f7d2a54557c6a37886585a91336520e5539e3ae2423ff1102daf4f3a7/sqlparse-0.3.0-py2.py3-none-any.whl

Requirement already satisfied: pytz in ./project1_env/lib/python3.6/site-packages (from django) (2019.3)

Installing collected packages: sqlparse, django

Successfully installed django-2.2.7 sqlparse-0.3.0

(project1_env) MacBook:Env1 user1$ python3 -m django –version

2.2.7

(project1_env) MacBook:Env1 user1$ mkdir django_test

(project1_env) MacBook:Env1 user1$ cd !$

cd django_test

(project1_env) MacBook:django_test user1$ django-admin startproject mytestsite

(project1_env) MacBook:django_test user1$ cd !$

cd mytestsite

(project1_env) MacBook:django_test user1$ python3 manage.py runserver

Watching for file changes with StatReloader

Performing system checks…

System check identified no issues (0 silenced).

You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.

Run ‘python manage.py migrate’ to apply them.

November 15, 2019 – 17:45:07

Django version 2.2.7, using settings ‘mytestsite.settings’

Starting development server at http://127.0.0.1:8000/

Quit the server with CONTROL-C.

[15/Nov/2019 17:45:41] “GET / HTTP/1.1” 200 16348

[15/Nov/2019 17:45:41] “GET /static/admin/css/fonts.css HTTP/1.1” 200 423

[15/Nov/2019 17:45:41] “GET /static/admin/fo

nordvpn