# Python Installation Issue

**URL:** <https://community.sparkflows.ai/t/python-installation-issue/223>\
**Category:** Troubleshooting\
**Tags:** installation\
**Created:** [December 23, 2025, 11:43am UTC](https://community.sparkflows.ai/t/python-installation-issue/223 "2025-12-23T11:43:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarika](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@Tarika](https://community.sparkflows.ai/u/Tarika)\
**Post date:** [December 23, 2025, 11:43am UTC](https://community.sparkflows.ai/t/python-installation-issue/223/1 "2025-12-23T11:43:42Z")

</div>

**Problem**  
Python installations from source with version 3.6.5

showing warning message with missing package while restarting pyspark server  
showing warning message with missing package while restarting pyspark server  
UserWarning: Could **not import**  **the** lzma module. Your installed Python **is** incomplete

**Possible Solution**  
For centos: Install development tool: sudo yum install -y xz-devel

**Recompile python from source code:** cd Python-3.6.5sudo ./configure --enable-optimizationssudo make altinstall
