pipenv:已安装软件包,但未找到模块

问题描述 投票:0回答:1

我最近安装了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'

我不明白这是什么问题。任何帮助将不胜感激:)

python cryptography pipenv
1个回答
0
投票

从字面上看,从docs的首页开始:

pip install pycryptodome

注意,它是not

pip安装密码

这是一个完全不同的包。

© www.soinside.com 2019 - 2024. All rights reserved.