I have a problem in installing Streamlit in Pycharm

The application is currently save locally, the main problem is I can’t install Streamlit in Pycharm it is giving several errors like this:

 CMake Error at CMakeLists.txt:22 (project):

          Visual Studio 15 2017 Win64

        could not find any instance of Visual Studio.

      -- Configuring incomplete, errors occurred!
      error: command 'C:\\Program Files\\CMake\\bin\\cmake.exe' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects

I already tried this possible solution:
installing the following:

  • latest version of python 3.12.0
  • pyarrow 9.0.0 since the latest doesn’t work
  • cmake
  • wheel
  • setuptools
  • poetry

I also did uninstall and installing Pycharm, and Python. I also tried changing env. from VirtualENV to Conda same error. Do I need to change environment in fixing this issue?

I don’t know PyCharm well enough to know any specifics that might apply, but just FYI, Streamlit is only supported up to Python 3.11. So if you haven’t already, I’d try Python 3.11 instead of 3.12.

I just tested and I’m not able to install Streamlit into a Python 3.12 conda environment where I know it works just fine for Python 3.8 to 3.11 on this computer.