【问题标题】:import error: python for 3.7 but no error in 2.7导入错误:python for 3.7 但在 2.7 中没有错误
【发布时间】:2019-01-22 18:47:41
【问题描述】:

当我输入 python

我该如何解决这个问题

【问题讨论】:

  • 通过在 3.7 中安装 lmxl猜测pip3 install lxml
  • Python 模块通常安装每个 Python 二进制文件,您需要为 Python 3.7 二进制文件安装 lxml。

标签: python python-2.7 lxml python-3.7


【解决方案1】:

看来您还没有在 Python3 下安装该模块。大多数情况下,只需要使用包上的 Python3 安装程序即可,例如

pip3 install lxml

Installation guide。 请参阅底部附近有关使用多个 Python 版本的部分。

【讨论】:

    猜你喜欢
    • 2018-09-03
    • 2012-01-25
    • 1970-01-01
    • 1970-01-01
    • 2011-05-18
    • 1970-01-01
    • 1970-01-01
    • 2017-05-11
    相关资源
    最近更新 更多