UserWarning: Could not import the lzma module. Your installed Python is incomplete

前端 未结 5 1597
-上瘾入骨i
-上瘾入骨i 2020-12-13 06:02

After Installing Google Cloud Bigquery Module, if I import the module into python code. I see this warning message. Happening to me in python 3.7.3 Virtualenv.

Tried

5条回答
  •  情深已故
    2020-12-13 06:38

    I used other good answers from here and didn't solve the problem (Ubuntu 18.04, Python3.8), still get this warning. Actually there is one more package is needed to be installed to solve the problem:

    sudo apt-get install lzma
    

    So the whole pipeline (run in the python source code folder):

    sudo apt-get install liblzma-dev
    sudo apt-get install lzma
    ./configure --enable-optimizations
    sudo make
    sudo make altinstall
    

提交回复
热议问题