Error installing Streamlit

I am trying to install streamlit on my machine using the code “pip install streamlit” in cmd and running into the following error:
Running install for MarkupSafe … error!

I would really appreciate if someone could advise me on how to resolve this issue.

Thank you in advance!

Hi @jaydesai30,
Are you installing on Windows? We suggest using Anaconda Navigator as highlighted in this post: Streamlit on windows


Hi @monchier ,
I am using cmd for library installation through pip. I am facing the same error. I would prefer to use Vs code as my preferable text editor. Kindly help with this issue.

That’s absolutely possible and has nothing to do with any errors during installation.
You are on Windows? Which Python version?
What is the error message?

Hi @Franky1,
I am currently working on windows. Python version 3.8.5.
After pip install streamlit there are many dependencies installed but it halts during the pyarrow installation.

A sample error msg-
Collecting pyarrow; python_version < “3.9”
Using cached pyarrow-4.0.0.tar.gz (710 kB)
Installing build dependencies … error
ERROR: Command errored out with exit status 1:

pyarrow has released today(!) the new version 4.0.0.
It seems that during the installation not the wheel but the source file .tar.gz was pulled from pypi.
Maybe the wheel file was not yet in pypi.

  • Just try it again with pip install pyarrow
  • If it still pulls the .tar.gz file, try it with pip install --no-cache-dir pyarrow
  • If it does not help, try it with pip install pyarrow==3.0.0

Hi @Franky1 ,
I have tried all the options, but still getting the same error. The main problem lies with pyarrow installation.

Which Python distribution do you use? Anaconda? Winpython? …
What does the output of this say on the command line:

where python

Hi @Franky1 ,
I use
The output of where python: “C:\Program Files (x86)\Python38-32\python.exe”

I would try to update the toolchain first:

python -m pip install -U pip
pip install -U wheel
pip install -U setuptools

and try again:

pip install pyarrow

Still error messages and if so, which ones?

Hi @Franky1,
I am still getting error messages.
“ERROR: Could not find a version that satisfies the requirement pyarrow (from versions: 0.9.0, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.15.1, 0.16.0, 0.17.0, 0.17.1, 1.0.0, 1.0.1, 2.0.0, 3.0.0, 4.0.0)
ERROR: No matching distribution found for pyarrow”

What would you suggest, should I write to the python community?

Could it be that you installed the 32bit version instead of the 64bit version of Python?


import sys

Hi @Franky1 ,
The output of sys.version: 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [… 32 bit…
Does it not work with 32 bit ?

I guess not, the wheels from pyarrow are only available for 64bit.
You might be able to compile it from the sources for 32bit.

I assume you have a Windows 10 x64 machine?
Then I would also install the 64bit version from


@Franky1 By changing my python to 64 bit worked for me.
Thank you

Hi, I have a similar error, in sys.version 64 bit appears to me ,but the problem still persists.