0

我在 Windows 3.9.0 环境下开发了一些 python 代码。我跑pip freeze prog.py > requirements.txt。然后,我尝试在运行 Python v3.7.3 的 RaspberryPi 上重新创建一个类似的环境。
但是,sudo pip install -r requirements.txt总是无法安装pyobject.

我手动尝试显式安装此特定模块,但它不断失败。

pi@raspberrypi:~/operational_report $ sudo pip install pyobject
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyobject
  Using cached pyobject-1.0.tar.gz (12 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f845qmhj/pyobject_5cd636e5023149cdad8facedb280eced/setup.py'"'"'; __file__='"'"'/tmp/pip-install-f845qmhj/pyobject_5cd636e5023149cdad8facedb280eced/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-dxk1_umj
         cwd: /tmp/pip-install-f845qmhj/pyobject_5cd636e5023149cdad8facedb280eced/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-f845qmhj/pyobject_5cd636e5023149cdad8facedb280eced/setup.py", line 8, in <module>
        long_desc=open("README.rst").read()
      File "/usr/lib/python3.7/codecs.py", line 322, in decode
        (result, consumed) = self._buffer_decode(data, self.errors, final)
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb8 in position 13: invalid start byte
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/bb/e2/2fc82c012dbcbb3f817e3469076d801597221e031c3055cc0d53d199a6c8/pyobject-1.0.tar.gz#sha256=365215501067aff41db991561f98f0d28c410fbc870e531615c07b7168f36b6a (from https://pypi.org/simple/pyobject/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement pyobject
ERROR: No matching distribution found for pyobject

你有什么建议吗?

4

0 回答 0