如何安装PyInstaller? [英] How to install PyInstaller?

查看:163
本文介绍了如何安装PyInstaller?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(我在Windows上.)

(I'm on Windows.)

我想使用 PyInstaller .我总是可以用pyinstaller.py [args]创建bin文件.

I want to use PyInstaller. I could always create bin files with pyinstaller.py [args].

  • 这不是带有__init__.py文件的软件包,
  • 它没有setup.py
  • 创建一个文件夹,将其放入我的PYTHONPATH,将pyinstaller\[files]放入该文件夹,然后调用python pyinstaller\pyinstaller.py,这是行不通的.
  • It's not a package with an __init__.py file,
  • it has no setup.py
  • and it doesn't work to create a folder, put it in my PYTHONPATH, put pyinstaller\[files] in that folder and then make a call to python pyinstaller\pyinstaller.py.

pyinstaller.org

pyinstaller.org only tells me something with Configure.py.

所以现在我不知道如何安装PyInstaller,这样我就不必使用绝对路径了.你有什么主意吗?

So now I'm out of ideas how to install PyInstaller so that I don't have to work with absolute paths. Do you have any ideas?

推荐答案

要安装PyInstaller:

To install PyInstaller:

  1. 转到命令提示符(开始->运行-> cmd)
  2. 键入以下命令cd c:\python27\scripts按下输入, 这应该是您的pip.exe文件所在的位置.
  3. 在此目录中后,键入pip install pyinstaller并按Enter键
  1. Go to your command prompt (Start -> Run -> cmd)
  2. type the following command cd c:\python27\scripts press enter, this should be where your pip.exe file is located.
  3. Once you are in this directory type pip install pyinstaller press enter

消息应显示为Successfully installed pyinstaller.

这篇关于如何安装PyInstaller?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆