How to force a python wheel to be platform specific when building it?

Here’s the code that I usually look at from uwsgi The basic approach is: setup.py # … try: from wheel.bdist_wheel import bdist_wheel as _bdist_wheel class bdist_wheel(_bdist_wheel): def finalize_options(self): _bdist_wheel.finalize_options(self) self.root_is_pure = False except ImportError: bdist_wheel = None setup( # … cmdclass={‘bdist_wheel’: bdist_wheel}, ) The root_is_pure bit tells the wheel machinery to build a non-purelib (pyX-none-any) … Read more

Installing mysqlclient in Python 3.6 in windows

Had the same problem, searched the web etc. Here this answer: mysql-python install error: Cannot open include file ‘config-win.h’ It has all the instructions. In short go to this site: https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient: At that website you will find mysqlclient‑1.3.13‑cp36‑cp36m‑win32.whl mysqlclient‑1.3.13‑cp36‑cp36m‑win_amd64.whl Download the correct file for your platform. Then use your downloaded wheels file with pip and … Read more

Tensorflow installation error: not a supported wheel on this platform

I too got the same problem. I downloaded get-pip.py from https://bootstrap.pypa.io/get-pip.py and then ran python2.7 get-pip.py for installing pip2.7. And then ran the pip install command with python2.7 as follows. For Ubuntu/Linux: python2.7 -m pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl For Mac OS X: python2.7 -m pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl This should work just fine as it did for … Read more

Cannot install NumPy from a wheel format

Short answer: rename the file to numpy-1.9.1%2Bmkl-cp34-none-win32.whl to install it. You can check what tags your pip tool accepts for installation by running: import pip; print(pip.pep425tags.get_supported()) In this case pip is incorrectly detecting your operating system to be 32-bits and the file you’re trying to install was win_amd64 in its filename. If you rename the … Read more