尝试安装 python-escpos 库。说明如下:
确保库安装在${lib_arch}/${python_ver}/site-packages/escpos
在 CLi 上,您必须运行:
python setup.py build
sudo python setup.py install
是什么${lib_arch}/${python_ver}/
意思?是这样的路径
\Users\RickT\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\escpos
吗?
当我运行python setup.py
构建时,我收到以下错误:
C:\Users\RickT\AppData\Local\Programs\Python\Python36-32\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg)Traceback (most recent call last):
File "setup.py", line 140, in <module> 'python-escpos = escpos.cli:main'