pip defining wrong entry point versions on python 2.7
See original GitHub issueEnvironment
- pip version: 9.0.3, 10.0.1
- Python version: 2.7.15
- OS: Linux, RHEL Workstation 6.9 (system python == 2.6.6, no python3)
Description
On installation on Python 2.7 pip creates console scripts pip, pip2, pip2.7.
However pip defines console_scripts
pip, pip3, pip3.6 in entry_points.txt
Expected behavior
pip should define console_scripts
entry points pip, pip2, pip2.7
How to Reproduce
- Download Python2.7.15.tgz
- Run
configure
with--with-ensurepip=install
,make
,make install
- In installation directory run
./python -c "import pkg_resources; print(', '.join(
pkg_resources.get_distribution('pip').get_entry_map()['console_scripts']))"
- Output is:
pip, pip3.6, pip3
- File
lib/python2.7/site-packages/pip-9.0.3.dist-info/entry_points.txt
contains:
[console_scripts]
pip = pip:main
pip3 = pip:main
pip3.6 = pip:main
./python -m pip install --upgrade pip
- Rerun command to list entry points. Output still is
pip, pip3.6, pip3
- File
lib/python2.7/site-packages/pip-10.0.1.dist-info/entry_points.txt
contains:
[console_scripts]
pip = pip._internal:main
pip3 = pip._internal:main
pip3.6 = pip._internal:main
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Dealing with multiple Python versions and PIP? - Stack Overflow
This is incorrect. I'm running pip 1.2.1 with Python2.7 on Ubuntu, and there are no alternative pip versions. – Cerin.
Read more >Entry points specification - Python Packaging User Guide
Entry points are a mechanism for an installed distribution to advertise components it provides to be discovered and used by other code. For...
Read more >Building .pex files — pex 2.1.119 documentation
bdist_pex is to build an executable using the console script of the same name as the package. For example, pip has three entry...
Read more >Using Python's pip to Manage Your Projects' Dependencies
The latest version of pip that ensurepip can install is the version that's bundled in your environment's Python installation. For example, ...
Read more >Using pip to install Python 2 modules
This usually means you're using a Python version older than 2.7.9. To fix this, install these three Python packages to update older libraries....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep, I don’t have a stake in this any more.
Can this be closed now Python 2.7 support is being dropped (https://github.com/pypa/pip/issues/6148)?