![]() ![]() Python wants you to use separate virtual environments instead of installing the package at the global level via Pip. That's a 'feature' added to avoid conflicts between Python packages installed via Pip and the native package manager. However, in recent distribution versions, pip users are encountering an externally-managed-environment error. Type "help", "copyright", "credits" or "license" for more information.Pip is a popular tool for installing Python packages and modules from Python Package Index. Media-types openssl python3 python3-minimal python3.9 python3.9-minimalĠ upgraded, 13 newly installed, 0 to remove and 7 not upgraded.Īfter this operation, 23.8 MB of additional disk space will be used.įollowed by the download and install and to prove the python3 The following NEW packages will be installed: Python3-doc python3-tk python3-venv python3.9-venv python3.9-doc binutils binfmt-support Media-types openssl python3-minimal python3.9 python3.9-minimal ![]() The following additional packages will be installed:Ĭa-certificates libexpat1 libmpdec3 libpython3-stdlib libpython3.9-minimal libpython3.9-stdlib libsqlite3-0 On WSL Debian sudo apt-get install python3 I don't understand why you would build python from source. How to change from default to alternative Python version on Debian Linux. ![]() You can verify it using python command directly: If you want to make Python 3.9 the default python program, you can follow these steps:ġ) Change ~/.bashrc file to add the following line: alias python='/usr/local/bin/python3.9'Ģ) And then run the following command to make it effective: Type "help", "copyright", "credits" or "license" for more information. Run the following command to install Python 3.9: $ python3.9 Run the following commands in your WSL terminal.Ģ) Install dependent libraries sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-devĤ) Unzip the package tar -xzf Python-3.9.1.tgzĥ) Execute configure script cd Python-3.9.1 You can also apply them to other similar distros. This article summarizes the steps to install Python 3.9.1 on Windows Subsystem for Linux Debian distro. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |