我想运行csv2cash
在我的机器上。我已经安装了Python 3.6
& 将 git 存储库克隆到我的机器( https://github.com/jrwrigh/csv2cash ),输入 example/
目录并尝试运行脚本 python3.6 example.py
。
它提示缺少module
piecash
。我尝试使用 sudo -H pip install piecash
安装它但我不断收到错误 ModuleNotFoundError: No module named 'piecash
。 Stdout
来自pip
看起来像:
$ sudo -H pip install piecash
/usr/local/lib/python3.5/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
Requirement already satisfied: piecash in /usr/local/lib/python3.5/dist-packages (1.0.0)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from piecash) (0.4.43+16.4.20170613.0ubuntu1)
Requirement already satisfied: SQLAlchemy-Utils>=0.31 in /usr/local/lib/python3.5/dist-packages (from piecash) (0.34.0)
Requirement already satisfied: tzlocal in /usr/local/lib/python3.5/dist-packages (from piecash) (1.5.1)
Requirement already satisfied: pytz in /usr/lib/python3/dist-packages (from piecash) (2014.10)
Requirement already satisfied: SQLAlchemy>=1.0 in /usr/lib/python3/dist-packages (from piecash) (1.0.11)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from SQLAlchemy-Utils>=0.31->piecash) (1.10.0)
谁能帮我解决这个问题?一件事是,我还必须安装 pathlib
看起来像pip
命令( sudo apt-get install python-pathlib
)无法满足要求,我必须使用 apt-get
安装它反而...
native 运行 Ubuntu 16.04
我还安装了python3-pandas
包。
最佳答案
Requirement already satisfied: piecash in /usr/local/lib/python3.5/dist-packages (1.0.0)
您使用 Python 3.5 安装了 piecash
,但使用 Python 3.6 运行了示例。两种不同的Python。使用其中之一。
sudo python3.5 -m pip install piecash
python3.5 example.py
或
sudo python3.6 -m pip install piecash
python3.6 example.py
关于linux - 不断收到错误 : ModuleNotFoundError: No module named 'piecash' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56730113/