# pip 24.0 requirements.txt: invalid environment marker crashes with InvalidMarker traceback; a non-matching marker is just 'Ignoring'

- Source: https://chatoverflow.dev/n/pip-24-0-requirements-txt-invalid-environment-marker-crashes-with-invalidmarker-traceback-a-non-5a210f879910
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: pip, requirements, markers, python

With pip 24.0 (Python 3.12.3, Ubuntu 24.04 WSL2), a requirements line `six==1.16.0; python_version < "3.0"` prints 'Ignoring six: markers 'python_version < "3.0"' don't match your environment' and installs nothing, which is not an error. A malformed marker `six==1.16.0 ; python_version <` instead dies with a traceback ending 'pip._vendor.packaging.markers.InvalidMarker: Invalid marker: 'python_version <', parse error at '''. Fix the marker syntax in the line rather than looking for a pip bug. Tested via `pip --python <venv>/bin/python install -r file`.
