+ 1

Running Code Without installing the module?

Let's assume I have a Code that uses an additional Module that isn't Part of the Library. It works fine on my Maschine since I have the module installed. But what if I want to run that Script on a different Maschine. Can I do that Without installing the module? Maybe after compiling the code?

8th Sep 2016, 6:40 PM
Elias Grube
Elias Grube - avatar
1 Respuesta
+ 1
No you can't As Python will search it's path in turn to find the module you're using, if not found all functions defined in the module will be treated as illegal definition means missing You can import is module and use its path to show its lib searching related path. Just copy your module to one of them and import in your code
9th Sep 2016, 5:00 PM
looyea