Install wxpython on mac - macos

I am new to Mac, have always used windows and I am confused on how to install wxPython. I downloaded the .dmg file from the website, and it contained three files:
a pkg file, a readme, and an uninstall.py
I opened the pkg file, went through the steps, and Im not sure where it installed after it said "Installation Complete"
Also, I did the import wx in idle, which caused a stacktrace error.
Thanks.

From personal experience on installing wxPython on both Windows 7 and Mac OSX, I found restarting the computer helps out after installation and stacktrace errors appearing in the Shell upon 'import wx'. Sounds simple enough, but it worked for me. If no errors appear after 'import wx', that means wxPython installed correctly. To add to bouke's answer above, the current way to install Python 2.7 via homebrew in Terminal:
brew install python
To install wxPython:
brew install wxpython

At least for development, I would suggest to install (python and) wx using homebrew. It will install version 2.9 and you're ensured that Apple-provided system libraries remain untouched.

Related

Installing PyQt5 Designer on windows

I installed PyQt5 using Windows command window and pip3 install PyQt5 as described in the download page, it was installed successfully. but I didn't found PyQt Designer in the Windows Start Menu so I thought I need to install it separately. After searching various forums, I tried adding it using pip3 install pyqt5-tools it shows Successfully installed pyqt5-tools-5.9.0.1.2 but PyQt Designer wasn't installed.
Is there any way to install PyQt Designer?
My Python version:
>>> python --version
Python 3.5.2 :: Anaconda custom (64-bit)
On windows 10, with Python3.5, and pyqt5, I installed pyqt5-tools using pip:
pip install pyqt5-tools
and the designer was automatically install in the following folder:
"Python directory"\Python35\Lib\site-packages\pyqt5-tools
try this:
pip install pyqt5
pip install pyqt5-tools
Now you'd find the designer in site-packages/pyqt5-tools.
Lib\site-packages\qt5_applications\Qt\bin
I think I found a workaround, first I uninstalled PyQt5 and pyqt5-tools-5.9.0.1.2
pip3 uninstall PyQt5
pip3 uninstall pyqt5-tools-5.9.0.1.2
I went to this page, downloaded the PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe file and installed it normally.
In most cases, due to updates of the packages or some other reasons, "designer tool" will not be in the default location.
If so, you can find it here:
C:\Program Files (x86)\Python37-32\Lib\site-packages\pyqt5_tools\Qt\bin
try
pip install PyQt5Designer It will then be under lib/QtDesigner/designer.exe
this is might be not much helpful but i just wanted to share, I install pyqt5 using pip with the tools as well and couldn't find PyQt Designer in the Windows Start as well coz I searched "pyqt designer". I could find it when i searched "designer" only.
pip install pyqt5-tools
....\venv\Lib\site-packages\qt5_applications\Qt\bin

error while installing Python 2.7.12 "There is a problem with this window installer package"

I want to install Python 2.7.12 but It shows following error.
There is a problem with this window installer package. A program required for this install to complete could not be run.
I saw one youtube video (https://www.youtube.com/watch?v=KikshWVWhzg) and so I provide full access to system and User. Even then, the same problem occurs.
How to solve this problem?
I solved this problem by my own.
Actually what happens is: In past, I installed Python 2.7.10 and by mistake, I deleted python27 file from C drive. But python remains installed in computer and when I tried to uninstall it, It shows the same error as above. So to uninstall this,
first I download similar python file (python2.7.10ci) version and try to install it. And you see it got installed. Due to this a file get generated in C drive with name python27 and now I can uninstalled python which I installed a long time back.
After uninstalling old python2.7.10, I right click on python 2.7.10ci (in control panel ) and choose repair. Due to this again a file generated with python27 and now I uninstalled this too easily.
After doing all this, I downloaded python 2.7.12 and try to install. And I able to install this without any error.

Installing Wxpython on mac

I am trying to install wxpython on mac os. I have already tried following solution. I have already enables software installation from all sources
a) Downloaded the binary for mac and tried to install it. It says no software found to install at the last step.
b) I tried using brew to install. The brew command works find but when when I tried import wx it says no module found.
Can you specify how to get rid of this error? My mac version is 10.11.5 I am using python 2.7
Try using the installer found here: https://wxpython.org/snapshots/. It is a current (as of 2 weeks ago) snapshot of the code, modified to use the newer Installer Package format.

How to install System Python 2.7 on a Mac

I need to know How to install System Python 2.7 on my Mac. This is because, I unknowingly uninstalled it (I thought I was removing the Python I downloaded from Python.org)
I followed this Stack Overflow answer, and after the damage had been done, I read the comments telling me NOT TO do that.
The current reason I am wanting to install System Python 2.7 is because it is needed to install PyGame. Below is a screenshot of what I am facing when trying to install PyGame:
I recommend installing packages on OS X using Homebrew as it keeps everything you install in one place. Allowing you to upgrade or uninstall easily and not needing to remember how or where you installed it.
Once it is installed you simply type brew install python in your terminal. This will install Python 2.7.10 and it will be available at /usr/local/bin/python.
The only supported way to restore the system Python framework on macOS is to reinstall the operating system. It is treated as a component of the core operating system, so there is no way to selectively reinstall it.

git-cola will not run on windows

I have installed git-cola using the setup installer for windows. I pointed it to proper installs of git and python.
When I try to launch git-cola, nothing happens whatsoever.
Is there something I am missing here?
I had the same problem, in my case it was missing PyQt4 library. You can install PyQt4 by downloading an appropriate installer from Binary Packages section on PyQt4 Riverbank website.
How I investigated the issue
When I installed git-cola in a default directory and tried to run it using a command line
C:\Program Files (x86)\git-cola\bin>python git-cola.pyw
I got
Sorry, you do not seem to have PyQt4 installed.
Please install it before using git-cola.
e.g.: sudo apt-get install python-qt4
Note
I have two Python 2.7 installations, one at c:\program\Python27 and another at C:\Users\UserName\Anaconda2, I used the first one. I also installed Python SIP some time ago, I'm not sure if it required by git-cola.

Resources