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

前端 未结 5 1601
-上瘾入骨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:30

    On MacOS and pyenv (https://realpython.com/intro-to-pyenv/), I was able to have this warning go away by having xz installed with homebrew. Using version python 3.6.9 as an example

    brew install xz && pyenv install 3.6.9

    To use installed python, one needs to add this into .bash_profile

    eval "$(pyenv init -)"

    and start using it by running

    pyenv global 3.6.9

提交回复
热议问题