如何在Python中编写setup.py文件 [英] How to write setup.py file in Python

查看:536
本文介绍了如何在Python中编写setup.py文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在pycharm中创建python项目的exe以及如何在pycharm中编写安装文件。



我尝试了什么:



我正在pycharm(python)编辑器中做一个项目但是我在为该项目创建可执行文件时遇到问题,所以我在google中搜索等等很多答案都与该项目的创建设置文件有关,任何人都可以建议正确解决如何在pycharm中编写设置文件。

how to create exe from python project in pycharm ide and how to write setup file in pycharm.

What I have tried:

I'm doing one project in pycharm(python) editor but i'm getting problem in creation of executable for that project,so i am searching in google and so much of answers are related to create setup file for that project can anyone suggest to proper solution how to write setup file in pycharm.

推荐答案

Pycharm是一个编辑工具。它可以帮助您编写带有建议的代码。它可以帮助您进行调试。但这不是创建可执行文件的工具。



试试google。从Python搜索`Executable。你会得到很多结果。也许第一个看起来很整洁



教程 - py2exe.org [ ^ ]



看一看。



并且在google中搜索
Pycharm is an editing tool. It assist you with writing code with suggestion. It assist you with debugging. But this is not a tool to create executable.

Try google. Search for `Executable from Python`. You will get many results. Perhaps the very first one look neat

Tutorial - py2exe.org[^]

Take a look.

And also search
pycharm build executable

你也会发现很少的解决方案。其中一个或两个与py2exe相关

in google you will find few solutions too. one or 2 of them are related to py2exe


这篇关于如何在Python中编写setup.py文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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