I'm attempting to install pypandoc version 1.4 or higher. I included this requirement in my requirements.txt file. I believe that this is the reason why PySpark installation is failing.
my pip install command:
python -m pip install -r requirements.txt --ignore-installed --exists-action=w --disable-pip-version-check --no-warn-script-location
the output:

In your screenshot, you're installing pypandoc 1.11 (which is newer than 1.1 since version components are compared separately, and 11 > 1).
However, the issue here is that
pypandochasn't been installed, it was just downloaded; if buildingpysparkrequires it, it needs to have been separately installed first. (It should be declared a build dependency forpyspark, but pyspark 2.4.5 is 3 years old, so I doubt they're going to fix that).In other words, first separately install
pypandoc>1.4, then try again; at that pointpypandocshould be importable bypyspark's setup.py.If that still fails with the same symptom, you may need to add
--no-build-isolation.