Pyrun allows you to run any Python file, automatically detecting and installing missing libraries to prevent runtime errors.
- Automatic Dependency Detection: Scans the target Python file for required libraries.
- Auto Installation: Installs any missing libraries before running the script.
- Error Handling: Ensures smooth execution without dependency-related interruptions.
- Python 3.x
- pip (Python package installer)
git clone https://github.com/xspoilt-dev/pyrun
cd pyrun
mv pyrun.py pyrun
chmod +x pyrun
mv pyrun /data/data/com.termux/files/usr/bin
- The file has been moved to your bin directory now you can access that from any folder of your termux.
pyrun <file.py>
- The runner script scans the target Python file for import statements.
- It checks if each imported library is installed.
- If any library is missing, it automatically installs it using pip.
- Finally, it runs the target Python script.
- The script assumes that all dependencies can be installed via pip.
- Some libraries might require additional system-level dependencies.
For any questions or suggestions, feel free to open an issue or contact Developer