Note: I know you said pyinstaller-like but pyinstaller has a note about macos. Setup your virtual environment (or just pip install -r requirements.txt with your requirements file but I'm a stickler about venvs) You have to check that the library you're using is compatible with both by looking at their docs.Īn example of this is to use virtualbox mac image. If you're actually using pyinstaller then it is compatible with both mac and windows. You should consult the documentation for the libraries you are using.ģ) will I create a executable file in the same way as Windows, I mean I will use a "Pyinstaller" type library? Some libraries have different behavior between macOS and Windows, yes. You can use a virtual machine and build for mac.Ģ) will my code work on mac without any editing? What about external libraries? Do you know any easy way to copy/paste my "python with used libraries" from Windows to Mac? Mac Create a folder on your computer to use for your Python programs. Type hello.py to run your program If it didnt work, make sure your PATH contains the python directory. 1) can I do it from a PC with Windows or i need Mac? I guess I have to have access to a Mac. Type cd pythonpractice to c hange d irectory to your pythonpractice folder, and hit Enter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |