installing pyqt 4 - not 5 via brew - pyqt

I'm having issues with pyqt, so I thought I'd remove it and re-install it via brew.
However, brew insists on installing pyqt5. Is there a way to force brew to install pyqt4?

Installing via MacPorts worked a treat!

Related

how to install python 3.9.6 using homebrew on Mac m1

Im new to programming and stuff and was looking to install python 3.9.6 using home-brew. To do that would I just have to type in brew install python#3.9 into the terminal, or is there some other way? Thanks!
You can't ensure a specific version 3.9.6 with brew package python#3.9. Homebrew is a package manage designed to get latest pacakge. python#3.9 will be kept updating to the latest patch version 3.9.x.
If you REALLY to stick with specific python version, choose conda (miniconda is preferred) or pyenv.

Can't install TA-LIB?

I'm using Spyder 4.0.1 and Python 3.7 and trying to:
pip install ta-lib
however, after a few cmdwindows pop open and auto-close very quickly at the beginning, nothing seems to be happening and the iPython console is just stick on "pip install ta-lib" with no new In[]: box showing.
I have tried manually stopping and restarting the kernel and then retrying but the same thing happens. Can someone help troubleshoot?
Many thanks!
I don't know which OS you are using, but in MacOS what I did was:
1) Installed ta-lib using brew.
brew install ta-lib
2) Then Ran the pip install TA-Lib command.
The above step should work in most of the cases, but one of my friend was facing some issue with gcc, if you are facing any issue related to gcc, try installing gcc. For installing gcc you can use the command:
brew install gcc
Hope this helps.

pygraphviz multiple edges from the same node aren't working on Mac OS X

I installed dependencies like this.
brew install python
brew install graphviz
pip3 install --user --install-option="--include-path=/usr/local/include/" --install-option="--library-path=/usr/local/lib/" pygraphviz
After that I tried a simple script (copy-pasted from somewhere in the internet). Multiple edges simply are not working! I set strict=False, but it didn't help.
import pygraphviz as pgv
G=pgv.AGraph(strict=False)
G.add_node('a')
G.add_node('b')
G.layout()
G.add_edge('a','b','first')
G.add_edge('a','b','second')
sorted(G.edges(keys=True))
G.draw('file.png')
Everytime I execute this script, what I got is this.
What am I doing wrong?
brew install graphviz --HEAD which installs version graphviz: stable 2.40.1 (bottled), HEAD resolves problem for me.
Other have reported that this issue is bug #162, but it seems to be different problem.

Brew Installing Python3 on El Capitan

I need to install Python3, Pip, and PySerial. I attempted to follow this Stackoverflow thread on installing Python3 via Homebrew. However, when I manually go in and check, Python3 is in:
usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
I am assuming this isn't the proper location? At this point should I install python3 via Homebrew and start over?
Nevermind, I figured it out. A combination of reinstalling python3, and removing unbrewed header files via brew doctor fixed the issue.

`Error: Failed to determine the layout of your Qt installation` when installing pyqt for python3 on Mavericks

Running brew install pyqt --with-python3, I get Error: Failed to determine the layout of your Qt installation. Adding --verbose to the brew script, the problem is that ld can't find -lgcc_s.10.5.
(This is on Mac OS X 10.10.5 Yosemite)
Answering to help other people who encounter this: The solution was to first upgrade XCode to XCode 7.2 and open it once to accept the license and have it install additional components. Then, a brew update and a brew install pyqt --with-python3 finally worked.

Resources