为了为Python项目创建一个pipenv,我首先创建了一个项目文件夹,并进入该文件夹,然后指示pipenv创建Pipfile、Pipfile.lock和相关的虚拟环境,如下所示:
在非
意思是我必须先删除项目文件夹中的虚拟环境,然后再依次删除Pipfile和Pipfile.lock吗?
$ mkdir Project
$ cd Project
$ pipenv --three
Creating a virtualenv for this project…
Using /usr/bin/python3 (3.5.2) to create virtualenv…
⠋Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in ~/.local/share/virtualenvs/Projects-jrsJaPdI/bin/python3
Also creating executable in ~/.local/share/virtualenvs/Projects-jrsJaPdI/bin/python
Installing setuptools, pip, wheel...done.
Virtualenv location: ~/.local/share/virtualenvs/Projects-jrsJaPdI
Creating a Pipfile for this project…
$
$ pipenv install --dev
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (711973)!
Installing dependencies from Pipfile.lock (711973)…
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/0 — 00:00:00
To activate this project's virtualenv, run the following:
$ pipenv shell
在非
pipenv shell
模式下,从项目目录中彻底删除所有 pipenv
创建的内容的正确方法是执行以下操作:$ pipenv --rm
$ rm Pipfil*
意思是我必须先删除项目文件夹中的虚拟环境,然后再依次删除Pipfile和Pipfile.lock吗?