Build your own mobile green version of the Python environment

Source: Internet
Author: User

This article only applies to Windows systems, LINUX,MAC or other systems can write their own script to install it, and even most of the system comes with it.

Believe that some people have written the results of the Python program to a friend run and have to install a Python environment, inevitably lose the simplicity of it?

For those who do not know the technology, it may be that he might be asked to install the Python environment without knowing what to do.

Then some people find that Python is installed and copying Python files directly is certainly not possible.

Some specific DLLs are missing ...

so the solution is as follows:

When you install the Python version of Windows, select Install only to individual users and select D or other non-system disks.

In this case, the installer will install all the required DLLs into the directory of your choice.

Finally, you can copy all the files in the installation directory directly, then put them together with your Python program and then write your own bat to run.

If you reject too many files, I recommend that you use other compiled language, write a small program, the file embedded inside the program, run the direct output.

or write a setup program.

At least that's what I did.

I have written a C language program that executes the "Lib_python/_python.exe mcserverw.py" command.

and a bat. BAT program content.

Thanks for the patience to read.

Build your own mobile green version of the Python environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.