How to install wheels in setup.py

I am creating a project that has dependencies on packages from PyPI. Namely:

['comtypes', 'docx', 'qrcode', 'PyPDF2', 'pyqtgraph', 'PyQt5', 'numpy', 'PIL','opencv-python']

However, some of them (for example opencv-python) contain only wheel files in PyPI. https://pypi.python.org/simple/opencv-python/

In my opinion, setuptools is not compatible with .whl. Is there a way to install dependencies on setup.py, ideally without using pip?

+4
source share
2 answers

I had the same problem. The problem was that I was trying to use

python setup.py develop

. , easy-install , - , .

pip, , setup.py

pip install .

setup.py ! , .

/: easy_install tensorflow-gpu

( ): pip easy_install python setup.py install ?

+1

.whl

pip install <directory>/xxxx.whl

/cmd/powershell

0

Source: https://habr.com/ru/post/1664043/


All Articles