🌐
Reddit
reddit.com › r/learnpython › where is python installed on linux
r/learnpython on Reddit: Where is python installed on Linux
February 10, 2021 -

Hi, I have anaconda installed, so typing:

which python

just returns the anaconda path, however, I need to unearth the standard install location as a script is annoyingly asking for python2.7. Google unfortunately only tells you how to install it, and I know that, I've just forgotten where the binary is usually located on linux and google won't tell me that no matter what I type in.

UPDATE: Thanks guys, I found it looking in /usr/bin/ and /usr/local/bin/ and to my delight, it's not there, Just upgraded to Linux Mint 20 and there is python3.8. lovely.

🌐
Quora
quora.com › How-can-I-find-where-Python-is-installed-on-Linux
How to find where Python is installed on Linux - Quora
Answer (1 of 19): It depends on what you mean by “installed.” The binary can be located with the which command, but you might also care where components of the python library are. You can run your version of python and type: [code]import sys sys.path [/code]On my system, I get: [code]['', ...
🌐
Python
docs.python.org › 3 › using › unix.html
2. Using Python on Unix platforms — Python 3.14.6 documentation
Python comes preinstalled on most Linux distributions, and is available as a package on all others. However there are certain features you might want to use that are not available on your distro’s package.
🌐
Reddit
reddit.com › r/linuxquestions › where to install my python project in linux
r/linuxquestions on Reddit: where to install my python project in linux
May 5, 2022 -

Hello, I developed a python software but I do not know where should I place it in the linux filesystem, in order to be able to run it from any command line. I do not want to use alias to do that, is there a sort of bin folder in the user directory where should I place my project?

🌐
Princeton University
introcs.cs.princeton.edu › python › linux3
Hello World in Python 3 on Linux
This page tells you how to setup a Python programming environment for your Linux computer and provides a step-by-step guide for creating and running a simple "Hello, world" Python program.
🌐
LinuxVox
linuxvox.com › blog › where-is-python-installed-linux
Where is Python Installed on Linux: A Comprehensive Guide — linuxvox.com
Now, any Python packages you install will be installed within this virtual environment. To deactivate the virtual environment, simply run: ... Most Linux distributions have a default Python version set. You can use the python command to run this default version.
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-install-python-on-linux
How to Install Python on Linux - GeeksforGeeks
July 12, 2025 - Miniconda is a lightweight version of Anaconda that includes only Conda and its dependencies, allowing you to install Python and manage packages effectively. Here’s a step-by-step guide to installing Python using Miniconda on a Linux system.
🌐
Opensource.com
opensource.com › article › 20 › 4 › install-python-linux
How to install Python on Linux | Opensource.com
April 13, 2020 - Visit the official Python website and download the latest version of Python 3. After the download is complete, you hav a .tar.xz archive file (a "tarball") containing the source code of Python. Once the download is complete, extract the tarball by either using the extractor application of your choice or the Linux tar command, for example:
🌐
GitHub
gist.github.com › MichaelCurrin › 57d70f6aaba1b2b9f8a834ca5dd19a59
Install Python on Linux distros · GitHub
Install using apt-get. sh $ sudo apt-get update $ sudo apt-get install python3 # OR python3.12
🌐
Reddit
reddit.com › r/linuxmint › how to find out where i installed python 3.9?
r/linuxmint on Reddit: How to find out where I installed python 3.9?
November 26, 2020 -

I've installed python before on my main PC I installed it in /bin/sh.... that's something I didn't do on my laptop and now my program(geany) is looking for python in /bin/sh. How to fix this?

🌐
The Hitchhiker's Guide to Python
docs.python-guide.org › starting › install3 › linux
Installing Python 3 on Linux — The Hitchhiker's Guide to Python
$ sudo apt-get install software-properties-common $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3.8 · If you are using other Linux distribution, chances are you already have Python 3 pre-installed as well. If not, use your distribution’s package manager.
🌐
LinuxVox
linuxvox.com › blog › linux-where-are-python-modules-installed
Where Are Python Modules Installed in Linux? — linuxvox.com
System-wide Installation: When ... These modules are typically installed in directories managed by the system's package manager or Python's global site-packages directory....
🌐
Linux Hint
linuxhint.com › python-packages-installed-linux
Where Are Python Packages Installed in Linux – Linux Hint
Local Python packages are installed under /home/<user>/.local/lib/python<version>/. Whatever is your Linux distribution, you can always use the find command to search the files by type, in this case to find the Python packages using its .py extension as shown in the following figure where /usr is the parent directory in the recursive search, -type f defines that you are searching files and not directories, and “*.py” is the extension of files that you are looking for.
🌐
Dive into Python
diveintopython.org › home › learn python programming › how to install python › install python on linux
How to Install Python on Linux - A Step-by-Step Guide
May 3, 2024 - To add Python to the Linux path, ... the command which python. Once you have the path, export it by running export PATH=$PATH:/path/to/python....
🌐
Scaler
scaler.com › home › topics › python › how to install python on linux?
How to Install Python on Linux - Scaler Topics
May 19, 2022 - We can clone the latest Python source code from Python’s official GitHub repository using git to install Python on Linux. ... The configuration script comes with the source code that can be passed through many flags. ... --enable-optimizations - Enable Profile Guided Optimization (PGO) using PROFILE_TASK (disabled by default). Optimization takes a long time to configure, but the resulting python binary interpreter is 10% faster at executing Python code. Navigate to the cpython directory where we have cloned Python source code-
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › beginner questions
Is Python installed by default with Linux Mint? - Linux Mint Forums
April 15, 2021 - Fran_3 wrote: Thu Apr 15, 2021 7:29 pm So to launch Python from the prompt I enter... python3.8 right? In Linux Mint 20.x /usr/bin/python is a symbolic links to /usr/bin/python3 So to start python 3.8.x just enter python at command promt.