D:\test\test_pipenv>pipenv install Creating a virtualenv for this project… Using base prefix 'c:\\python36' New python executable in C:\Users\Administrator\.virtualenvs\test_pipenv-XHxuOsj n\Scripts\python.exe Installing setuptools, pip, wheel...done.
Virtualenv location: C:\Users\Administrator\.virtualenvs\test_pipenv-XHxuOsjn Creating a Pipfile for this project… Pipfile.lock not found, creating… Locking [dev-packages] dependencies… Locking [packages] dependencies… Updated Pipfile.lock (c23e27)! Installing dependencies from Pipfile.lock (c23e27)… ================================ 0/0 - 00:00:00 To activate this project's virtualenv, run the following: $ pipenv shell
$ pipenv install Creating a virtualenv for this project... ... No package provided, installing all dependencies. Virtualenv location: /Users/kennethreitz/.local/share/virtualenvs/test-EJkjoYts Installing dependencies from Pipfile.lock... ...
To activate this project's virtualenv, run the following: $ pipenv shell
$ pipenv lock Assuring all dependencies from Pipfile are installed... Locking [dev-packages] dependencies... Locking [packages] dependencies... Note: your project now has only default [packages] installed. To install [dev-packages], run: $ pipenv install --dev
安装开发环境依赖:
1 2 3 4 5 6
$ pipenv install --dev Pipfile found at /Users/kennethreitz/repos/kr/pip2/test/Pipfile. Considering this to be the project home. Pipfile.lock out of date, updating... Assuring all dependencies from Pipfile are installed... Locking [dev-packages] dependencies... Locking [packages] dependencies...
卸载所有的包:
1 2 3 4 5
$ pipenv uninstall --all No package provided, un-installing all dependencies. Found 25 installed package(s), purging... ... Environment now purged and fresh!
使用虚拟环境的shell。exit退出:
1 2 3
$ pipenv shell Loading .env environment variables… Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return.