

- WHERE DOES PYTHON 3 INSTALL INSTALL
- WHERE DOES PYTHON 3 INSTALL SOFTWARE
- WHERE DOES PYTHON 3 INSTALL LICENSE
WHERE DOES PYTHON 3 INSTALL INSTALL
To install a Python package from a source other than the PyPI repository, you can download and unpack the source distribution yourself, and then use its setup.py script to install the package in the user site-packages directory: Install a package using its setup.py script If you omit the -user option, pip will try to install your package in the global site-packages directory (where you do not have the necessary permissions) as a result, the installation will fail.įor more about using pip, see the pip install page in the pip User Guide. Python automatically searches this directory for modules, so prepending this path to the PYTHONPATH environmental variable is not necessary. The -user option directs pip to download and unpack the source distribution for your package (for example, foo) in the user site-packages directory for the running Python for example:

To install a package from the PyPI repository (for example, foo), use the pip install command with the -user flag for example:Ī particular version (for example, foo 1.0.3) The pip package management tool, one of the standard tools maintained by the Python Package Authority (PyPA), is the recommended tool for installing packages from the Python Package Index (PyPI) repository.
WHERE DOES PYTHON 3 INSTALL SOFTWARE
You can save your customized user environment so that it loads every time you start a new session for instructions, see Use modules to manage your software environment on IU research supercomputers. To do this with one command, use module switch for example, on the command line, enter (replace current_version with the version number of the currently loaded python module and new_version with the preferred version number): module switch python/current_version python/new_version If Python is listed among the currently loaded modules, but you prefer or need to use another version, you must remove the currently loaded module before loading the other version. Load the preferred version on the command line, enter (replace version_number with the preferred version number):.


If you have a unique need for a third-party Python package that is not already installed, you can use pip or setup.py to install the package in your home directory. For a list of supported packages, see the Support packages section, or type pip freeze after loading the Python module to see what packages are installed. On Indiana University's research supercomputers, many third-party packages already are installed to supplement commonly used Python builds. The Python Packaging Authority ( PyPA) manages the repository, and maintains a standard set of tools for building, distributing, and installing Python packages.
WHERE DOES PYTHON 3 INSTALL LICENSE
Python developers contribute to the official Python Package Index ( PyPI) repository, making their packages available to the Python community under open source license terms. Python packages are collections of modules (reusable code) that extend and enhance the functionality of the core Python language.
