18870715400
V2EX  ›  问与答

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

  •  
  •   18870715400 · Dec 25, 2019 · 2069 views
    This topic created in 2359 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
        1
    ysc3839  
       Dec 25, 2019
    是什么问题?
    caoda
        2
    caoda  
       Dec 25, 2019
    重新编译,linux 用.so
    caoda
        3
    caoda  
       Dec 25, 2019
    看楼主的发帖 是来骗回复的吧 楼下止步
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3066 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 00:26 · PVG 08:26 · LAX 17:26 · JFK 20:26
    ♥ Do have faith in what you're doing.