Download and import Python modules without Pip.
- Some libraries may have a different final import. Check their usage first.
- Download ri.py and save it to your project directory.
- In your
main.py
file,import ri
and follow the steps below based on where the main module is:- Github: For github you can have
gh@
and then whatever yourraw.githubusercontent.com/
link is after. So an example would be:ri.im("gh@monitio/rusl/refs/heads/main/dist/RAW/Python/rusl.py")
(rusl uses this instead of pip!) - Any where else: You will need to have the long URL like:
https://raw.githubusercontent.com/monitio/rusl/refs/heads/main/dist/RAW/Python/rusl.py
- Github: For github you can have
- Import the module like you would with any other normal python library:
import fileName
(remember to change the name as what the file is called so if it ismodule.py
you would doimport module
) - Use the library as normal!