![]() ![]() This will install SQ Lite support which is also needed. Now on the terminal enter the command “Sudo apt-get install libsqlite3-dev”. This will install bzip2 support which is needed. Now on the terminal enter the command “Sudo apt-get install libbz2-dev”. Open the terminal and enter the command “sudo apt-get install build-essential”.This will install all the build essentials in your system. ![]() If you have already done it before then you can ignore the below three steps. You should install the build-essentials, bzip2, SQLite as a prerequisite, If you are building this software for the first time in your system as it’s mandate or else you will get errors during installation of python. ![]() Please follow the below steps to do Python download and installation on Linux. Run deactivate when you need to deactivate.Read Beginner’s Guide To Programming How to install python on Linux? Type which python, you’ll see you have created python 3.7 in a virtual environment, rather than in the system globally. Python 3.7 can be used in this virtual environment. Python -version (Should be python 3.7 now)ĭone. Source ~/virtual_env/venv_with_python3.7/bin/activate usr/bin/python3.7 -m venv ~/virtual_env/venv_with_python3.7 Which python3.7 (Should be something like /usr/bin/python3.7, if not found, then install python 3.7 manually)Ĭreate Virtual Environment in the Home directory. Sudo add-apt-repository ppa:deadsnakes/ppaįind out where your python 3.7 is located by this command: Sudo apt install software-properties-common Run the following commands below, then re-run the install command above: ![]() Sudo apt-get install python3.7-dev python3.7-venvĮ: Couldn’t find any package by glob ‘python3.7’, stating that the packages can not be installed. Install python 3.7 and it’s virtual environment packages. Below is an implementation of a virtual environment with python 3.7) The best idea is (not to downgrade) to Create a virtual environment with python 3.7(or any 3.x, change the commands below according to your desired version. Suppose you have python 3.8 (or higher) installed on the system, but for a specific task, you need python 3.7 (or lower). Alternatively, you can create a virtual environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |