Why doesn't import work for me? - Python -


whenever try import file python, comes error(or similar):

traceback (most recent call last):   file "c:/python33/my files/username save.py", line 1, in <module>     import keyring.py importerror: no module named 'keyring' 

i trying create password storing program, , looking ways keep passwords secure, , said use import keyring, did, except, never works. must doing wrong, whenever python, never works out me. it's if loads have things have been changed on years.

and idea's?

the keyring module not part of python standard library. need install first. installation instructions included.

once installed, use import keyring, not import keyring.py; latter means import py name keyring module or package. python imports should use just name of module, not filename extenion. python can import code more .py python files.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -