我得到这个:
No module named 'pandas'
尽管我这样做:
pip install pandas
whereis python
显示如下:
python: /usr/bin/python2.7-config /usr/bin/python2.7
/usr/bin/python3.6m-config /usr/bin/python3.6m /usr/bin/python3.6
/usr/bin/python /usr/bin/python3.6-config /usr/lib/python3.7
/usr/lib/python2.7 /usr/lib/python3.6 /etc/python2.7 /etc/python3.6
/etc/python /usr/local/lib/python2.7 /usr/local/lib/python3.6
/usr/include/python2.7 /usr/include/python3.6m /usr/include/python3.6
/usr/share/python /usr/share/man/man1/python.1.gz
很多信息。有问题吗?
答案 0 :(得分:-1)
首先,执行升级
sudo pip3 install --upgrade pip
然后以“ root”(管理员)身份安装熊猫。
sudo pip3 install pandas