我已经安装了 pyperclip,当我使用 IDLE 时它可以工作
>>> import pyperclip
>>> pyperclip.copy('hello')
>>> pyperclip.paste()
'hello'
>>>
但是当我使用我的批处理文件时,它说没有名为 pyperclip 的模块
Traceback (most recent call last):
File "C:\Python36-32\Scripts\pw.py", line 7, in <module>
import sys, pyperclip
ModuleNotFoundError: No module named 'pyperclip'
Press any key to continue . . .
这是我的批处理文件:
@C:\Python36-32\python.exe C:\Python36-32\Scripts\pw.py %*
@pause