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?
Asked
Active
Viewed 356 times
1
-
1Perhaps 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