简体   繁体   中英

PyCharm how to include wxPython library path/Can I download wxPython?

I've tried so many times to find this pathing but to no avail(link: How do I import modules in pycharm? ) I think it's because I'm using a newer version of PyCharm, but here is my project Interpreter: 我的项目翻译

I don't see the + path anywhere in here, and I have downloaded a version of wxPython on my computer that I want to wire the path to. In the url link's first answer, he says to add a path, but I don't even see the path tab in my default settings.

I tried downloading wxPython using the project interpreter, but this is what I get: 错误

And I searched for a while to find out that perhaps PyPi does not support wxPython(maybe I'm wrong on this, but: https://github.com/kliment/Printrun/issues/535 ,here it says to download the wxPython binary instead because the project interpreter does not support wxPython). I was able to successfully download numpy and matplotlib, so I was quite confused when I couldn't download wxpython.

So now I'm stuck, because I can't add a path to my wxPython(inside of wxMac folder), and I can't download wxPython directly. The only other way I can think of is manually copying and pasting the wxmac folder into my virtualenv folder's bin, but I'm afraid of not copy pasting the right thing into the right directory.

What is going on? Any help would be greatly appreciated!

You should just download the appropriate wxPython binary for your OS and install it that way instead of using PyCharm. I have had no problems installing wxPython on Windows, Linux or Mac doing it this way.

wxPython is currently not on PyPI. The beta version of wxPython, known as wxPython Phoenix, supports pip . The regular version of wxPython (classic) uses just binaries or you can build from source. Note that wxPython Phoenix doesn't have all the widgets that Classic does. It just has the core widgets plus a number of others. You can read more about Phoenix here:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM