Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7174649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:06:06+00:00 2026-05-28T16:06:06+00:00

I want to run drpython but it can’t find the wxpython library that I

  • 0

I want to run drpython but it can’t find the wxpython library that I installed:

C:\Users\Niklas\Desktop\DrPython>python drpython.pyw
Traceback (most recent call last):
  File "drpython.pyw", line 35, in <module>
    import drpython
  File "C:\Users\Niklas\Desktop\DrPython\drpython.py", line 48, in <module>
    import wx, wx.stc
ImportError: No module named wx

What can I do to resolve this? I use Windows 7 and on Ubuntu this is working.
I installed wx but the python interpreter can’t find the wx module:

Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named wx
>>>

My path is

C:\Users\Niklas>echo %PATH%
C:\Program Files (x86)\ActiveState Komodo IDE 6\;C:\Windows\system32;C:\Windows;
C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files (x86)\Hewlett-Packard\HP ProtectTools Security Manager\Bin\;C:\Program Fil
es (x86)\Intel\Services\IPT\;C:\Program Files\Mercurial\;C:\Program Files\Tortoi
seHg\;C:\python27\;C:\Program Files (x86)\Google\google_appengine\;C:\python27\L
ib\site-packages;C:\python27

My sys.path is

>>> import sys
>>> sys.path
['', 'C:\\Windows\\system32\\python27.zip', 'C:\\python27\\DLLs', 'C:\\python27\
\lib', 'C:\\python27\\lib\\plat-win', 'C:\\python27\\lib\\lib-tk', 'C:\\python27
', 'C:\\python27\\lib\\site-packages']
>>>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:06:06+00:00Added an answer on May 28, 2026 at 4:06 pm

    What’s relevant here is sys.path – not the environment %PATH%.

    E.g.:

    In [45]: sys.path
    Out[45]: 
    ['',
     '/usr/bin',
     '/usr/lib/python2.7/site-packages/django_debug_toolbar-0.9.1-py2.7.egg',
     '/usr/lib/python27.zip',
     '/usr/lib/python2.7',
     '/usr/lib/python2.7/plat-linux2',
     '/usr/lib/python2.7/lib-tk',
     '/usr/lib/python2.7/lib-old',
     '/usr/lib/python2.7/lib-dynload',
     '/usr/lib/python2.7/site-packages',
     '/usr/lib/python2.7/site-packages/Numeric',
     '/usr/lib/python2.7/site-packages/PIL',
     '/usr/lib/python2.7/site-packages/gst-0.10',
     '/usr/lib/python2.7/site-packages/gtk-2.0',
     '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info',
     '/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode',
     '/usr/lib/python2.7/site-packages/IPython/Extensions',
     u'/home/alf/.ipython']
    

    If you want to influence sys.path from the environment, ther relevant variable is %PYTHONPATH%.

    You can also import a module given it’s full path – but it gets trickier – see this thread

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to run javascript/Python/Ruby inside my application. I have an application that creates
I want run a Bash script as root , but delayed. How can I
I want to run maven-install-plugin before dependency check. How can I do that? The
In c program, I want run c++ library function(s), but I don't know how
I want to run a weekly batch process in an asp.net page. How can
I want to run a background task that reads input from a TextReader and
I want to run an Apache on my local machine since I can only
I want to run a jar file in editplus3 but I dont´n know how
I want to run the 'time' unix command from a Python script, to time
I want to run a cron job every minute that will launch a script.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.