In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to fix the "ImportError: No module named wxversion" error in Linux, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it together.
Problem: I tried to run a Python application on the so-and-so Linux distribution, but I got the error "ImportError: No module named wxversion." How can I solve this error in the Python program?
Looking for python... 2.7.9-Traceback (most recent call last): File "/ home/dev/playonlinux/python/check_python.py", line 1, in import os, wxversion ImportError: No module named wxversion failed tests
This error indicates that your Python application is based on GUI and depends on a missing module called wxPython. WxPython is an Python extension module for wxWidgets GUI libraries, which is widely used by C++ programmers to design GUI applications. The wxPython extension allows Python developers to easily design and integrate GUI in any Python application.
To resolve this import error, you need to install wxPython on your Linux, as follows:
Install wxPython to Debian,Ubuntu or Linux Mint
$sudo apt-get install python-wxgtk2.8
Install wxPython to Fedora
$sudo yum install wxPython
Install wxPython to CentOS/RHEL
WxPython is available in CentOS/RHEL 's EPEL repository, but not in the base repository. Therefore, first enable the EPEL repository on your system, and then use the yum command to install it.
$sudo yum install wxPython
Install wxPython to Arch Linux
$sudo pacman-S wxpython
Install wxPython to Gentoo
The above $emerge wxPython is all the contents of this article entitled "how to fix the ImportError: No module named wxversion error in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 251
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.