How do I install pyQt on MacOs, Python 3.5.1? - qt

I already tried installing it with 'brew install pyqt' and the command did it's thing, but I still get an importing error.

You can try to follow this guide:
https://gist.github.com/guillaumevincent/10983814

Related

Unable to install the Rahlir/theme-gruvbox to JupyterLab due to conflicting dependencies

I am currently facing a problem installing a jupyterlab theme that is called rahlir/theme gruvbox.
Since I have installed the jupyterlab extensions and numerous other custom themes I thought that this shouldn't be a
problem.
Although, after many tries, I haven't managed to install it.
The message im getting is this:
Dependency confliction
I have tried using the instructions straight from the github repo but didn't seem to work.
First I tried to install via pip in the command prompt like that:
jupyterlab extension install #ahlir/theme-gruvbox
Unfortunately this didn't work!
After that I tried installng via the extension manager from jupyterlab itself but unfortunately I got the same message!
Note that I have already installed the latest version of jupyterLab and also I have recently update all the packages in my
Anaconda distribution and anaconda itself!
Any help will be greatly appreciated!
Thanks in advance!

AttributeError: module 'scipy.sparse' has no attribute 'coo_array'

Getting this error in my Jupyter Notebook
What would be the best way to fix this utilizing conda instead of pip
I've attempted conda upgrade --all and that didnt seem to work
The scipy.sparse.*_array functions were introduced with v1.8. The networkx package started requiring scipy >=1.8 with v2.7. So, either upgrade SciPy
conda install 'scipy>=1.8'
or downgrade NetworkX:
conda install 'networkx<2.7'
Part of the issue here is that, at the recommendation of a networkx developer, Conda Forge stopped explicitly requiring scipy as a dependency of networkx, and therefore there is no longer any constraint. I opened an issue on the feedstock to revisit coinstallation constraints (run_constrained specifications).
As mentioned in this Github comment, I was trying to calculate the page rank (networkx.pagerank) of a graph on Google Colab when I encountered the same error. After executing the following code, the issue was resolved for me:
!pip install --upgrade scipy networkx
A Side Note: pip install refers to installing packages and leave the package as-is if it is already installed. But the --upgrade flag instructs pip to uninstall anything which is being upgraded/replaced. For more info on this, refer this official doc.
I encountered similar error
I could solve it by installing these versions of newtorkx and scipy:
!pip install 'networkx<2.7'
!pip install 'scipy>=1.8'

No module named 'charset_normalizer.md__mypyc'

I'm using PyInstaller to compile a program and keep coming across the error "No module named 'charset_normalizer.md__mypyc.'" The Charset-Normalizer package is installed.
As a test, I tried re-compiling a program that I had previously created in early September without issue, but now receive the same error. I thought that maybe there is an issue with the versions of either PyInstaller or Charset-Normalizer so I've experimented with different versions, but cannot get it to work.
You are probably missing the "chardet" library
I installed it and it worked.
pip install chardet
I had the EXACT problem. Scripts that I was able to make into executables using Pyinstaller before I could no longer do so again. In my script I used the pdfplumber package, which when you install it also installs other packages like pillow, wand, charset-normalizer, etc.
Since the error was regarding charset-normalizer for me as well, I tried different versions of it. For me it was version 2.1.0 that made the executable work again. Install it with the "pip install charset-normalizer==2.1.0" command: https://pypi.org/project/charset-normalizer/2.1.0/.
If it does not work, go to "Release history" on that link and try another version. Try to remember when was the last time you created a working executable and get the version you think will work for you.
This worked for me:
I just added
from charset_normalizer import md__mypyc
to the top of my python script.
https://stackoverflow.com/a/58449206/20576777
If you don't have the charset-normalizer library installed, then you should install it using the following command:
pip install charset-normalizer
I got it to work by installing older versions of PyInstaller and Charest-Normalizer. Anytime this messages pops-up, consider installing an older version of the package.
Pyinstaller may sometimes miss your dependency. In such a case run pyinstaller with the --collect-all option.
In this case --collect-all charset_normalizer should force pyinstaller to include the dependency.

module 'torch.jit' has no attribute 'unused'

I am a student trying to get my hands into facial recognition using Ultra96 and I am having troubles running my program.
I have tried to install nightly version into my Ultra96 however, it does not solve my problem. The current OS is pynq 2.6 which is Linux and it is using jupyter notebook to run the codes.
Please offer me some guidance!
use torchvision 0.4.0:
pip uninstall torchvision
pip install torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html
This will work for sure
EDIT : if above cmd wont work , use this pip install torchvision==0.4.0

ImportError: cannot import name 'STL' from 'statsmodels.tsa.seasonal'

I have this issue now, I cannot import STL from statsmodels. I've tried to uninstall statsmodels as it was recommended somewhere with a similar issue but it is not possible, at least the way I do it:
!pip uninstall statsmodels - NOT working.
It seems that the STL function from statsmodels is not included in the latest stable version of the library (0.10.2) but is in the dev version (0.11.0dev0).
You can build and install this specific version with this command: pip install git+https://github.com/statsmodels/statsmodels.git
For this you may need a c compiler if you don't already have one, everything is explained here: https://www.statsmodels.org/dev/install.html#installation-from-source
I've also found this package that seems promising: https://github.com/jrmontag/STLDecompose
Use this:
pip install statsmodels==0.12.1

Resources