Windows platform Python environment installation

1. Install Python
Download the installation package for the windows platform on the official website. After the installation is complete, you need to configure the environment variables
My Computer--Advanced System Settings--Environment Variables--path--Edit--Add on the original record first; Then write your local python installation path, such as: C:\python, click OK, and then click OK. The method to

check whether environment configuration is successful: Open the cmd command prompt and enter python. If the prompt is not an internal command, it means that the configuration is successful. There are problems


2. Download pip and install The
address is also on the official website: https://wiki.python.org/moin/DatabaseInterfaces After

opening, download the pip-9.0.1.tar.gz file, there may be updates

3. Open the cmd command prompt , locate in the folder directory unzipped by pip, and then enter python setup.py install

4. Add environment variables to pip again, and fill in: C:\Python34\Scripts; (assuming python is on the C drive) to


check the environment configuration The method for success: Open the cmd command prompt and enter pip. If the prompt is not an internal command, it means that there is a problem with the configuration.

5. You can use pip to install other packages. Method: Copy the .whl file to be installed to the Scripts directory Next, open the cmd command prompt, navigate to the scripts directory, and use pip install xxxx.whl.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326357604&siteId=291194637