官术网_书友最值得收藏!

Installing Django with pip

The pip package management system is the preferred method for installing Django. Python 3.6 comes with pip preinstalled, but you can find pip installation instructions at https://pip.pypa.io/en/stable/installing/.

Run the following command at the shell prompt to install Django with pip:

pip install Django==2.0.5

Django will be installed in the Python site-packages/ directory of your virtual environment.

Now, check whether Django has been successfully installed. Run python on a terminal, import Django, and check its version, as follows:

>>> import django
>>> django.get_version()
'2.0.5'

If you get the preceding output, Django has been successfully installed on your machine.

Django can be installed in several other ways. You can find a complete installation guide at https://docs.djangoproject.com/en/2.0/topics/install/.

主站蜘蛛池模板: 鄂托克前旗| 松溪县| 罗甸县| 雷山县| 丽江市| 安宁市| 绿春县| 新兴县| 高唐县| 浙江省| 社会| 呼图壁县| 遵义县| 青川县| 长寿区| 海口市| 泰兴市| 城固县| 大足县| 新巴尔虎左旗| 上蔡县| 锡林浩特市| 于田县| 寻乌县| 旌德县| 新晃| 夏邑县| 南京市| 出国| 胶州市| 蓝田县| 邮箱| 彭泽县| 阿坝县| 高台县| 孝义市| 崇仁县| 大邑县| 嘉义县| 车险| 克拉玛依市|