Debian 有可能重新安置pythonbrew吗

Debian 有可能重新安置pythonbrew吗,debian,packaging,pythonbrew,Debian,Packaging,Pythonbrew,我正在尝试使用pythonbrew创建一个包含自定义构建的python的debian包 编译和debian构造是成功的。 问题是,当我在其他机器上安装软件包时,某些模块无法工作。例如hashlib甚至os.getcwd()都不工作。而在机器上,一切都正常 是否可以重新定位python安装?有什么问题吗 >>> from hashlib import md5 ERROR:root:code for hash md5 was not found. Traceback (most r

我正在尝试使用pythonbrew创建一个包含自定义构建的python的debian包

编译和debian构造是成功的。 问题是,当我在其他机器上安装软件包时,某些模块无法工作。例如
hashlib
甚至
os.getcwd()
都不工作。而在机器上,一切都正常

是否可以重新定位python安装?有什么问题吗

>>> from hashlib import md5
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/sw-python/extra/pythonbrew/pythons/Python-2.7.2/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name md5
生成计算机:

Linux ds5vs5 2.6.32-5-amd64 ... 2012 x86_64 GNU/Linux

最后,我将我的debian包安装在不同的debian机器上,类似于build机器。成功了

我不知道到底是什么导致了这个问题,但我想这是内核或编译器的不同

Linux ds5vs5 2.6.32-5-amd64 ... 2012 x86_64 GNU/Linux