- 1 year ago
Compiling Python 3.6.9 on Windows
Comment
1 / 1
Compiling Python 3.6.9 from source on Windows can be a complex process. Here are the general steps you can follow:
Prerequisites:
- Install Visual Studio with C++ development tools. Make sure to include the optional components like the Windows 10 SDK.
- Install the required dependencies: OpenSSL, zlib, and Tkinter (if needed).
Download the Python source code:
- Go to the Python releases page: https://www.python.org/downloads/source/
- Download the source code for Python 3.6.9.
Extract the source code:
- Extract the downloaded source code archive to a directory of your choice.
Configure the build:
- Open a Command Prompt window and navigate to the extracted Python source code directory.
- Run the following command to configure the build:
.\configure
Build Python:
- Run the following command to start the build process:
nmake
- Run the following command to start the build process:
Install Python:
- After the build completes successfully, run the following command to install Python:
nmake install
Note: Running
nmake install
may require administrative privileges.- After the build completes successfully, run the following command to install Python:
Verify the installation:
- Open a new Command Prompt window and run
python --version
to verify that Python 3.6.9 is installed.
- Open a new Command Prompt window and run
Please note that compiling Python from source can be a time-consuming process, and there may be additional steps or requirements depending on your specific environment and configuration. It's recommended to consult the official Python documentation for detailed instructions and troubleshooting tips: https://docs.python.org/3/using/windows.html#building-python-on-windows