By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,327 Members | 2,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,327 IT Pros & Developers. It's quick & easy.

Cannot use pmw widgets for python

P: 1
I just installed the pmw widgets package using the included into my python 2.7.13 site-packages folder. when I try to import pmw from a python console prompt, it causes the following import error:

File "<stdin>", line 1, in <module>
ImportError: No module named pmw

I have looked at the files that were installed and there is no Does anybody know what needs to be done to eliminate this problem?
Feb 25 '17 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 618
First, it is always best to use the distro's native installer instead of downloading from some third party. Pmw is installed in /usr/lib64/python/site-packages on my Slackware box. It may also be in /usr/lib/... or /usr/local/lib(64)... Where ever it is it has to be somewhere in the Python Path. You can print the path with
Expand|Select|Wrap|Line Numbers
  1. import sys
  2. print sys.path 
edit: it is
import Pmw (note the capital "P")
Feb 26 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.