python安装以及IDE的配置教程
一、初识Python
Python官方网站:www.python.org
版本:python-3.4.3.amd64
somebody初次接触Python,没有使用Python 2.x进行开发真实项目的经历。所以不知2.x版本和3.x版本孰优孰劣,目前是作为一门兴趣来了解及学习。
二、安装
windows环境安装
由于somebody未有真实的Python开发经验,切目前仅限于学习,故所有的操作均在windows环境下进行。
1.官网下载安装程序,链接:https://www.python.org/downloads/
2.下载完成之后,双击运行下载的python-3.4.3.amd64.msi 文件(自行选择用户,默认为install for all users)
3.指定安装路径
4.选择自定义选项,建议此处勾选上 Add Python.exe to Path(会省略安装好Python之后手动配置path的麻烦)
5.等待安装结束
验证是否安装成功:win键+R,回车,在命令行键入'python'命令显示如下图所示,即为成功
三、IDE
1.Python自带编辑器,somebody接触python之后的前几天一直在使用。就好像初识java的时候,曾经用.txt进行编写java代码一样,是一个逐渐趋向自动化过程。
2.Notepad++是一个开源的文本编辑器,功能强大,可以通过如下方法运行python脚本。
1.按 'F5' 或者点击 '运行',弹出如下窗口:
将命令:
cmd /k python "$(FULL_CURRENT_PATH)" & PAUSE & EXIT
拷贝至上图的框中,设置自定义的快捷键,somebody设置为的 alt+r
2.验证是否设置成功
新建一个python脚本文件(.py结尾),somebody新建了一个test.py的文件并简单写了一个输出语句:print('Hello Python~') 保存。使用刚才定义的快捷键
结果如下图所示:
第一行即为该输出语句的输出结果,证明配置正确。
3.Eclipse插件
1.安装Eclipse
2.Help ==> Install New Software ==> Add,之后,如下图所示
输入name,然后location(http://pydev.org/updates),点击OK
3.等到出现下图所示
选择PyDev,进行安装
装完,重启即可新建python项目了
以上所述就是本文的全部内容了,希望大家能够喜欢。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



When you encounter a critical error after installing Python and are unable to uninstall it, you can take the following steps: Use a third-party uninstall tool (such as Revo Uninstaller) for advanced uninstallation. Manually delete Python files and folders, as well as registry keys and environment variables. Restart your computer for the changes to take effect. Reinstall the latest Python version that matches your system architecture from the official website.

Title: How to solve the problem that PyCharm cannot be opened. PyCharm is a powerful Python integrated development environment, but sometimes we may encounter the problem that PyCharm cannot be opened. In this article, we'll share some common workarounds and provide specific code examples. Hope this helps those who encounter this problem. Method 1: Clear the cache Sometimes PyCharm’s cache files may cause the program to fail to open normally. We can try clearing the cache to solve this problem. Tool

Scipy library installation guide and common error solutions Introduction: Scipy is an open source library for Python scientific computing, providing a wealth of mathematical, scientific and engineering computing functions. It is built on the basis of the NumPy library and can handle some complex numerical calculation problems. This article will introduce the Scipy installation guide, provide solutions to some common errors, and provide specific code examples to help readers better understand and use Scipy. 1. Scipy library installation guide to install Python and pi

PyQt5 installation tutorial: from download to configuration Introduction: PyQt5 is an open source PythonGUI (graphical user interface) framework that provides rich interface controls and powerful functions, allowing developers to easily create efficient and attractive graphical user interfaces. . This article will explain the installation process of PyQt5 in detail and help readers better understand through specific code examples. Step 1: Download First, we need to download the installation file of PyQt5. PyQt5 official website provides us with Windows

Numpy installation guide: One article to solve installation problems, need specific code examples Introduction: Numpy is a powerful scientific computing library in Python. It provides efficient multi-dimensional array objects and tools for operating array data. However, for beginners, installing Numpy may cause some confusion. This article will provide you with a Numpy installation guide to help you quickly solve installation problems. 1. Install the Python environment: Before installing Numpy, you first need to make sure that Py is installed.

Workaround for Python installation package errors: Make sure the module is installed and the installation path is correct. Install the package with administrator rights. Uninstall the current version and reinstall the package specifying the correct version. Find and uninstall or rename the package with the conflicting name. Check the network connection, disable the firewall or use the --trusted-host parameter. Verify that the package name is spelled correctly or check the installation source for inclusion. Install missing dependencies. Make sure the package is installed correctly in the Python path.

Starting from Scratch: A Complete Guide to Installing Flask in Python Introduction Flask is a lightweight Python web framework that is widely used to develop simple and flexible web applications. This article will provide you with a complete guide on how to install Flask from scratch and provide some commonly used code examples. Installing Python First, you need to install Python. You can download it from the Python official website (https://www.python.org)

Even beginners can get started easily: Detailed PyQT installation tutorial PyQT is a GUI development toolkit based on the Python language. It can help developers quickly and easily create various beautiful graphical user interfaces. For beginners who want to learn PyQT from scratch, installing PyQT may be a difficult first step. This article will introduce the installation steps of PyQT in detail and provide specific code examples to help beginners get started easily. Step 1: Install Python Before installing PyQT, you first need to make sure
