V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
daimaosix
V2EX  ›  Python

求问 debian 11 中的 pip 如何配置使用 python2 版本呢?

  •  
  •   daimaosix · Oct 6, 2021 · 1835 views
    This topic created in 1663 days ago, the information mentioned may be changed or developed.

    请问一下,下午从 Debian 10 更新到了 Debian 11,然后发现 Python 没有了,默认是 Python3.9.2,但 pip 还有,pip 跟 pip3 用的都是默认的 python3,怎么把 pip 指向 python2 呢?我看 debian 仓库已经没有 python-pip 了,于是手动安装了一下,发现 pip 还是默认用的 python3,python2 的 pip 怎么装呢?因为程序需要,必须得用 python3 以下版本。

    2 replies    2021-10-15 02:55:54 +08:00
    superrichman
        1
    superrichman  
       Oct 7, 2021   ❤️ 1
    /path/to/python2 -m pip
    Livid
        2
    Livid  
    MOD
    PRO
       Oct 15, 2021 via iPhone   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5650 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 65ms · UTC 08:22 · PVG 16:22 · LAX 01:22 · JFK 04:22
    ♥ Do have faith in what you're doing.