+
 新版

PyInstaller 2.0 安装失败

AlexDotNet 发布于 2012/08/17 10:33
阅读 6K+
收藏 1

File "configure.py", line 28, in <module>

from PyInstaller? import HOMEPATH, PLATFORM

ImportError?: No module named PyInstaller

环境变量里面我配置了 结果还是不行啊!

加载中
0
XAXXXXXXX
XAXXXXXXX
README.rst 文件原文:
'''
Installation in brief
---------------------

1. Unpack the archive on you path of choice.
2. For Windows (32/64bit), Linux (32/64bit) and Mac OS X (32/64bit)
   precompiled boot-loaders are available. So the installation is
   complete.

   For other platforms, users should first try to build the
   boot-loader::

        cd source
        python ./waf configure build install
'''

看了原文,好像说Windows平台默认是安装好的,可以使用。对于其他平台才需要使用下面的命令进行安装!

囧,我恰恰是用了下面的命令才安装成功的!
AlexDotNet
AlexDotNet
果断悲剧了..还是不中啊.. 回去用家里的win7 试验下看好用不好用吧!:(
AlexDotNet
AlexDotNet
额... 忙活了半天啊! 那直接打包一个 试验下!
0
jun4rui
jun4rui

我装上没发现这个问题,我是在Windows下装的2.0 zip版。

 

我的HOMEPATH是默认的\Users\Administrator

 

Win7系统

AlexDotNet
AlexDotNet
PyInstaller 2.0 ​(zip) 我就是下的这个 这个应该是Windows版本的吧?
AlexDotNet
AlexDotNet
我的下的是pyinstaller2.0 windows的吧 但是 我是在xp上!
0
XAXXXXXXX
XAXXXXXXX
前晚装上,没有问题!
0
XAXXXXXXX
XAXXXXXXX

xp sp3 没有问题!

安装过程中遇到的唯一问题是vc资源链接器不支持pyinstaller附带的ico文件,随便找一个像素比较低的顶替就行了!

安装方式是进入 pyinstaller 目录下的source 目录,然后在命令行输入:
      python ./waf configure build install

AlexDotNet
AlexDotNet
和我以前安装过 python 3.2 有关系吗/
AlexDotNet
AlexDotNet
我也看文档了 2.0 是那么安装的. 可惜我安装之后还是报错了! Checking for custom code :Could not find the python developmentheader Checking for program python2.7-config :not found!
AlexDotNet
AlexDotNet
马上尝试下@!thk u dude!
AlexDotNet
AlexDotNet
我是直接进入pyinstaller-2.0/PyInstaller/configure.py 直接cmd的这个 结果报错!pywin32-27 我也安装的了!
0
BinBai
BinBai
哥们,你搞定了吗?我也遇到你那样的问题了。
0
AlexDotNet
AlexDotNet
没有。不知道你什么系统下的。
0
MyPy
MyPy

命令格式与之前版本有很大区别 

2.0直接在解压目录下运行   python pyinstaller.py -F -w --icon=ICO.ico helloworld.py 

但是我的生成exe文件后运行时闪一下程序就不见了

AlexDotNet
AlexDotNet
这个还真不清楚!上次忘记用什么生成成功了,但是好像不是这个打包程序!
0
听见安静
听见安静
直接用 python pyinstall.py 就好,参数看 --help,丢失依赖的要加 -p 。页面是因为今天是愚人节才斜的?
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部