Anaconda环境安装
Python环境管理:Andaconda安装使用
创建djangoProject环境
conda create -p /Users/username/opt/anaconda3/envs/djangoProject -y python=3.8
Collecting package metadata (current_repodata.json): done
Solving environment: done
environment location: /Users/username/opt/anaconda3/envs/djangoProject
added / updated specs:
- python=3.8
The following NEW packages will be INSTALLED:
ca-certificates anaconda/pkgs/main/osx-64::ca-certificates-2020.12.8-hecd8cb5_0
certifi anaconda/pkgs/main/osx-64::certifi-2020.12.5-py38hecd8cb5_0
libcxx anaconda/pkgs/main/osx-64::libcxx-10.0.0-1
libedit anaconda/pkgs/main/osx-64::libedit-3.1.20191231-h1de35cc_1
libffi anaconda/pkgs/main/osx-64::libffi-3.3-hb1e8313_2
ncurses anaconda/pkgs/main/osx-64::ncurses-6.2-h0a44026_1
openssl anaconda/pkgs/main/osx-64::openssl-1.1.1i-h9ed2024_0
pip anaconda/pkgs/main/osx-64::pip-20.3.3-py38hecd8cb5_0
python anaconda/pkgs/main/osx-64::python-3.8.5-h26836e1_1
readline anaconda/pkgs/main/osx-64::readline-8.0-h1de35cc_0
setuptools anaconda/pkgs/main/osx-64::setuptools-51.1.2-py38hecd8cb5_4
sqlite anaconda/pkgs/main/osx-64::sqlite-3.33.0-hffcf06c_0
tk anaconda/pkgs/main/osx-64::tk-8.6.10-hb0a8c7a_0
wheel anaconda/pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
xz anaconda/pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
zlib anaconda/pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Django模块安装
conda install django
Collecting package metadata (current_repodata.json): done
Solving environment: done
environment location: /Users/username/opt/anaconda3
added / updated specs:
- django
The following packages will be downloaded:
package | build
---------------------------|-----------------
django-2.2.5 | py38_1 3.9 MB https://mirrors.ustc.edu.cn/anaconda/pkgs/main
sqlparse-0.4.1 | py_0 35 KB https://mirrors.ustc.edu.cn/anaconda/pkgs/main
------------------------------------------------------------
Total: 3.9 MB
The following NEW packages will be INSTALLED:
django anaconda/pkgs/main/osx-64::django-2.2.5-py38_1
sqlparse anaconda/pkgs/main/noarch::sqlparse-0.4.1-py_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
sqlparse-0.4.1 | 35 KB |
django-2.2.5 | 3.9 MB |
Preparing transaction: done
Verifying transaction: done
Executing transaction: done