Remove mention of the --two flag and python2

This commit is contained in:
Matt Davis
2022-03-12 03:07:48 -05:00
parent c73f52d4fa
commit 79389f0031
8 changed files with 14 additions and 18 deletions
+1 -1
View File
@@ -636,4 +636,4 @@ You can force Pipenv to use a different cache location by setting the environmen
☤ Changing Default Python Versions
----------------------------------
By default, Pipenv will initialize a project using whatever version of python the python3 is. Besides starting a project with the ``--three`` or ``--two`` flags, you can also use ``PIPENV_DEFAULT_PYTHON_VERSION`` to specify what version to use when starting a project when ``--three`` or ``--two`` aren't used.
By default, Pipenv will initialize a project using whatever version of python the system has as default. Besides starting a project with the ``--python`` or ``--three`` flags, you can also use ``PIPENV_DEFAULT_PYTHON_VERSION`` to specify what version to use when starting a project when ``--python`` or ``--three`` aren't used.
+3 -4
View File
@@ -306,7 +306,6 @@ Along with the basic install command, which takes the form::
The user can provide these additional parameters:
- ``--two`` — Performs the installation in a virtualenv using the system ``python2`` link.
- ``--three`` — Performs the installation in a virtualenv using the system ``python3`` link.
- ``--python`` — Performs the installation in a virtualenv using the provided Python interpreter.
@@ -437,7 +436,7 @@ doing a multi stage build for your application::
ENV PIPENV_VENV_IN_PROJECT=1
# Pipefile contains requests
ADD Pipfile.lock Pipfile /usr/src/
ADD Pipfile.lock Pipfile /usr/src/
WORKDIR /usr/src
@@ -448,13 +447,13 @@ doing a multi stage build for your application::
# RUN apt install -y libcurl3-gnutls libcurl4-gnutls-dev
RUN /root/.local/bin/pipenv sync
RUN /root/.local/bin/pipenv sync
RUN /usr/src/.venv/bin/python -c "import requests; print(requests.__version__)"
FROM docker.io/python:3.9 AS runtime
RUN mkdir -v /usr/src/venv
RUN mkdir -v /usr/src/venv
COPY --from=builder /usr/src/.venv/ /usr/src/venv/
-1
View File
@@ -99,7 +99,6 @@ Basic Concepts
- A virtualenv will automatically be created, when one doesn't exist.
- When no parameters are passed to ``install``, all packages ``[packages]`` specified will be installed.
- To initialize a Python 3 virtual environment, run ``$ pipenv --three``.
- To initialize a Python 2 virtual environment, run ``$ pipenv --two``.
- Otherwise, whatever virtualenv defaults to will be the default.