-
The official documentation says the path to the current Python interpreter (or other python implementation).
The details are as follows: 1. Introduction.
Python (English pronunciation: Pa N) is an object-oriented, interpreted computer programming language invented by Guido van Rossum at the end of 1989, and the first public release was released in 1991. The Python syntax is concise and clear, with a rich and powerful class library.
Often nicknamed the glue language, it makes it easy to link together various modules made in other languages, especially C++. A common use case is to use Python to quickly generate a prototype of a program (and sometimes even the final interface of the program), and then rewrite the parts that are specifically required in a more appropriate language, such as the graphics rendering module in a 3D game, which has particularly high performance requirements, can be rewritten in C C++, and then encapsulated into an extended library that Python can call. It is important to note that you may need to consider the platform when using extension libraries, and some may not provide cross-platform implementations.
2. Simple. Python is a language that represents the idea of simplicity. Reading a good python program feels like reading English. It allows you to focus on solving problems rather than figuring out the language itself.
3. Free and open source.
Python is one of the Free and Open Source Software (Free and Open Source Software). Users are free to distribute a copy of the software, read its sources, make changes to it, and use parts of it in new free software. Floss is based on the concept of a group sharing knowledge.
-
1. Use python's built-in commands.
Python comes with a sys module that contains some variables and functions related to the python interpreter and the runtime environment. where the variable represents the absolute path of the python interpreter that is currently in use. Therefore, we can find the installation path of python with the following command:
import sys
print(
When the command is executed, the absolute path of the python interpreter is output, for example:
c:\python\python37\
C: Python Python 37 in this path is the installation path of Python.
Click on the windows menu, type python and press enter.
In the pop-up window, select the General tab, and you can see the full path of the directory, which is the installation path of Python.
3. Check the environment variables.
On Windows, we can find the installation path of Python by looking at the environment variables. The specific steps are as follows:
In the pop-up window, select the Environment Variables tab, find the path variable in System Variables, and double-click to open it.
In the environment variable window, you can see all the paths in the path variable. If python has already been installed correctly and added to the environment variables, then the python installation path should also be there.
-
When using python, sometimes you need to find the installation location of the python package, and find other third-party packages that are installed and installed. Let's take a look at how to find the installation path of Python on the Linux platform.
View on Linux platforms.
For the Linux platform, a lot of the system software is built on top of Python, and if Python goes wrong, then the whole system may be at risk of major problems in the middle of the auction.
Let's take CentOS 7 as an example, in CentOS 7, the base version of Python is, as shown in the following figure.
After the python command can be executed correctly, we first find the location of the python command, and the command to find python is:
The whereis python result is shown below, and you can see that the path is usr bin python
Then we can find out which package it is installed according to this command, and the command is:
rpm -qf /usr/bin/python
As you can see in the figure below, the installation package is.
Then we can find all the file installation paths of python according to the installation package of python, and the command to query all the file paths of the installation package is:
rpm -ql
As you can see in the image below, you can see that all the python command paths are out.
However, the above results do not show the location of all the library files of python, and you still need to find them. In Linux, the package name of the library file is generally the program name -libs, we want to find python here, then the corresponding package name is python-libs, we use the rpm -qa command to query the following, you can see that there is indeed this package, as shown in the following figure:
Once the package is found, run the same query command.
rpm -ql python-libs
The corresponding results are all out, as shown in the second image below:
If you have a large number of third-party library files installed, the result will be very long. Press the spacebar to turn the page and scroll all the way to the bottom to see the location of the python-libs help file, as shown in the figure below. To sell eggplant here, all the python file installation paths on linux have been found.
-
Here's how:
1. Linux: Check the Python installation location.
Sometimes we need to check the installation location of python to install third-party libraries, linux can first python into python cmd, and then enter [import sys] [print], then you can print all python paths.
2. I want to view the Python path installed in Ubuntu.
Method 1: Whereis Python
Method 2: which python
3. I want to check the version number of Python installed in Ubuntu.
Fourth, especially the Linux system, with multiple pythons installed, sometimes you can't find the absolute path of python, sometimes you install a django, and you can't find django installed to **.
5. The path of the current python interpreter (or other python implementation) is to remove the next path separator (under windows'\'import sys>>>path = >>print pathc: python25 >>folder = path[ 0 : print folderc:
python25>>>
Common computer failures.
There is no display when powered on.
If the computer is turned on and there is no display, the first thing to check is the BIOS. The BIOS of the motherboard stores important hardware data, and the BIOS is also a relatively fragile part of the motherboard, which is very vulnerable to damage, and once damaged, the system will not be able to operate.
Generally, all the data in the hard disk will be lost after the BIOS is damaged by a virus, so you can judge whether the BIOS is damaged by detecting whether the hard disk data is intact.
-
Your installation.
To baipython it is better to be directly an.
DU is listed in the root directory of the C drive: zhi
c:\\python35-32
Similar to this dao.
-
DAO 32-bit or 64-bit.
end to install python
The 32-bit and 64-bit versions are installed right.
There is no difference, after double-clicking to open, the first step is to remember to check the Add Python to Path option, which means to add the installation path of python to the path variable of the system environment variable. Then select the custom path, the default C disk can also be installed.
The next step is to select all by default.
Next, remember to check the first box, install for all users, and then select your own directory.
The installation process is still relatively fast, just wait a while.
After installation, open the computer's cmd, verify whether the installation is successful, mainly to see if the environment variables are set, enter python in cmd, and then press enter, if the python version number appears, it means that the software is installed.
If the previous verification fails, it may be that the environment variable is not set, continue to enter set path in the command line, then open the path variable of the system environment variable, check whether there is a python directory (as shown below), if not, you can only manually add it.
-
Looking at the installation path of python is divided into two cases:
1. If you want to view the python path installed in ubuntu, method 1: whereis python
Method 2: which python
2. I want to check the version number of Python installed in Ubuntu
Why can't it be updated? Isn't there a performance trait?
Put it in your sims game installation folder and put all the IFF files in the objects folder, and the rest (far format) in the downloads folder next to the gamedata folder. >>>More
Graphics card is the abbreviation of display card, it is the control circuit and interface between the display and the host computer, and is one of the most basic configuration and important accessories of the computer. As an important part of the computer host, the graphics card is a device for the computer to convert digital and analog signals, and undertakes the task of outputting and displaying graphics, the graphics card is connected to the computer motherboard, it converts the digital signal of the computer into an analog signal for the display to be displayed, and the graphics card still has image processing capabilities, which can assist the processor to work and improve the overall running speed. For people who are engaged in professional graphics planning, graphics cards are very important. >>>More
You just can ** a software, such as your traffic, if it is our China Mobile, you can ** After that, you can log in and then you can view our traffic. Here's an extension of the traffic. >>>More
Hello, method.
If you want to delete it, click on the file name (press and hold for a few seconds) and check it after the check button pops up (Figure 1 below). >>>More