Added another example example

This commit is contained in:
Ryan Rozario
2023-04-13 15:30:11 +00:00
committed by GitHub
parent d11173cc43
commit c04ce9e2bb
2 changed files with 10 additions and 4 deletions
+9 -3
View File
@@ -6,12 +6,18 @@
You can specify versions of a package using the [Semantic Versioning scheme](https://semver.org/)
(i.e. `major.minor.micro`).
For example, to install requests you can use:
To install a major version of requests you can use:
$ pipenv install requests~=1.1
Pipenv will install version `1.2` as it is a minor update, but not `2.0`.
To install a minor version of requests you can use:
$ pipenv install requests~=1.0.1
Pipenv will install version `1.0.4` as it is a micro version update, but not `1.1.0`.
This will update your `Pipfile` to reflect this requirement, automatically.
In general, Pipenv uses the same specifier format as pip. However, note that according to [PEP 440](https://www.python.org/dev/peps/pep-0440/),
@@ -45,11 +51,11 @@ on your `PATH`), use the `--python VERSION` flag, like so:
Use Python 3
$ pipenv --python 3
$ pipenv --python 3
Use Python3.11
$ pipenv --python 3.11
$ pipenv --python 3.11
When given a Python version, like this, Pipenv will automatically scan your system for a Python that matches that given version.