1

I have some python command for installing a specific wheel that would otherwise not be installed by just running pip directly on a requirements.txt file. Is there a way to incorporate this command as part of this or another file to be run on startup?

duppydodah
  • 165
  • 1
  • 3
  • 17
  • 1
    Perhaps you are looking for something like this: https://stackoverflow.com/questions/58312692/create-a-python-script-that-install-python-modules-and-run-some-commands. – CypherX Jun 26 '20 at 02:42
  • If i make some .sh file I would have to run the file through my bash.exe interpreter, vs python I assume? – duppydodah Jun 26 '20 at 02:46
  • You can run a bash script from python: https://stackoverflow.com/questions/13745648/running-bash-script-from-within-python – CypherX Jun 26 '20 at 02:49
  • Does subprocess work with bash commands as well? (not just scripts) – duppydodah Jun 26 '20 at 02:52
  • Yes. You can check: `subprocess.run('ls')` or `subprocess.call('ls')` will enlist all the folder contents in your current folder. – CypherX Jun 26 '20 at 02:55
  • okay perfect thanks – duppydodah Jun 26 '20 at 03:03

0 Answers0