Python pip install with --system failing when compiling on submission


#1

Just wanted to post this here for notification.
Will try again as per the “Rust bot fails to compile” thread
Given README said to use the --system flag. Rechecked the docs/repo and this remains the same.

== Contents of my install.sh
#!/bin/bash python3.6 -m pip install --system --target . scipy

== Error given
Possible errors running install.sh. stdout output as follows:
End of install.sh stdout. stderr as follows:
Usage:
/usr/bin/python3.6 -m pip install [options] [package-index-options] …
/usr/bin/python3.6 -m pip install [options] -r [package-index-options] …
/usr/bin/python3.6 -m pip install [options] [-e] …
/usr/bin/python3.6 -m pip install [options] [-e] …
/usr/bin/python3.6 -m pip install [options] <archive url/path> …

no such option: --system
End of install.sh output.


#2

This is what I do:

install.sh

#!/bin/bash

python3.6 -m pip install --user -r requirements.txt

with a standard pip requirements.txt listing packages and versions


#3

Thanks. I’ve just been following their instructions but I’ll probably end up trying that. Doesn’t seem to work when I try to submit again with the same install.sh

From the README:

  • For Python, you may install packages using pip, but you may not install to the global package directory. Instead, install packages as follows: python3.6 -m pip install --system --target . numpy