1560839419
This tutorial will walk you through installing Python and setting up a programming environment on an Ubuntu 18.04 server.
Python is a flexible and versatile programming language, with strengths in scripting, automation, data analysis, machine learning, and back-end development.
This tutorial will walk you through installing Python and setting up a programming environment on an Ubuntu 18.04 server.
Logged into your Ubuntu 18.04 server as a sudo non-root user, first update and upgrade your system to ensure that your shipped version of Python 3 is up-to-date.
sudo apt update
sudo apt -y upgrade
Confirm installation if prompted to do so.
Check which version of Python 3 is installed by typing:
python3 -V
You’ll receive output similar to the following, depending on when you have updated your system.
OutputPython 3.6.5
To manage software packages for Python, install pip, a tool that will install and manage libraries or modules to use in your projects.
sudo apt install -y python3-pip
Python packages can be installed by typing:
pip3 install package_name
Here, package_name
can refer to any Python package or library, such as Django for web development or NumPy for scientific computing. So if you would like to install NumPy, you can do so with the command pip3 install numpy
.
There are a few more packages and development tools to install to ensure that we have a robust set-up for our programming environment:
sudo apt install build-essential libssl-dev libffi-dev python3-dev
Virtual environments enable you to have an isolated space on your server for Python projects. We’ll use venv, part of the standard Python 3 library, which we can install by typing:
sudo apt install -y python3-venv
You can create a new environment with the pyvenv
command. Here, we’ll call our new environment my_env
, but you can call yours whatever you want.
python3.6 -m venv my_env
Activate the environment using the command below, where my_env
is the name of your programming environment.
source my_env/bin/activate
Your command prompt will now be prefixed with the name of your environment:
Open the Python interpreter:
python
Note that within the Python 3 virtual environment, you can use the command python
instead of python3
, and pip
instead of pip3
.
You’ll know you’re in the interpreter when you receive the following output:
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Now, use the print()
function to create the traditional Hello, World program:
print("Hello, World!")
OutputHello, World!
Quit the Python interpreter:
quit()
Then exit the virtual environment:
deactivate
☞ An A-Z of useful Python tricks
☞ A Complete Machine Learning Project Walk-Through in Python
☞ Machine Learning: how to go from Zero to Hero
☞ Learning Python: From Zero to Hero
☞ Automated Machine Learning on the Cloud in Python
☞ Introduction to PyTorch and Machine Learning
☞ Python Tutorial for Beginners (2019) - Learn Python for Machine Learning and Web Development
☞ How to get started with Python for Deep Learning and Data Science
☞ How To Use Vuls as a Vulnerability Scanner on Ubuntu 18.04
☞ Complete Python Bootcamp: Go from zero to hero in Python 3
☞ Machine Learning A-Z™: Hands-On Python & R In Data Science
☞ Python and Django Full Stack Web Developer Bootcamp
#python #ubuntu
1592447342
What is Pyenv?
Pyenv is a fantastic tool for installing and managing multiple Python versions. It enables a developer to quickly gain access to newer versions of Python and keeps the system clean and free of unnecessary package bloat. It also offers the ability to quickly switch from one version of Python to another, as well as specify the version of Python a given project uses and can automatically switch to that version. This tutorial covers how to install pyenv on Ubuntu 18.04.
#tutorials #apt #debian #environment #git #github #linux #package #package management #package manager #personal package archive #ppa #pyenv #python #python 3 #python support #python-pip #repository #smb #software #source install #ubuntu #ubuntu 18.04 #venv #virtualenv #web application development
1619518440
Welcome to my Blog , In this article, you are going to learn the top 10 python tips and tricks.
…
#python #python hacks tricks #python learning tips #python programming tricks #python tips #python tips and tricks #python tips and tricks advanced #python tips and tricks for beginners #python tips tricks and techniques #python tutorial #tips and tricks in python #tips to learn python #top 30 python tips and tricks for beginners
1595429220
Microsoft Teams is a communication platform used for Chat, Calling, Meetings, and Collaboration. Generally, it is used by companies and individuals working on projects. However, Microsoft Teams is available for macOS, Windows, and Linux operating systems available now.
In this tutorial, we will show you how to install Microsoft Teams on Ubuntu 20.04 machine. By default, Microsoft Teams package is not available in the Ubuntu default repository. However we will show you 2 methods to install Teams by downloading the Debian package from their official website, or by adding the Microsoft repository.
01- First, navigate to teams app downloads page and grab the Debian binary installer. You can simply obtain the URL and pull the binary using wget
;
$ VERSION=1.3.00.5153
$ wget https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_${VERSION}_amd64.deb
#linux #ubuntu #install microsoft teams on ubuntu #install teams ubuntu #microsoft teams #teams #teams download ubuntu #teams install ubuntu #ubuntu install microsoft teams #uninstall teams ubuntu
1626801695
VirtualBox is a widely known and open-source tool offered by Oracle. It’s a cross platform virtualization application that can be installed on any system that allows users to run a number of guest operating systems on single machine over a virtual system.
Means, with the usage of VirtualBox on your system, you can easily install many operating systems and can run them simultaneously which can be helpful to develop, demonstrate, deploy and test applications on a single machine.
How to install VirtualBox On Ubuntu 18.04, 20.04 and 21.04?
Since the virtualization system offered by Oracle is available for cross platforms, even Ubuntu users can install the app and take its benefits. In order to install VirtualBox in Ubuntu variants, there’s a number of approaches that can be helpful.
Installing using default repository
sudo apt install virtualbox
Install using official DEB package
Visit the Virtualbox download page and download DEB package in your machine, and run the following command to install the package using ATP command.
sudo apt install ./virtualbox-6.1_6.1.22-144080_Ubuntu_bionic_amd64.deb
for more approaches and information, Read Here
#install virtual box on ubuntu #install virtual box on ubuntu 18.04 #install virtual box on ubuntu 20.04 #install virtual box on ubuntu21.04
1619510796
Welcome to my Blog, In this article, we will learn python lambda function, Map function, and filter function.
Lambda function in python: Lambda is a one line anonymous function and lambda takes any number of arguments but can only have one expression and python lambda syntax is
Syntax: x = lambda arguments : expression
Now i will show you some python lambda function examples:
#python #anonymous function python #filter function in python #lambda #lambda python 3 #map python #python filter #python filter lambda #python lambda #python lambda examples #python map