![]() (env) can now begin installing Python packages and libraries that will remain isolated to your virtual environment. The name of the working environment appears in parentheses after it’s created. You should see your env environments Python version: python3.6Īctivate the newly created virtual environment: source env/bin/activate ![]() Validate that your environment is installed with the version of Python that you expect: ls env/lib This directory contains all of the isolated files, packages, modules, and executables that is used by your new environment. ![]() Compile and install python 3.6 on Ubuntu 16. There are two ways to install Python3.6 on Ubuntu 16.04. Just use the commands below: sudo apt update sudo apt install python3.6 Ubuntu 16.04. The command creates a new directory with the name you assigned to your virtual environment. Since Python 3.6 is installed in the universe repository of Ubuntu 16.10 and Ubuntu 17.04, you can directly install python 3.6 from the repository. Replace env with the name you would like to assign to your virtual environment. Since Ubuntu 18.04 does not have Python 2 installed, you should use the -python option to tell virtualenv to use your system’s Python 3.6 interpreter. By default, virtualenv attempts to use the Python 2.5 interpreter to create a new environment. Installing Python 3 on Linux¶ This document describes how to install Python 3.6 or 3.8 on Ubuntu Linux machines. Install the virtualenv tool using your package manager: sudo apt install virtualenvĬreate a python-environments directory in your user’s home directory and navigate to it: mkdir ~/python-environments & cd ~/python-environmentsĬreate a Python virtual environment. Python 3.6 is the default Python interpreter for the Ubuntu 18.04 distribution.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |