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

标签 linux python-3.x pip ubuntu-16.04

我想运行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/

相关文章:

Python-3.2 协程 : AttributeError: 'generator' object has no attribute 'next'

c++ - 如何在google code jam中输入c++代码的测试用例

linux - 如何在 Bash 中提取引号之间的字符串

linux - 为什么这个字符串的值在 bash 脚本中被执行?

python - 如何将包含多个字典的列表转换为字典

python-3.x - Tkinter 单选按钮 : Remove dot along with image

python - Kaggle 上出现 '!pip install torchxrayvision' 连接错误

python - execsql 1.72 无法安装 Python

python - Ruby 的 bundler/Perl 的纸箱的 Python 等价物是什么?

linux - 在没有连接设备的情况下设置 I2C 地址