Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
1d52096d
Kaydet (Commit)
1d52096d
authored
Eyl 06, 2014
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22295: Adopt 'python -m pip' as the preferred invocation
üst
af117ed3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
12 deletions
+39
-12
index.rst
Doc/distributing/index.rst
+11
-2
glossary.rst
Doc/glossary.rst
+8
-0
index.rst
Doc/installing/index.rst
+20
-10
No files found.
Doc/distributing/index.rst
Dosyayı görüntüle @
1d52096d
...
@@ -93,9 +93,18 @@ is important to have standard tools that work consistently, even on older
...
@@ -93,9 +93,18 @@ is important to have standard tools that work consistently, even on older
versions of Python.
versions of Python.
The currently recommended build and distribution tools can be installed
The currently recommended build and distribution tools can be installed
using ``pip``
::
by invoking the ``pip`` module at the command line
::
pip install setuptools wheel twine
python -m pip install setuptools wheel twine
.. note::
For POSIX users (including Mac OS X and Linux users), these instructions
assume the use of a :term:`virtual environment`.
For Windows users, these instructions assume that the option to
adjust the system PATH environment variable was selected when installing
Python.
The Python Packaging User Guide includes more details on the `currently
The Python Packaging User Guide includes more details on the `currently
recommended tools`_.
recommended tools`_.
...
...
Doc/glossary.rst
Dosyayı görüntüle @
1d52096d
...
@@ -857,6 +857,14 @@ Glossary
...
@@ -857,6 +857,14 @@ Glossary
dictionary view to become a full list use ``list(dictview)``. See
dictionary view to become a full list use ``list(dictview)``. See
:ref:`dict-views`.
:ref:`dict-views`.
virtual environment
A cooperatively isolated runtime environment that allows Python users
and applications to install and upgrade Python distribution packages
without interfering with the behaviour of other Python applications
running on the same system.
See also :ref:`scripts-pyvenv`
virtual machine
virtual machine
A computer defined entirely in software. Python's virtual machine
A computer defined entirely in software. Python's virtual machine
executes the :term:`bytecode` emitted by the bytecode compiler.
executes the :term:`bytecode` emitted by the bytecode compiler.
...
...
Doc/installing/index.rst
Dosyayı görüntüle @
1d52096d
...
@@ -40,6 +40,10 @@ Key terms
...
@@ -40,6 +40,10 @@ Key terms
*
``
pyvenv
``
is
the
standard
tool
for
creating
virtual
environments
,
and
has
*
``
pyvenv
``
is
the
standard
tool
for
creating
virtual
environments
,
and
has
been
part
of
Python
since
Python
3.3
.
Starting
with
Python
3.4
,
it
been
part
of
Python
since
Python
3.3
.
Starting
with
Python
3.4
,
it
defaults
to
installing
``
pip
``
into
all
created
virtual
environments
defaults
to
installing
``
pip
``
into
all
created
virtual
environments
*
``
virtualenv
``
is
a
third
party
alternative
(
and
predecessor
)
to
``
pyvenv
``.
It
allows
virtual
environments
to
be
used
on
versions
of
Python
prior
to
3.4
,
which
either
don
't provide ``pyvenv`` at all, or
aren'
t
able
to
automatically
install
``
pip
``
into
created
environments
.
*
the
`
Python
Package
Index
<
https
://
pypi
.
python
.
org
/
pypi
>`
__
is
a
public
*
the
`
Python
Package
Index
<
https
://
pypi
.
python
.
org
/
pypi
>`
__
is
a
public
repository
of
open
source
licensed
packages
made
available
for
use
by
repository
of
open
source
licensed
packages
made
available
for
use
by
other
Python
users
other
Python
users
...
@@ -63,27 +67,33 @@ Basic usage
...
@@ -63,27 +67,33 @@ Basic usage
===========
===========
The
standard
packaging
tools
are
all
designed
to
be
used
from
the
command
The
standard
packaging
tools
are
all
designed
to
be
used
from
the
command
line. For Windows users, the examples below assume that the option to
line
.
adjust the system PATH environment variable was selected when installing
Python. For Linux users, the command to install into the system version of
Python 3 is likely to be ``pip3`` rather than ``pip``.
The
following
command
will
install
the
latest
version
of
a
module
and
its
The
following
command
will
install
the
latest
version
of
a
module
and
its
dependencies
from
the
Python
Package
Index
::
dependencies
from
the
Python
Package
Index
::
pip install SomePackage
python
-
m
pip
install
SomePackage
..
note
::
For
POSIX
users
(
including
Mac
OS
X
and
Linux
users
),
the
examples
in
this
guide
assume
the
use
of
a
:
term
:`
virtual
environment
`.
For
Windows
users
,
the
examples
in
this
guide
assume
that
the
option
to
adjust
the
system
PATH
environment
variable
was
selected
when
installing
Python
.
It
's also possible to specify an exact or minimum version directly on the
It
's also possible to specify an exact or minimum version directly on the
command line::
command line::
pip install SomePackage==1.0.4 # specific version
p
ython -m p
ip install SomePackage==1.0.4 # specific version
pip install 'SomePackage>=1.0.4' # minimum version
p
ython -m p
ip install '
SomePackage
>=
1.0.4
' # minimum version
Normally, if a suitable module is already installed, attempting to install
Normally, if a suitable module is already installed, attempting to install
it again will have no effect. Upgrading existing modules must be requested
it again will have no effect. Upgrading existing modules must be requested
explicitly::
explicitly::
pip install --upgrade SomePackage
p
ython -m p
ip install --upgrade SomePackage
More information and resources regarding ``pip`` and its capabilities can be
More information and resources regarding ``pip`` and its capabilities can be
found in the `Python Packaging User Guide <http://packaging.python.org>`__.
found in the `Python Packaging User Guide <http://packaging.python.org>`__.
...
@@ -120,8 +130,8 @@ User Guide.
...
@@ -120,8 +130,8 @@ User Guide.
... install packages just for the current user?
... install packages just for the current user?
-----------------------------------------------
-----------------------------------------------
Passing the ``--user`` option to ``p
ip install`` will install a package
Passing the ``--user`` option to ``p
ython -m pip install`` will install a
just for the current user, rather than for all users of the system.
package
just for the current user, rather than for all users of the system.
... install scientific Python packages?
... install scientific Python packages?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment