This is what I'm trying to do.
But after that problem resolved, I had this error: ImportError: No module named 'multiply'
. What I could figure out was that I had to add the location of my module to PYTHONPATH
.
I couldn't find PYTHONPATH
in System variables
list, so I created one (as mentioned here), added all the paths including the one I needed, but it didn't solve the problem.
So, I re-installed all the features of Python, even the ones I didn't earlier. Everywhere I read solutions, there is only written set this like this
or something similar but no-one says where they are defined or how they work.
Hence my question arises why can't I find variables like PYTHONPATH
or PYTHONHOME
in System variables
while Python says they can be set or where are they defined?
Can anyone explain how do environment variables (mentioned in Python's documentation) work?
How can I solve my 'ImportError`?