【发布时间】:2020-08-07 06:44:24
【问题描述】:
如何在 Windows 10 Pro N 64 位安装的 Anaconda 4.8.3 中解码 python 3.6 中的二维码?
大多数解决方案都需要 Pillow with zbar。但是,it appearszbar 仅适用于 32 位
窗户安装。此外,pip install zbarlight 产生:
ERROR: No matching distribution found for pyzbarlight
为了尝试在 Windows 10 Pro N 64 位设备上的 Anaconda 4.8.3 中的 python 3.6 中解码二维码,我尝试了以下代码:
# Set up virtual environment in Anaconda
# conda create --name test36 python=3.6
# conda activate test36
# Install pip in the `test36` environment:
# E:/ProgramData/Anaconda3/envs/test36/Scripts/pip install pyzbar
# Source: https://anaconda.org/anaconda/pillow
# conda install -c anaconda pillow
from pyzbar.pyzbar import decode
from PIL import Image
decode(Image.open('elbow.png'))
产生错误:
OSError: [WinError 126] The specified module could not be found
【问题讨论】:
标签: python-3.x anaconda decode qr-code