[英]no module named pyperclip after exe has been created
The script I'm running works great on .py
and also if i run it as .exe
from the python file. 我正在运行的脚本在
.py
也可以很好地工作,如果我从python文件中以.exe
运行它,也可以很好地工作。
but when i export it to one stand alone exe file i get the error in the pic. 但是,当我将其导出到一个独立的exe文件时,我在图片中得到错误。 i tried already
py2exe + Pyinstaller + "hidden" (option) + DLLs
have been copied to the directory. 我已经尝试过
py2exe + Pyinstaller + "hidden" (option) + DLLs
已复制到目录中。
the issue seems to be the "Pyperclip module" after the compilation has been made. 编译完成后,问题似乎出在“ Pyperclip模块”上。
I'm working on WIN 8.1 with Python 2.7 我正在使用python 2.7的 WIN 8.1
let me double explain the .exe
run after the compilation but when i press the hotkeys WIN + F2 as i wrote in my "DEF" it crashes with that error. 让我再解释一次
.exe
在编译后运行,但是当我按我在“ DEF”中写的热键WIN + F2时 ,它因该错误而崩溃。
Thank you for your help, a friend figured it out... 谢谢您的帮助,一位朋友知道了...
while running the py2exe it couldn't find a module named Pyperclip. 在运行py2exe时,找不到名为Pyperclip的模块。
in order to fix it we have copied the pyperclip folder(the one that holds " init .py" inside) from the "LIB" to the main folder C\\python27\\ 为了解决这个问题,我们已将pyperclip文件夹(其中包含“ init .py”的文件夹)从“ LIB”复制到主文件夹C \\ python27 \\
and then the PY2EXE was able to compile the exe without errors. 然后PY2EXE就能编译该exe文件而不会出错。
Thank you! 谢谢!
This solution worked perfectly for me on a Raspberrypi 3. I had the same error code and needed to copy 该解决方案在Raspberrypi 3上对我来说是完美的。我有相同的错误代码,需要复制
/usr/local/lib/python3.4/dist-packages
to 至
/home/pi
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.