• Home
  • Raw
  • Download

Lines Matching +full:python3 +full:- +full:pip

2 .. _tut-venv:
24 self-contained directory tree that contains a Python installation for a
41 system, you can select a specific Python version by running ``python3`` or
47 python -m venv tutorial-env
49 This will create the ``tutorial-env`` directory if it doesn't exist,
63 tutorial-env\Scripts\activate.bat
67 source tutorial-env/bin/activate
79 .. code-block:: bash
81 $ source ~/envs/tutorial-env/bin/activate
82 (tutorial-env) $ python
88 '~/envs/tutorial-env/lib/python3.5/site-packages']
97 Managing Packages with pip
101 :program:`pip`. By default ``pip`` will install packages from the `Python
105 ``pip`` has a number of subcommands: "install", "uninstall",
106 "freeze", etc. (Consult the :ref:`installing-index` guide for
107 complete documentation for ``pip``.)
111 .. code-block:: bash
113 (tutorial-env) $ python -m pip install novas
115 Downloading novas-3.1.1.3.tar.gz (136kB)
118 Successfully installed novas-3.1.1.3
123 .. code-block:: bash
125 (tutorial-env) $ python -m pip install requests==2.6.0
127 Using cached requests-2.6.0-py2.py3-none-any.whl
129 Successfully installed requests-2.6.0
131 If you re-run this command, ``pip`` will notice that the requested
134 -m pip install --upgrade`` to upgrade the package to the latest version:
136 .. code-block:: bash
138 (tutorial-env) $ python -m pip install --upgrade requests
142 Uninstalling requests-2.6.0:
143 Successfully uninstalled requests-2.6.0
144 Successfully installed requests-2.7.0
146 ``python -m pip uninstall`` followed by one or more package names will
149 ``python -m pip show`` will display information about a particular package:
151 .. code-block:: bash
153 (tutorial-env) $ python -m pip show requests
154 ---
155 Metadata-Version: 2.0
159 Home-page: http://python-requests.org
161 Author-email: me@kennethreitz.com
163 Location: /Users/akuchling/envs/tutorial-env/lib/python3.4/site-packages
166 ``python -m pip list`` will display all of the packages installed in
169 .. code-block:: bash
171 (tutorial-env) $ python -m pip list
174 pip (7.0.3)
178 ``python -m pip freeze`` will produce a similar list of the installed packages,
179 but the output uses the format that ``python -m pip install`` expects.
182 .. code-block:: bash
184 (tutorial-env) $ python -m pip freeze > requirements.txt
185 (tutorial-env) $ cat requirements.txt
192 necessary packages with ``install -r``:
194 .. code-block:: bash
196 (tutorial-env) $ python -m pip install -r requirements.txt
197 Collecting novas==3.1.1.3 (from -r requirements.txt (line 1))
199 Collecting numpy==1.9.2 (from -r requirements.txt (line 2))
201 Collecting requests==2.7.0 (from -r requirements.txt (line 3))
205 Successfully installed novas-3.1.1.3 numpy-1.9.2 requests-2.7.0
207 ``pip`` has many more options. Consult the :ref:`installing-index`
208 guide for complete documentation for ``pip``. When you've written
210 consult the :ref:`distributing-index` guide.