The content of this article is to build a Python compilation environment in the Windows environment. It has certain reference value. Now I share it with you. Friends in need can refer to it
Windows Not all systems have Python installed by default, so you may need to download and install it, and then download and install a
text editor (using the previous PyCham: click to open the link).
1. Install Python
First, check whether Python is installed on your system. To do this, type command in the Start menu and press Enter to open a command window; you can also hold down the Shift key and right-click on the desktop and select "Open command window here." Enter python in the terminal window
and press Enter; if the Python prompt (>>>) appears, it means that Python is installed on your system. However,
you may also see an error message stating that python is an unrecognized command.
If this is the case, you will need to download the Windows Python installer. To do this, visit http://python.org/downloads/.
You will see two buttons for downloading Python 3 and Python 2. Click the button to download Python 3, which will automatically download the correct installer for your system. After downloading the installer, run it. Be sure to select the checkbox Add Python to
PATH (shown in Figure 1-2), which makes it easier to configure your system.
2. Start a Python terminal session
command window and execute the command python in it. If the Python prompt (>>>) appears, it means that Windows has found the Python version you just installed.
C:\> python Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 22:15:05) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
If so, you can skip directly to the next section - "Running Python in a Terminal Session".
However, the output may look like this:
C:\> python 'python' is not recognized as an internal or external command, operable program or batch file.
In this case, you will have to tell Windows how to find the version of Python you just installed. The command python is usually
stored in the C drive, so please open the C drive in Windows Explorer, find and open the folder starting with Python, and then find the file python. For example, in my computer, there is a folder called Python35, which has a file called python
, so the path of the file python is C:\Python35\python. If you can't find this file, enter python in the Windows Resource Manager's search box. This will allow you to know exactly where the command python is stored on your system.
If you think you know the path to the command python, enter the path in the terminal window to test. To do this, open a
command window and enter the full path you determined:
C:\> C:\Python35\python Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 22:15:05) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
If this works, you already know how to access Python. 3. Run Python in a terminal session
Execute the following command in the Python session and confirm that you see the output "Hello Python world!".
>>> print("Hello Python world!") Hello Python world! >>>
Whenever you want to run a Python code snippet, open a command window and start a Python terminal session. To close the terminal session, press Ctrl Z and then press the Enter key, or execute the command exit().
Related recommendations:
Building a Python programming environment in Windows systems
Building Python environment under windows system
Building python nltk development environment under windows environment
The above is the detailed content of Set up Python compilation environment in Windows environment. For more information, please follow other related articles on the PHP Chinese website!

c盘的users是用户文件夹,主要存放用户的各项配置文件。users文件夹是windows系统的重要文件夹,不能随意删除;它保存了很多用户信息,一旦删除会造成数据丢失,严重的话会导致系统无法启动。

启动任务管理器的三个快捷键是:1、“Ctrl+Shift+Esc”,可直接打开任务管理器;2、“Ctrl+Alt+Delete”,会进入“安全选项”的锁定界面,选择“任务管理器”,即可以打开任务管理器;3、“Win+R”,会打开“运行”窗口,输入“taskmgr”命令,点击“确定”即可调出任务管理器。

PIN码是Windows系统为了方便用户本地登录而独立于window账户密码的快捷登录密码,是Windows系统新添加的一套本地密码策略;在用户登陆了Microsoft账户后就可以设置PIN来代替账户密码,不仅提高安全性,而且也可以让很多和账户相关的操作变得更加方便。PIN码只能通过本机登录,无法远程使用,所以不用担心PIN码被盗。

对于刚刚开始使用PHP的用户来说,如果在Windows操作系统中遇到了“php不是内部或外部命令”的问题,可能会感到困惑。这个错误通常是由于系统无法识别PHP的路径导致的。在本文中,我将为您提供一些可能会导致这个问题的原因和解决方法,以帮助您快速解决这个问题。

win10自带的onenote是UWP版本;onenote是一套用于自由形式的信息获取以及多用户协作工具,而UWP版本是“Universal Windows Platform”的简称,表示windows通用应用平台,不是为特定的终端设计的,而是针对使用windows系统的各种平台。

因为win10系统是不自带扫雷游戏的,需要用户自行手动安装。安装步骤:1、点击打开“开始菜单”;2、在打开的菜单中,找到“Microsoft Store”应用商店,并点击进入;3、在应用商店主页的搜索框中,搜索“minesweeper”;4、在搜索结果中,点击选择需要下载的“扫雷”游戏;5、点击“获取”按钮,等待获取完毕后自动完成安装游戏即可。

windows操作系统的特点包括:1、图形界面;直观高效的面向对象的图形用户界面,易学易用。2、多任务;允许用户同时运行多个应用程序,或在一个程序中同时做几件事情。3、即插即用。4、出色的多媒体功能。5、对内存的自动化管理。

在windows中鼠标指针呈四箭头时一般表示选中对象可以上、下、左、右移动。在Windows中鼠标指针首次用不同的指针来表示不同的状态,如系统忙、移动中、拖放中;在Windows中使用的鼠标指针文件还被称为“光标文件”或“动态光标文件”。


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

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

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

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6
Visual web development tools
