gpt4 book ai didi

linux - 不断收到错误 : ModuleNotFoundError: No module named 'piecash'

转载 作者:太空宇宙 更新时间:2023-11-04 04:42:45 27 4
gpt4 key购买 nike

我想运行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 'piecashStdout来自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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com