我对py2exe找不到帕拉米科有意见。
环境为Windows 7/ Python 2.7
下面是一个简单的测试(名为test2.py):
# Test file for py2exe
import sys
import os
import paramiko
print "This is a test"下面是我的'setup.py‘文件:
#
from distutils.core import setup
import py2exe
setup(console=['test2.py'])当我尝试构建*.exe时:
The following modules appear to be missing
['paramiko']我在/lib/site-package中没有paramiko文件夹。这可能是我的问题吗?
发布于 2014-01-18 04:14:13
您是否在Windows系统上安装了paramiko?
http://vijaymurthy.wordpress.com/2011/03/30/installing-paramiko-for-windows/
发布于 2014-01-23 18:09:23
首先要检查的是,您的setup.py与您的模块位于相同的目录中,并且是从该目录运行的。
如果此操作不起作用,则应将模块添加到setup.py中的路径中
module_path = r'path\to\your\paramiko\module'
if module_path not in sys.path:
sys.path.append(modules_path)发布于 2014-01-23 18:13:13
py2exe无法处理压缩的站点包。您的paramiko是在一个鸡蛋(本质上是zip)文件中吗?
https://stackoverflow.com/questions/21192594
复制相似问题