Closed GSUI5051 closed 3 years ago
进一步的测试:无法导入dwt2, idwt2, 记录: further test:can't import dwt2, idwt2, log:
C:\Users\40411>F:\<REDACTED>\加密.py
Traceback (most recent call last):
File "F:\<REDACTED>\加密.py", line 1, in <module>
from blind_watermark import WaterMark
File "C:\Program Files\Python39\lib\site-packages\blind_watermark\__init__.py", line 1, in <module>
from .blind_watermark import WaterMark
File "C:\Program Files\Python39\lib\site-packages\blind_watermark\blind_watermark.py", line 9, in <module>
from pywt import dwt2, idwt2
ImportError: cannot import name 'dwt2' from 'pywt' (C:\Program Files\Python39\lib\site-packages\pywt\__init__.py)
备用解决方案:用如下代码安装库 ALTN solution: Use these code to install lib deps
pip install pywt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install PyWavelets
大赞! 👍👍👍
安装模组:
pip install blind_watermark
, 成功 module install:pip install blind_watermark
, SUCCESS运行示范代码,记录如下: Run Demo Code, log:
随后输入
pip install pywt
, 记录如下: Runpip install pywt
in cmd, log:目前可用解决方案:使用豆瓣镜像,成功 Current solution: Use Douban mirror, SUCCESS