18870715400
V2EX  ›  问与答

关于 pyd 文件在 Linux 下导入问题

  •  
  •   18870715400 · Dec 25, 2019 · 2352 views
    This topic created in 2525 days ago, the information mentioned may be changed or developed.

    自己写的一个库文件在 windows 中放在 python 中的 site-packages 导入没有问题, 但是放在 linux 中的 anaconda 中的 site-packages 中导入却有问题, 有哪位大佬帮帮忙么

    目录大概结构

    --test ----A ------init.py ------a.pyd ----B ------init.py ------b.pyd ----init.py

    from test.A.a import xxx

    上述导入在 windows 中没有问题, 但是移到 linux 中就有问题, 能帮忙看看么

    3 replies  •  2019-12-25 20:02:04 +08:00
    ysc3839
    ysc3839
    Dec 25, 2019
    1
    是什么问题?
    caoda
    caoda
    Dec 25, 2019
    2
    重新编译,linux 用.so 的
    caoda
    caoda
    Dec 25, 2019
    3
    看楼主的发帖 是来骗回复的吧 楼下止步
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3313 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:54 · PVG 08:54 · LAX 16:54 · JFK 19:54
    ♥ Do have faith in what you're doing.