user-grinch / PyLoader

Python script loader for Grand Theft Auto San Andreas
GNU General Public License v3.0
29 stars 5 forks source link

How to import site-packages? #3

Closed mgmoldova closed 3 years ago

mgmoldova commented 3 years ago

I want to use pandas library in my script. How to install it in PyLoader/python38?

user-grinch commented 3 years ago

Aight so, you'll need to rebuild the plugin & extension with the lastest commit. After that go into the PyLoader\lib folder in cmd and run pip install <package_name> -t . (assuming you have pip installed). You should be able to use your modules as usual after that.

import numpy as np
while True:
    common.wait(0)

    if common.key_pressed(0xA0):
            a = np.arange(10,25,5)
            print(a)
mgmoldova commented 3 years ago

Thanks!