Microsoft Windows [版本 10.0.18363.1556] (c) 2019 Microsoft Corporation。保留所有权利。 # 创建env目录作为虚拟环境地址 D:\Environment\env>dir 驱动器 D 中的卷是 Program 卷的序列号是 654B-777A
D:\Environment\env 的目录
2022/03/24 09:56 <DIR> . 2022/03/24 09:56 <DIR> .. 0 个文件 0 字节 2 个目录 283,803,500,544 可用字节 # 安装pipenv D:\Environment\env>pip install pipenv Looking in indexes: http://pypi.douban.com/simple Requirement already satisfied: pipenv in d:\python3.6\lib\site-packages (2022.1.8) Requirement already satisfied: virtualenv-clone>=0.2.5 in d:\python3.6\lib\site-packages (from pipenv) (0.5.7) Requirement already satisfied: certifi in d:\python3.6\lib\site-packages (from pipenv) (2021.10.8) Requirement already satisfied: pip>=18.0 in d:\python3.6\lib\site-packages (from pipenv) (21.3.1) Requirement already satisfied: virtualenv in d:\python3.6\lib\site-packages (from pipenv) (20.13.3) Requirement already satisfied: setuptools>=36.2.1 in d:\python3.6\lib\site-packages (from pipenv) (59.6.0) Requirement already satisfied: importlib-metadata>=0.12 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (4.8.3) Requirement already satisfied: importlib-resources>=1.0 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (5.4.0) Requirement already satisfied: platformdirs<3,>=2 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (2.4.0) Requirement already satisfied: filelock<4,>=3.2 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (3.4.1) Requirement already satisfied: six<2,>=1.9.0 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (1.11.0) Requirement already satisfied: distlib<1,>=0.3.1 in d:\python3.6\lib\site-packages (from virtualenv->pipenv) (0.3.4) Requirement already satisfied: typing-extensions>=3.6.4 in d:\python3.6\lib\site-packages (from importlib-metadata>=0.12->virtualenv->pipenv) (4.1.1) Requirement already satisfied: zipp>=0.5 in d:\python3.6\lib\site-packages (from importlib-metadata>=0.12->virtualenv->pipenv) (3.6.0)
D:\Environment\env>pipenv graph Warning: No virtualenv has been created for this project yet! Consider running `pipenv install` first to automatically generate one for you or see `pipenv install --help` for further instructions. # 安装Django,不加版本就是默认最新版 D:\Environment\env>pipenv install django Creating a virtualenv for this project... Pipfile: D:\Environment\env\Pipfile Using D:/python3.6/python.exe (3.6.2) to create virtualenv... [ =] Creating virtual environment...created virtual environment CPython3.6.2.final.0-64 in 3139ms creator CPython3Windows(dest=C:\Users\Luffy\.virtualenvs\env-cX5X2ZN8, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\Luffy\AppData\Local\pypa\virtualenv) added seed packages: pip==21.3.1, setuptools==59.6.0, wheel==0.37.1 activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
Successfully created virtual environment! Virtualenv location: C:\Users\Luffy\.virtualenvs\env-cX5X2ZN8 Creating a Pipfile for this project... Installing django... Adding django to Pipfile's [packages]... Installation Succeeded Pipfile.lock not found, creating... Locking [dev-packages] dependencies... Locking [packages] dependencies... Locking...Building requirements... Resolving dependencies... Success! Updated Pipfile.lock (85c883)! Installing dependencies from Pipfile.lock (85c883)... ================================ 0/0 - 00:00:00 To activate this project's virtualenv, run pipenv shell. Alternatively, run a command inside the virtualenv with pipenv run. # 查看虚拟环境中安装的库 D:\Environment\env>pipenv graph Django==3.2.12 - asgiref [required: >=3.3.2,<4, installed: 3.4.1] - typing-extensions [required: Any, installed: 4.1.1] - pytz [required: Any, installed: 2022.1] - sqlparse [required: >=0.2.2, installed: 0.4.2] # 进入虚拟环境 D:\Environment\env>pipenv shell Launching subshell in virtual environment... Microsoft Windows [版本 10.0.18363.1556] (c) 2019 Microsoft Corporation。保留所有权利。 # 查看虚拟环境实际位置 (env-cX5X2ZN8) D:\Environment\env>pipenv --venv C:\Users\Luffy\.virtualenvs\env-cX5X2ZN8