import pandas results in ModuleNotFoundError :_lzma

前端 未结 3 506
萌比男神i
萌比男神i 2021-02-05 21:59

On Ubuntu 18.04 with python 3.7.3, I\'m attempting to import pandas but this fails because it can\'t find _lzma.

I\'ve verified that _lzma is

3条回答
  •  星月不相逢
    2021-02-05 22:30

    I have the same issue using pyenv. You don't need to rollback pandas.

    To fix import errors, I've removed python:

    $ pyenv uninstall 3.7.1

    Installed dependencies:

    $ sudo apt-get install liblzma-dev

    and reinstalled version:

    $ pyenv install 3.7.1

    More on this dependencies here

提交回复
热议问题