V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
geew
V2EX  ›  问与答

virtualenv 跨系统问题(centos-ubuntu)

  •  
  •   geew · 2013-11-18 16:51:04 +08:00 · 3259 次点击
    这是一个创建于 3849 天前的主题,其中的信息可能已经有所发展或是发生改变。
    这两个系统不算跨系统吧....

    问题:
    在centos下:
    $ virtualenv tenv

    ubuntu下:
    $ . tenv/bin/activate
    $ python
    Could not find platform independent libraries <prefix>
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    ImportError: No module named site

    ----------------
    ubuntu下:
    $ virtualenv ttenv

    centos下:
    $ . ttenv/bin/activate
    $ python
    ttenv/bin/python: /usr/lib64/libcrypto.so.1.0.0: no version information available (required by ttenv/bin/python)
    ttenv/bin/python: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ttenv/bin/python)
    ttenv/bin/python: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by ttenv/bin/python)
    ttenv/bin/python: /usr/lib64/libssl.so.1.0.0: no version information available (required by ttenv/bin/python)


    什么奇葩问题... 各位大家有遇到过这种情况么?
    5 条回复    1970-01-01 08:00:00 +08:00
    humiaozuzu
        1
    humiaozuzu  
       2013-11-18 18:04:24 +08:00 via iPhone   ❤️ 2
    需要维护的是 requirements.txt
    不同发行版自己重安装
    ritksm
        2
    ritksm  
       2013-11-18 18:16:57 +08:00   ❤️ 1
    pip freeze然后写到requirements.txt里。。如LS所说
    9hills
        3
    9hills  
       2013-11-18 18:17:57 +08:00
    算跨系统,怎么不算。centos和ubuntu差老远了
    geew
        4
    geew  
    OP
       2013-11-18 20:09:56 +08:00
    @humiaozuzu 恩 了解了
    geew
        5
    geew  
    OP
       2013-11-18 20:10:08 +08:00
    @9hills 呵呵 好吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1018 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 18:38 · PVG 02:38 · LAX 11:38 · JFK 14:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.