0

成功安装 Python 后,我找不到 pip 可执行文件。/usr/local/lib/python3.4/site-packages/pip 的内容是:

-rw-r--r--. 1 root root  9450 Oct 26 10:29 __init__.py
-rw-r--r--. 1 root root   116 Oct 26 10:29 __main__.py
-rw-r--r--. 1 root root  9507 Oct 26 10:29 cmdoptions.py
-rw-r--r--. 1 root root  8162 Oct 26 10:29 baseparser.py
-rw-r--r--. 1 root root  6578 Oct 26 10:29 basecommand.py
-rw-r--r--. 1 root root  2969 Oct 26 10:29 pep425tags.py
-rw-r--r--. 1 root root  9455 Oct 26 10:29 log.py
-rw-r--r--. 1 root root  6202 Oct 26 10:29 locations.py
-rw-r--r--. 1 root root 40403 Oct 26 10:29 index.py
-rw-r--r--. 1 root root  1086 Oct 26 10:29 exceptions.py
-rw-r--r--. 1 root root 22580 Oct 26 10:29 download.py
-rw-r--r--. 1 root root 24172 Oct 26 10:29 util.py
-rw-r--r--. 1 root root   116 Oct 26 10:29 status_codes.py
-rw-r--r--. 1 root root   431 Oct 26 10:29 runner.py
-rw-r--r--. 1 root root 83557 Oct 26 10:29 req.py
-rw-r--r--. 1 root root 20618 Oct 26 10:29 wheel.py
drwxr-xr-x. 3 root root  4096 Oct 26 10:29 vcs
drwxr-xr-x. 3 root root  4096 Oct 26 10:29 commands
drwxr-xr-x. 8 root root  4096 Oct 26 10:29 _vendor
drwxr-xr-x. 3 root root  4096 Oct 26 10:29 backwardcompat
drwxr-xr-x. 2 root root  4096 Oct 26 10:29 __pycache__

我该如何使用它?

4

1 回答 1

1

来自https://docs.python.org/3.4/installing/index.html

pip 是首选的安装程序。从 Python 3.4 开始,它默认包含在 Python 二进制安装程序中。

在 python 3.4 之前,pip 是一个“单独的包”,只是被称为“pip”。
因为他们现在已经将它包含在 python 安装程序中,并且系统上之前可能已经安装了其他版本的 pip,所以 python 3.4 附带的新 pip 被命名为 pip3.4 以便能够轻松区分不同的 pip 版本。

另请参阅https://docs.python.org/3/whatsnew/3.4.htmlhttp://bugs.python.org/issue20139

于 2014-10-26T18:16:14.873 回答