4

I tried everything but pyzmq package is not installing.

It stops while trying wheel. I even reinstalled wheel but no result.

I have already installed all basic prereq stuff. I even installed clang and go-lang but nothing works it even shows same error while installing Jupiter notebook too.

enter image description here

enter image description here

  • 1
    it stops while building wheel – farman chauhan Apr 12 '18 at 20:40
  • crypt.h is part of the libc. maybe you should install "libc-dev" even if it might be part of clang package... – Setop Apr 12 '18 at 21:44
  • it turns out the package that actually contains `crypt.h` is `libcrypt-dev`. So to get rid of the error message just run `apt install libcrypt-dev` and then rerun your install – tel Apr 13 '18 at 11:52

2 Answers2

4

You need to install the dev version of the libcrypt package in Termux:

apt install libcrypt-dev

This version of the package includes the required crypt.h header file.

Trying it out

I dug out an old alarm clock/Android tablet I had lying around in order to test this out. I followed the instructions I found in this blog post to install Jupyter. After a bunch of system updates, a bricking:

enter image description here

and an unbricking, I ended up getting the same error that you did, and I solved it by installing the libcrypt-dev package. All of the Python packages were very slow to build in Termux on the tablet, but I did get Jupyter notebook to work:

enter image description here

So it does indeed appear that installing libcrypt-dev fixes the problem.

tel
  • 13,005
  • 2
  • 44
  • 62
  • @farmanchauhan I'm actually trying it out myself right now. My tablet's ancient and uncared for tho, so I gotta wait around for a few system upgrades to download/install first. I'll let you know how it goes – tel Apr 13 '18 at 07:19
2

Installing libzmq in Termux resolved this for me:

pkg install libzmq
Endogen
  • 589
  • 2
  • 12
  • 24
  • 1
    Thanks. Installing `libzmq` explicitly worked and I stopped getting error for python wheel build and was able to install jupyter. – Rajesh Swarnkar Dec 31 '21 at 10:31