我一直在尝试创建已签名的Urls,以创建允许用户访问Google存储桶中数据的路径。我正在尝试构建一个存储传输系统。当我在Python中运行代码时,我总是遇到错误。我已经查看并尝试了所有用于安装cryptlib的选项,但遇到语法错误...请帮助我
>>> import time
>>> import urllib
>>> from datetime import datetime, timedelta
>>> import os
>>> import base64
>>> import crypto
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'crypto'
>>> import sys
>>> import crypto
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'crypto'
>>> pip uninstall pycrypto
File "<stdin>", line 1
pip uninstall pycrypto
^
SyntaxError: invalid syntax
>>> pip install pycryptodomex
File "<stdin>", line 1
pip install pycryptodomex
^
SyntaxError: invalid syntax
>>> install pycryptodomex
File "<stdin>", line 1
install pycryptodomex
^
SyntaxError: invalid syntax
>>> from OpenSSL import crypto
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'OpenSSL'
>>> from Crypto.Hash import SHA256
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Crypto'
>>>