In my linux build, the python c folder is in

/usr/lib 

I downloaded: wxPython-src-2.8.8.0.tar.bz2 unpacked, then I just do

 ./configure make make install 

but when you try to do it after installation in python:

 import wx 

I have an error:

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

I haven’t put anything out of the source code for a long time and is not very strong in Linux, but as far as I remember, you need to specify --prefix='путь' for ./configure but what is the path? or somehow it is done

  • one
    I can lie, there is a default like / usr / local, respectively - / usr, it is better to look at the README or INSTALL in the root of the distribution (but I do not like this option). You can create the PYTHONPATH variable (it adds directories, and not only directories, to the module search path - alexlz
  • it still did not help :( - G71
  • @ G71 And what did not help? - alexlz 2:49 pm
  • Well, I tried --prefix "/ usr" to specify - G71
  • I’m lazy to reproduce the situation in me (1) and (2) I don’t inspire optimism at all in / usr. Read what's in the README / INSTALL. In the end, they are written in order to read them ... - alexlz

1 answer 1

First you need to delete what you had to “decompose” on the file system:

 $ sudo make uninstall 

then delete the collected:

 $ make clean 

and then run configure with the necessary parameters:

 $ ./configure --prefix=/usr 

and further on the list.