Cannot install wxPython on Anaconda Python

I installed Anaconda Python on my RHEL6 system. To run gnuradio, I need wxPython. For this reason I did

conda install wxpython

The problem is that I am trying to import a Wx module into python. Then the following error occurs:

>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/scr1/nemanja/install/anaconda/lib/python2.7/site-packages/wx-3.0-gtk2/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/scr1/nemanja/install/anaconda/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 4, in <module>
import _core_
ImportError: /scr1/nemanja/install/anaconda/lib/python2.7/site-packages/wx-3.0-gtk2/wx/../../../../libwx_gtk2u-3.0.so.0: undefined symbol: g_malloc_n

What is missing here?

+4
source share
3 answers

I had a small python script that was used by wx many years ago and recently started using anaconda. Then I ran into the same problem when I tried to run the script using python anaconda since it did not include the wx package. To try to figure out the problem, I did the following:

binstar search -t conda wxpython

(.. wxpython), , . :

conda install -c anaconda wxpython = ()

3.0 () Windows 7.

+3

WX Anaconda.

Windows 7, Anaconda 4.3.22 wxPython 4.0.0a2.

#Did'nt work in my case.
$conda install -c anaconda wxpython=(version)

, , , . Wxpython , Python 2 Anaconda Python 3.

"Anaconda Prompt".

$conda install -c melund wxpython=4.0.0a2

.

+2

, wx GNU Radio. WX Qt Widgets, WX. , , wx:

Now it seems that the version of wacpython anoconda is broken. I would say: ignore and delete this, just use the one that should be accessible via EPEL. This will work better, especially since GNU Radio is likely to be better connected with things that are installed correctly using yum/ rpm.

0
source

Source: https://habr.com/ru/post/1609932/


All Articles