Home  >  Article  >  Backend Development  >  Where to find python after downloading it

Where to find python after downloading it

下次还敢
下次还敢Original
2024-03-29 06:30:32774browse

The Python installation directory varies between systems: Windows: Default path: C:\Users{username}\AppData\Local\Programs\Python. macOS: Default path: /Library/Frameworks/Python.framework/Versions/{Python version}. Linux: Default path: /usr/bin/python. Other paths: customized or specific versions, use the whereis python command to find in the command line terminal.

Where to find python after downloading it

Installation directory after Python download

Windows system:

  • Default installation path: C:\Users\{username}\AppData\Local\Programs\Python

##macOS system:

    Default installation path:
  • /Library/Frameworks/Python.framework/Versions/{Python version}
##Linux system:

Default installation path:
    /usr/bin/python
  • ##Other installation paths:

If a custom installation path is specified during the installation process, Python will be installed in that path.

  • The installation path may be different for some specific versions or distributions, for example:
  • Miniconda:
    • /Users/ {Username}/miniconda3/bin or /c/Users/{Username}/miniconda3/ScriptsAnaconda:
    • /Users /{username}/anaconda3/bin or /c/Users/{username}/anaconda3/Scripts
  • How to find the installation directory:

Open a command line terminal (such as Windows command prompt, macOS terminal or Linux bash).

    Enter the following command:
<code>whereis python</code>
  • This command will display the path to the Python executable file.

      The above is the detailed content of Where to find python after downloading it. For more information, please follow other related articles on the PHP Chinese website!

    • Statement:
      The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn