У меня есть simpe python файл
import pandas as pd
Python Настройка vnev со следующими пакетами: -
Package Version
--------------- -------
numpy 1.18.1
pandas 0.25.3
pip 19.3.1
python-dateutil 2.8.1
pytz 2019.3
setuptools 45.1.0
six 1.14.0
wheel 0.33.6
Python Версия: -
Python 3.8.1
ОС: -
Ubuntu 18
Когда я запускаю программу python выдает следующее сообщение об ошибке: -
Traceback (most recent call last):
File "/home/blazehub/PythonProjects/python_venv/data-structure/dict.py", line 1, in <module>
import pandas
File "/home/blazehub/PythonProjects/python_venv/venv/py3.8/lib/python3.8/site-packages/pandas/__init__.py", line 55, in <module>
from pandas.core.api import (
File "/home/blazehub/PythonProjects/python_venv/venv/py3.8/lib/python3.8/site-packages/pandas/core/api.py", line 24, in <module>
from pandas.core.groupby import Grouper, NamedAgg
File "/home/blazehub/PythonProjects/python_venv/venv/py3.8/lib/python3.8/site-packages/pandas/core/groupby/__init__.py", line 1, in <module>
from pandas.core.groupby.generic import ( # noqa: F401
File "/home/blazehub/PythonProjects/python_venv/venv/py3.8/lib/python3.8/site-packages/pandas/core/groupby/generic.py", line 44, in <module>
from pandas.core.frame import DataFrame
File "/home/blazehub/PythonProjects/python_venv/venv/py3.8/lib/python3.8/site-packages/pandas/core/frame.py", line 88, in <module>
from pandas.core.generic import NDFrame, _shared_docs
File "/home/blazehub/PythonProjects/python_venv/venv/py3.8/lib/python3.8/site-packages/pandas/core/generic.py", line 70, in <module>
from pandas.io.formats.format import DataFrameFormatter, format_percentiles
File "/home/blazehub/PythonProjects/python_venv/venv/py3.8/lib/python3.8/site-packages/pandas/io/formats/format.py", line 48, in <module>
from pandas.io.common import _expand_user, _stringify_path
File "/home/blazehub/PythonProjects/python_venv/venv/py3.8/lib/python3.8/site-packages/pandas/io/common.py", line 3, in <module>
import bz2
File "/usr/local/lib/python3.8/bz2.py", line 19, in <module>
from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named '_bz2'
Чего-то не хватает в настройке?