-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
auto-lockedOutdated issues that have been locked by automationOutdated issues that have been locked by automation
Description
Environment
- pip version: multiple current versions (19 + 20)
- Python version: 2.7.16
- OS: Raspbian Buster
Description
We faced two cases where pip for Python2 tries to pull wheels from https://piwheels.org/ repo, which is clearly Python3-only. This of course errors out then. This was the case with setuptools
some time ago, was fixed some time later, now it is the case with Markdown
.
Expected behavior
Python2 pip must never pull any wheels from https://piwheels.org/.
How to Reproduce
On RPi running Raspbian Buster:
apt install python-pip python-dev
python <(curl -s https://bootstrap.pypa.io/get-pip.py)
pip install Markdown
Output
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
...
Collecting Markdown>=2.0.1
Downloading https://www.piwheels.org/simple/markdown/Markdown-3.2.1-py2.py3-none-any.whl (88 kB)
|████████████████████████████████| 88 kB 800 kB/s
ERROR: Package 'Markdown' requires a different Python: 2.7.16 not in '>=3.5'
That https://www.piwheels.org/simple is inside the indexes is the core of the issue. Not sure if there is a way to add/remove indexes based on Python version?
For reference (the old and the new appearance have the same above mentioned root of failure): MichaIng/DietPi#3346
Metadata
Metadata
Assignees
Labels
auto-lockedOutdated issues that have been locked by automationOutdated issues that have been locked by automation