virtualenv无法在centos和ubuntu中运行

时间:2013-11-18 09:07:25

标签: python virtualenv

以下是示例:

centos:(build a virtualen)
    $ virtualenv tenv

ubuntu:(active it)
    $ . tenv/bin/activate
    $ python
    Could not find platform independent libraries 
    Could not find platform dependent libraries 
    Consider setting $PYTHONHOME to [:]
    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)

1 个答案:

答案 0 :(得分:1)

你到底想要什么? Virtualenv创建了一个带有二进制文件的沙盒Python环境等用于创建它的平台 - 它不会自动使二进制文件独立于平台......