STM32MP135开发板, 我按照教程,编译 OP-TEE 源码会出错:
GEN /home/book/stm32mp135/system/optee/optee-os-stm32mp-3.16.0-stm32mp1-r1/../build/stm32mp135d-atk/core/ta_pub_key.c
Traceback (most recent call last):
File "scripts/pem_to_pub_c.py", line 71, in <module>
main()
File "scripts/pem_to_pub_c.py", line 24, in main
from cryptography.hazmat.backends import default_backend
ImportError: No module named 'cryptography'
mk/subdir.mk:181: recipe for target '/home/book/stm32mp135/system/optee/optee-os-stm32mp-3.16.0-stm32mp1-r1/../build/stm32mp135d-atk/core/ta_pub_key.c' failed
~/stm32mp135/system/optee/optee-os-stm32mp-3.16.0-stm32mp1-r1$ pip --version
pip 23.1.2 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
~/stm32mp135/system/optee/optee-os-stm32mp-3.16.0-stm32mp1-r1$ pip show Cryptography
WARNING: The directory '/home/book/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Name: cryptography
Version: 3.4.8
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
Home-page: https://github.com/pyca/cryptography
Author: The Python Cryptographic Authority and individual contributors
Author-email: cryptography-dev@python.org
License: BSD or Apache License, Version 2.0
Location: /home/book/.local/lib/python3.7/site-packages
Requires: cffi
Required-by: