我最近安装了pipenv。 我需要在python 3.6下使用名为Crypto的模块。我目前运行3.8,所以我决定使用pipenv!
pipenv install Crypto
Adding Crypto to Pipfile's [packages]…
✔ Installation Succeeded
Pipfile.lock (da1a8d) out of date, updating to (ca72e7)…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
✔ Success!
Updated Pipfile.lock (da1a8d)!
Installing dependencies from Pipfile.lock (da1a8d)…
? ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 9/9 —
然后我做了:
pipenv shell
和
./skeleton.py init
我收到消息:
Traceback (most recent call last):
File "./skeleton.py", line 5, in <module>
from toolbox import *
File "/home/alex/Documents/4TC-CSC/csc/td2-code/toolbox.py", line 11, in <module>
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
我不明白这是怎么回事...任何帮助将不胜感激:)