【Python】[分发软件] cx_Freeze

平台

Win10
Python 3.6.1

选择工具

现在主流的python打包工具就三个
1. py2exe
2. pyinstaller
3. cx_Freeze

因为我是用的Python 3.6.1
这货只有cx_Freeze支持
于是就用cx_Freeze辣!

安装

直接pip install cx_Freeze即可

如果你想直接在命令行里直接用(一般是会这么用的)
那你还需要进入到Python的安装目录下的Scripts文件夹
比如我的系统在C:\Users\dell\AppData\Local\Programs\Python\Python36\Scripts\
然后执行python cxfreeze-postinstall

使用

建议参考其官方文档:https://cx-freeze.readthedocs.io/en/latest/overview.html

值得注意的有以下三点:
1. icon只支持.ico文件,可以用这个网站在线转:https://converticon.com/
2. 如果想去掉黑框,加上base = "Win32GUI"
3. 64位的cx_Freeze只能生成64位可执行文件。如要生成32位的,只能将python和cx_Freeze都装成32位才行

22 thoughts to “【Python】[分发软件] cx_Freeze”

  1. You will forever find on line solutios that advertise
    a whole lot and subsequently drop flat however, there is big hopes regarding the Site –
    Bldz solution. Thus, gemstone buyiny and selling can be promising in gemstone forums.
    But the methods forecasted throuth the expert ensure
    to measure its level by analyzing the on-line conversion rate off sales and thee increase of visitors in your website.

  2. I would like to thank you for the efforts you’ve put in penning this blog. I’m hoping to check out the same high-grade blog posts by you in the future as well. In fact, your creative writing abilities has encouraged me to get my own, personal blog now 😉

  3. I’m really loving the theme/design of your site. Do you ever run into any web browser compatibility problems? A small number of my blog audience have complained about my website not operating correctly in Explorer but looks great in Chrome. Do you have any ideas to help fix this problem?

  4. Hi, i think that i saw you visited my web site thus i came to “return the favor”.I’m trying to find things to improve my web site!I suppose its ok to use some of your ideas!!

  5. Hello, Neat post. There is a problem together with your web site in internet explorer, could check thisK IE nonetheless is the marketplace leader and a huge component of people will leave out your great writing because of this problem.

  6. Hi, I think your site might be having browser compatibility issues. When I look at your website in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, fantastic blog!

  7. Write more, thats all I have to say. Literally, it seems as though
    you relied on the video to make your point. You obviously know what youre talking about, why waste your intelligence on just
    posting videos to your weblog when you could be giving us something
    informative to read?

  8. Sweet blog! I found it while surfing around on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Many thanks

  9. We absolutely love your blog and find the majority of your
    post’s to be just what I’m looking for. Do you offer guest writers to write
    content available for you? I wouldn’t mind producing a post
    or elaborating on many of the subjects you write with regards to here.
    Again, awesome web site!

  10. I got this website from my friend who told me on the topic of this
    web site and now this time I am browsing this website and reading very informative
    articles or reviews at this place.

  11. Simply want to say your article is as astonishing.
    The clarity in your post is simply spectacular and i can assume you are an expert on this subject.
    Fine with your permission allow me to grab your RSS feed to keep up to date with forthcoming post.
    Thanks a million and please continue the rewarding work.

  12. Great article! That is the type of information that are supposed to be shared around the web.

    Disgrace on Google for not positioning this
    put up higher! Come on over and discuss
    with my web site . Thank you =)

  13. I was more than happy to uncover this site. I wanted to
    thank you for your time for this wonderful read!! I definitely enjoyed
    every little bit of it and i also have you bookmarked to
    see new things on your web site.

  14. Hello! I’m at work browsing your blog from my new
    iphone 3gs! Just wanted to say I love reading your
    blog and look forward to all your posts! Keep
    up the great work!

  15. Good day very nice website!! Man .. Beautiful ..
    Superb .. I will bookmark your web site and take the feeds additionally?
    I’m glad to search out numerous useful info here within the post,
    we’d like work out extra techniques in this regard, thank you for sharing.
    . . . . .

发表评论

电子邮件地址不会被公开。 必填项已用*标注