19

When I try pip install streamlit it fails with the error message:

ERROR: "Could not build wheels for pyarrow which use PEP 517 and cannot be installed directly"

I tried installing pip install pyarrow directly but still gives the same error message

Rohit Lal
  • 2,791
  • 1
  • 20
  • 36
Ijegwa Acheme
  • 191
  • 1
  • 1
  • 3
  • 2
    Can you please post the full traceback of `pip install pyarrow`? Can you also specify your operating system and version of python? – jkr Jul 20 '20 at 15:18
  • 8
    You can also try `pip install --upgrade pip setuptools wheel` and then retry `pip install streamlit`. – jkr Jul 20 '20 at 15:25

4 Answers4

10

In my case the problem was related to Python version. More specifically I noticed in error logs:
RuntimeError: Not supported on 32-bit Windows

So then I installed Python 3.8.6 (x64 version) instead of x32

enter image description here

and the problem was solved with

pip install pyarrow

gmavridakis
  • 368
  • 4
  • 13
5

I also faced this same issue and I noted that pyarrow is a requirement in streamlit version 0.63.0. So you can use pip install streamlit==0.62.0 and it will work just fine

oyinda david
  • 81
  • 1
  • 2
  • 1
    While it's true that using a version of Streamlit < 0.63 will work, you'll miss out on every update from now on. For most people, they are accidentally using 32-bit Python instead of 64-bit, as https://stackoverflow.com/a/64205790/2394542 indicates – Randy Zwitch Jan 11 '21 at 14:11
2

Streamlit Version 0.62.1 and python version 3.8.5 works fine.

Mazhar
  • 21
  • 1
1

I was having the same issue, i used the pip install streamlit==0.62.0 it works fine for me thaks a lot