【问题标题】:Is there a way to force libFTDI to make the python packages according to python2.7 instead of python3?有没有办法强制libFTDI根据python2.7而不是python3制作python包?
【发布时间】:2017-01-16 15:50:45
【问题描述】:

我需要使用 libFTDI (www.intra2net.com/en/developer/libftdi/download/libftdi1-1.2.tar.bz2) 对于我正在做的一个项目。我当前所有的模块都是用 python2 编写的,所以我希望 libFTDI 也可以与 python2 一起使用,但是安装过程会自动选择 python3.5。 Cmake 用于构建项目。我似乎无法让它工作,显然以前没有人遇到过这个问题。 任何帮助将不胜感激!

【问题讨论】:

  • 在文档中没有提示需要 python3.5。如果 python3.5 不可用/未安装会发生什么?
  • @Th.Thielemann,我不确定我所做的是否愚蠢,但我将除 2.7 之外的所有 python 版本目录重命名为其他目录。安装失败!
  • 我没有安装所有先决条件,但找到了 python 2.7 和 python。输出:-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) -- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.10") -- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.10") -- Not building python bindings -- Could NOT find Confuse (missing: CONFUSE_LIBRARY CONFUSE_INCLUDE_DIR)

标签: python linux cmake ftdi


【解决方案1】:

在我卸载了所有版本的 python3 和 python3-dev 包后它工作了。

【讨论】:

    猜你喜欢
    • 2011-01-17
    • 2010-12-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-10
    • 2014-04-17
    • 2019-11-14
    • 2017-10-07
    • 1970-01-01
    相关资源
    最近更新 更多