Before testing Python applications in a local development environment, you must prepare the development environment. This topic describes how to configure a Python development environment. It also provides download links for related tools.
- Go to the directory where a Python installation package such as Python-3.7.4.tgz resides and use the following command to extract the package.
tar xvf Python-3.7.4.tgz
- Go to the directory where the Python installation package resides and use the following commands to compile and install Python.
./configure --with-ensurepip=install make && make install
brew update && brew install python
Go to the directory where a Python installation package resides, double-click the installation package, and follow the provided instructions to install Python.
If you develop multiple projects in parallel, we recommend that you isolate these projects by using Python virtual environments. This method helps you eliminate version conflicts between dependency packages of different projects.
For more information about how to use virtual environments, see Virtual environments and packages.