Should I use PIPWIN or PIP for installing a library? - pip

I was wondering in which scenarios I can use pipwin instead of pip? I am aware that pip is the standard.
From pipwin it states
pipwin is like pip, but it installs precompiled Windows binaries provided by Christoph Gohlke.
Does it offer any advantage if we are sharing our programs after packaging into a EXE with others - using windows?

pip installs from PyPI. pipwin installs from Christoph Gohlke's Unofficial Windows Binaries for Python Extension Packages. Quite often there are more and better compiled wheels at the Christoph's Unofficial site.
Compare, for example, PyAudio (one of the most problematic packages, see how many question there are). At PyPI there're currently wheels for Python 2.7 and 3.4-3.6. At the Christoph's Unofficial site there are wheels for Python 2.7 and 3.4-3.10.
The bottom line is: always consider Christoph's Unofficial site and pipwin when pip install failed to install a package for Windows.

As the description says here https://pypi.org/project/pipwin/
pipwin installs unofficial python package binaries for windows provided by Christoph Gohlke
Always trust the official sources and don't go for unofficial resources especially while working on enterprise applications. Please use only pip

Related

Class RunLoopModeTracker is implemented in both - Qt

Just to precise I'm a total beginner in this. I check on the internet and it seems that nothing match to this problem.
My goal is to run this github which is a facial recognition program: https://github.com/anisayari/easy_facial_recognition
So here is the error:
Class RunLoopModeTracker is implemented in both
/Users/pierre/anaconda3/lib/python3.7/site-packages/cv2/.dylibs/QtCore (0x1086267f0)
and /Users/pierre/anaconda3/lib/libQt5Core.5.9.7.dylib (0x122fc0a80).
One of the two will be used. Which one is undefined.
From what I understand, I just have to indicate which one to use but I don't find anything about how to do it. Also, It seems to be a recurrent error on Mac.
I had this error on my Mac too. Apparently opencv's GUI tools were conflicting with the PYQT libraries that were also installed on my system in my anaconda/lib/ folder. So to give opencv just one set of GUI tools and since I wasn't sure what else was using PYQT in my lib, I chose to use the non-GUI version of opencv, aka opencv-python-headless. I previously had opencv-python-headless installed on my system, and maybe the two packages can't co-exist in the new version of OpenCV or with Catalina.
I removed opencv-python
pip uninstall opencv-python
uninstalled and reinstalled the headless version (which has no GUI tools)
pip uninstall opencv-python-headless
pip install opencv-python-headless
I don't know if it was necessary to remove then reinstall the existing headless package, but that's what I did. I wasn't sure that opencv-headless would find the PYQT in my lib but it didn't have any problems.

Which python can access a pre-compiled version of Quantlib?

I was wondering if anybody knows where such an information is readily available.
Installing an UN-compiled version of QuantLib on Windows is such a hassle that I would rather
modify my python version in order to pip install Quantlib.
Thank You.
You can see the wheels available from PyPI at https://pypi.org/project/QuantLib/#files. Look for the ones with a "win" in their name (e.g., QuantLib-1.16.1-cp37-cp37m-win_amd64.whl, where the cp37 part stands for CPython 3.7 and the amd64 part indicates 64-bit architecture). As of now, there are wheels for 64-bit Python 3.5, 3.6 and 3.7.

Install Julia from Anaconda or as part of JuliaPro

I want to install Julia 1.0.
I have Anaconda installed.
Information found:
In https://anaconda.org/conda-forge/julia, I see at the top of the page conda-forge / packages / julia 1.0.0. Therefore they have the latest version, released on August 8th. Below, one reads: Home: http://julialang.org/. Below the title "Installers", one reads linux-64 and osx-64. (No Windows version is mentioned). To install this package with conda run: conda install -c conda-forge julia. I am a Windows user, so I cannot install Julia 1.0 from Anaconda yet.
JuliaPro can be intalled for free from https://juliacomputing.com/products/juliapro.html.
Question:
For when they become available, what are the relative advantages of the following procedures?: (1) Install JuliaPro independently of Anaconda or (2) Install Julia 1.0 from Anaconda.
At the moment, your best bet is to download the official binary from https://julialang.org/downloads/. As far as I'm aware, the Anaconda version is more or less the same (i.e. it doesn't bundle any packages or IDE). Julia itself doesn't make use of Anaconda (it has its own package manager), so there is no real benefit to installing via Anaconda.
The new JuliaPro should be available in a few weeks, and will include a bundled IDE and pre-installed packages. Until then, you can manually install the Juno IDE yourself to work with the above build.

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.

ZODB 3 for 64 bit windows

I tried to install ZODB3 for 64 bit Python 2.7 with pip. This installation requires a local compiler to compile the BTrees extension. As I do not have the needed MS compiler installed:
Is there a binary 64 bit Windows installer for ZODB on Python 2.7 ? I used Google but did not succeed
Is BTrees really required or can I install ZODB3 without BTrees ?
Cherrs, Uwe.
The ZODB3 package comes with pre-compiled eggs for Windows, see the PyPI page for ZODB3.
You need to tell pip explicitly that it needs to install an egg; it normally does not support installing from an egg:
pip install --egg ZODB3
Alternatively, you could use easy_install instead.
Struggling with ZODB3 easy_install/pip/compiler woes on Windows? Try Christoph Gohlke's "Unofficial Windows Binaries for Python Extension Packages" download page:
64 and 32 bit ZODB3 binaries packaged as .exe installers are available for python 2.5/2.6/2.7: http://www.lfd.uci.edu/~gohlke/pythonlibs/#zodb3
You will need to run the appropriate zope.interface installer from the same source first: http://www.lfd.uci.edu/~gohlke/pythonlibs/#Zope.interface

Resources