geew
V2EX  ›  问与答

virtualenv 跨系统问题(centos-ubuntu)

  •  
  •   geew · Nov 18, 2013 · 3778 views
    This topic created in 4648 days ago, the information mentioned may be changed or developed.
    这两个系统不算跨系统吧....

    问题:
    在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 replies    1970-01-01 08:00:00 +08:00
    humiaozuzu
        1
    humiaozuzu  
       Nov 18, 2013 via iPhone   ❤️ 2
    需要维护的是 requirements.txt
    不同发行版自己重安装
    ritksm
        2
    ritksm  
       Nov 18, 2013   ❤️ 1
    pip freeze然后写到requirements.txt里。。如LS所说
    9hills
        3
    9hills  
       Nov 18, 2013
    算跨系统,怎么不算。centos和ubuntu差老远了
    geew
        4
    geew  
    OP
       Nov 18, 2013
    @humiaozuzu 恩 了解了
    geew
        5
    geew  
    OP
       Nov 18, 2013
    @9hills 呵呵 好吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   969 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:16 · PVG 06:16 · LAX 15:16 · JFK 18:16
    ♥ Do have faith in what you're doing.