2

我正在尝试将 PRAW 包pip2从 2.1.3 更新到最新(2.1.4),但由于某种原因,在找到 2.1.4 版本后,它会再次安装 2.1.3。

% pip2 search praw             
praw                      - PRAW, an acronym for `Python Reddit API Wrapper`, is a python      package that allows for simple access to reddit's API.
  INSTALLED: 2.1.3
  LATEST:    2.1.4

这是详细的日志。我试过做-U--updatesudo pip2 install praw==2.1.4

Downloading/unpacking praw==2.1.4
  Running setup.py egg_info for package praw
    running egg_info
    writing requirements to pip-egg-info/praw.egg-info/requires.txt
    writing pip-egg-info/praw.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/praw.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/praw.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/praw.egg-info/entry_points.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/praw.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/praw.egg-info/SOURCES.txt'
  Requested praw==2.1.4, but installing version 2.1.3
Requirement already satisfied (use --upgrade to upgrade): requests>=1.2.0 in /usr/lib/python2.7/site-packages (from praw==2.1.4)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/site-packages (from praw==2.1.4)
Requirement already satisfied (use --upgrade to upgrade): update-checker>=0.5 in /usr/lib/python2.7/site-packages (from praw==2.1.4)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/site-packages (from update-checker>=0.5->praw==2.1.4)
Installing collected packages: praw
  Found existing installation: praw 2.1.3
    Uninstalling praw:
      Removing file or directory /usr/bin/praw-multiprocess
      Removing file or directory /usr/lib/python2.7/site-packages/praw-2.1.3-py2.7.egg-info
      Removing file or directory /usr/lib/python2.7/site-packages/praw/__init__.py
      Removing file or directory /usr/lib/python2.7/site-packages/praw/__init__.pyc
      Removing file or directory /usr/lib/python2.7/site-packages/praw/decorators.py
      Removing file or directory /usr/lib/python2.7/site-packages/praw/decorators.pyc
      Removing file or directory /usr/lib/python2.7/site-packages/praw/errors.py
      Removing file or directory /usr/lib/python2.7/site-packages/praw/errors.pyc
      Removing file or directory /usr/lib/python2.7/site-packages/praw/handlers.py
      Removing file or directory /usr/lib/python2.7/site-packages/praw/handlers.pyc
      Removing file or directory /usr/lib/python2.7/site-packages/praw/helpers.py
      Removing file or directory /usr/lib/python2.7/site-packages/praw/helpers.pyc
      Removing file or directory /usr/lib/python2.7/site-packages/praw/internal.py
      Removing file or directory /usr/lib/python2.7/site-packages/praw/internal.pyc
      Removing file or directory /usr/lib/python2.7/site-packages/praw/multiprocess.py
      Removing file or directory /usr/lib/python2.7/site-packages/praw/multiprocess.pyc
      Removing file or directory /usr/lib/python2.7/site-packages/praw/objects.py
      Removing file or directory /usr/lib/python2.7/site-packages/praw/objects.pyc
      Removing file or directory /usr/lib/python2.7/site-packages/praw/praw.ini
      Removing file or directory /usr/lib/python2.7/site-packages/praw/settings.py
      Removing file or directory /usr/lib/python2.7/site-packages/praw/settings.pyc
      Removing file or directory /usr/lib/python2.7/site-packages/praw/tests/__init__.py
      Removing file or directory /usr/lib/python2.7/site-packages/praw/tests/__init__.pyc
      Successfully uninstalled praw
  Running setup.py install for praw
    running install
    running build
    running build_py
    running install_lib
    creating /usr/lib/python2.7/site-packages/praw
    copying build/lib/praw/praw.ini -> /usr/lib/python2.7/site-packages/praw
    creating /usr/lib/python2.7/site-packages/praw/tests
    copying build/lib/praw/tests/__init__.py -> /usr/lib/python2.7/site-packages/praw/tests
    copying build/lib/praw/internal.py -> /usr/lib/python2.7/site-packages/praw
    copying build/lib/praw/__init__.py -> /usr/lib/python2.7/site-packages/praw
    copying build/lib/praw/objects.py -> /usr/lib/python2.7/site-packages/praw
    copying build/lib/praw/handlers.py -> /usr/lib/python2.7/site-packages/praw
    copying build/lib/praw/decorators.py -> /usr/lib/python2.7/site-packages/praw
    copying build/lib/praw/settings.py -> /usr/lib/python2.7/site-packages/praw
    copying build/lib/praw/errors.py -> /usr/lib/python2.7/site-packages/praw
    copying build/lib/praw/multiprocess.py -> /usr/lib/python2.7/site-packages/praw
    copying build/lib/praw/helpers.py -> /usr/lib/python2.7/site-packages/praw
    byte-compiling /usr/lib/python2.7/site-packages/praw/tests/__init__.py to __init__.pyc
    byte-compiling /usr/lib/python2.7/site-packages/praw/internal.py to internal.pyc
    byte-compiling /usr/lib/python2.7/site-packages/praw/__init__.py to __init__.pyc
    byte-compiling /usr/lib/python2.7/site-packages/praw/objects.py to objects.pyc
    byte-compiling /usr/lib/python2.7/site-packages/praw/handlers.py to handlers.pyc
    byte-compiling /usr/lib/python2.7/site-packages/praw/decorators.py to decorators.pyc
    byte-compiling /usr/lib/python2.7/site-packages/praw/settings.py to settings.pyc
    byte-compiling /usr/lib/python2.7/site-packages/praw/errors.py to errors.pyc
    byte-compiling /usr/lib/python2.7/site-packages/praw/multiprocess.py to multiprocess.pyc
    byte-compiling /usr/lib/python2.7/site-packages/praw/helpers.py to helpers.pyc
    running install_egg_info
    running egg_info
    writing requirements to praw.egg-info/requires.txt
    writing praw.egg-info/PKG-INFO
    writing top-level names to praw.egg-info/top_level.txt
    writing dependency_links to praw.egg-info/dependency_links.txt
    writing entry points to praw.egg-info/entry_points.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'praw.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'praw.egg-info/SOURCES.txt'
    Copying praw.egg-info to /usr/lib/python2.7/site-packages/praw-2.1.3-py2.7.egg-info
    running install_scripts
    Installing praw-multiprocess script to /usr/bin
    writing list of installed files to '/tmp/pip-NKy2i9-record/install-record.txt'
Successfully installed praw
Cleaning up...

这是在运行 Python 2.7.5 的 Arch Linux 上。

4

1 回答 1

4

您可能有一个陈旧的构建目录。使用 pip 1.4 会更好,但要解决您的问题,您只需将其删除即可。如果您正在使用它,它应该位于 virtualenv 的根目录内。或者在 /tmp/ 如果你不是。

于 2013-07-18T18:45:56.080 回答