我想运行csv2cash
(https://github.com/jrwrigh/csv2cash),但是遇到pandas
的问题:我收到以下错误:
import pandas as pd
File "/usr/lib/python3/dist-packages/pandas/__init__.py", line 13, in <module>
"extensions first.".format(module))
ImportError: C extension: 'hashtable' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.
从How to solve import error for pandas?中,我了解到我应该使用pandas
重新安装conda
,所以我下载并运行了Miniconda3-latest-Linux-x86_64.sh
,但我想它已经安装在了主Python
上。版本在我的系统上,但我需要在Python3.6
上使用。我得到以下内容:
How to solve import error for pandas?:
$ python3 --version
Python 3.7.3
$ python3.6 --version
Python 3.6.8
$ python --version
Python 3.7.3
$ python2 --version
如何在3.6
版本上安装它?