我在进口Pandas时发出警告

2024-06-01 08:36:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我以以下方式在Google云VM上安装了python 3.7

 wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
 tar -xf Python-3.7.4.tgz
 cd Python-3.7.4
 ./configure --enable-optimizations
 make -j 64
 sudo make altinstall

然后我安装了熊猫

sudo python3.7 -m pip install pandas

但如果我这样做了

import pandas as pd

我得到以下错误:

/usr/local/lib/python3.7/bz2.py in <module>
     17 from threading import RLock
     18 
---> 19 from _bz2 import BZ2Compressor, BZ2Decompressor
     20 
     21 

ModuleNotFoundError: No module named '_bz2'

this之后,我不知道如何Extract python tarball


Tags: fromhttpsorgimportpandasmakewwwgoogle