[Distutils] installing pip or at least modules on mac

Matthew Brett matthew.brett at gmail.com
Sun May 21 07:23:19 EDT 2017


Hi,

On Sun, May 21, 2017 at 12:01 AM, Sébastien Turrel
<sebastienturr at gmail.com> wrote:
> iMac-de-Sebastien:3.5 sebastienturrel$ cd bin
> iMac-de-Sebastien:bin sebastienturrel$ ls
> 2to3            pydoc3            python3.5-config
> 2to3-3.5        pydoc3.5        python3.5m
> easy_install-3.5    python3            python3.5m-config
> idle3            python3-32        pyvenv
> idle3.5            python3-config        pyvenv-3.5
> pip3            python3.5
> pip3.5            python3.5-32
> iMac-de-Sebastien:bin sebastienturrel$ pip3.5
>
> Usage:
>   pip <command> [options]
>
> Commands:
>   install                     Install packages.
>   download                    Download packages.
>   uninstall                   Uninstall packages.
>   freeze                      Output installed packages in requirements
> format.
>   list                        List installed packages.
>   show                        Show information about installed packages.
>   check                       Verify installed packages have compatible
> dependencies.
>   search                      Search PyPI for packages.
>   wheel                       Build wheels from your requirements.
>   hash                        Compute hashes of package archives.
>   completion                  A helper command used for command completion.
>   help                        Show help for commands.
>
> General Options:
>   -h, --help                  Show help.
>   --isolated                  Run pip in an isolated mode, ignoring
>                               environment variables and user configuration.
>   -v, --verbose               Give more output. Option is additive, and can
> be
>                               used up to 3 times.
>   -V, --version               Show version and exit.
>   -q, --quiet                 Give less output. Option is additive, and can
> be
>                               used up to 3 times (corresponding to WARNING,
>                               ERROR, and CRITICAL logging levels).
>   --log <path>                Path to a verbose appending log.
>   --proxy <proxy>             Specify a proxy in the form
>                               [user:passwd@]proxy.server:port.
>   --retries <retries>         Maximum number of retries each connection
> should
>                               attempt (default 5 times).
>   --timeout <sec>             Set the socket timeout (default 15 seconds).
>   --exists-action <action>    Default action when a path already exists:
>                               (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
>   --trusted-host <hostname>   Mark this host as trusted, even though it does
>                               not have valid or any HTTPS.
>   --cert <path>               Path to alternate CA bundle.
>   --client-cert <path>        Path to SSL client certificate, a single file
>                               containing the private key and the certificate
>                               in PEM format.
>   --cache-dir <dir>           Store the cache data in <dir>.
>   --no-cache-dir              Disable the cache.
>   --disable-pip-version-check
>                               Don't periodically check PyPI to determine
>                               whether a new version of pip is available for
>                               download. Implied with --no-index.
> iMac-de-Sebastien:bin sebastienturrel$ install PyPDF2

Here you're running the 'install' system command.  What you want is to
run the pip 'install' subcommand:

On my machine:

$ pip install PyPDF2
Collecting PyPDF2
  Downloading PyPDF2-1.26.0.tar.gz (77kB)
    100% |████████████████████████████████| 81kB 824kB/s
Installing collected packages: PyPDF2
  Running setup.py install for PyPDF2 ... done
Successfully installed PyPDF2-1.26.0

Best,

Matthew


More information about the Distutils-SIG mailing list