Ask coding questions

← Back to all posts
Python modules installed but not on PATH, how to add their directory to the PATH?
maxinimize (1)

Hi guys, I had a python script and I want to run it on The script uses a module called "RSA" by "import RSA" directly. When I tried to run it, it says modules are installed but not on PATH. Can someone tell me how to add modules' directory to the PATH. I tried to read the document but haven't find the solution.


leon332157 (68)

According to the message, this is only for the command line executeables, it will not affect the script.

maxinimize (1)

@leon332157 Thanks. I just figured out it's like what u said.

AllAwesome497 (103)

Put the modulename in requirements.txt and it should work