import pandas results in ModuleNotFoundError :_lzma

前端 未结 3 462
萌比男神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:16

    I was running into this exact same issue today! I was able to fix it though.

    Pandas just put out a new version 0.25.0 on July 18th and changing the version back to 0.24.2 fixed this issue for me.

    I hope this works for you too!

    link: https://pandas.pydata.org/

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-05 22:36

    just upgraded to version 0.25.1 and works well

    0 讨论(0)
提交回复
热议问题