我正在尝试执行python脚本,但我总是得到错误- ModuleNotFoundError:没有模块名为“焦图”。因此,我做了pip3安装热图和热图模块成功安装,但在最后,我仍然得到相同的错误,当我试图执行python脚本。如果这有帮助的话,我正在使用LinuxMINT19.3。下面是我的全部输出--
xd003@xd003:~/mirror-bot$ python3 generate_string_session.py
Traceback (most recent call last):
File "generate_string_session.py", line 1, in
from pyrogram import Client
ModuleNotFoundError: No module named 'pyrogram'
xd003@xd003:~/mirror-bot$ pip3 install pyrogram
Collecting pyrogram
Using cached https://files.pythonhosted.org/packages/aa/6d/ffe5c490dce53d179ec7d1326190ea2efa7089ed3a7b3a37689899e10a32/Pyrogram-0.16.0-py3-none-any.whl
Collecting pyaes==1.6.1 (from pyrogram)
Collecting pysocks==1.7.0 (from pyrogram)
Using cached https://files.pythonhosted.org/packages/cd/18/102cc70347486e75235a29a6543f002cf758042189cb063ec25334993e36/PySocks-1.7.0-py3-none-any.whl
Installing collected packages: pyaes, pysocks, pyrogram
Successfully installed pyaes-1.6.1 pyrogram-0.16.0 pysocks-1.7.0
xd003@xd003:~/mirror-bot$ python3 generate_string_session.py
Traceback (most recent call last):
File "generate_string_session.py", line 1, in
from pyrogram import Client
ModuleNotFoundError: No module named 'pyrogram'
xd003@xd003:~/mirror-bot$ 发布于 2020-04-29 04:38:42
您需要修复pyaes模块的问题:
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for pyaes
Running setup.py clean for pyaes
Failed to build pyaes在https://stackoverflow.com/questions/34819221/why-is-python-setup-py-saying-invalid-command-bdist-wheel-on-travis-ci中建议了几种解决方案,最有可能的解决方案是:
sudo apt-get install gcc libpq-dev -y
sudo apt-get install python-dev python-pip -y
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel -y
pip3 install wheel问题解决后,您需要确保整个安装都从零开始传递without错误:
pip3 uninstall pysocks, pyaes, pyrogram
pip3 install pyrogramhttps://unix.stackexchange.com/questions/583241
复制相似问题