简体   繁体   中英

How to convert file .py to .exe, having Python from Anaconda Navigator? (in which command prompt should I write installation codes?)

I created a Python script (format .py) that works. I would like to convert this file to .exe, to use it in a computer without having Python installed.

How can I do? I have Python from Anaconda3.

What can I do? Thank you!

I followed some instruction found here on Stackoverflow. .I modify the Path in the 'Environment variables' in the windows settings, edited to the Anaconda folder. .I managed to install pip in conda prompt (I guess).

Still, nothing is working. I don't know how to proceed and in general how to do things properly.

I personaly use pyinstaller, its available from pip.
But it will not really compile, it will just bundle.
The difference is compiling means translating to real machine code while bundling is creating a big exe file with all your libs and your python interpreter.

Even if pyinstaller create bigger file and is slower than cython (at execution), I prefer it because it work all the time without work (except lunching it).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM