Linux is an excellent environment for machine learning development with Python. The tools can be installed quickly and easily and you can develop and run large models directly. In this tutorial, you will discover how to create and setup a Linux virtual machine for machine learning with Python. After completing this tutorial, you will know: This tutorial is suitable if your base operating system is Windows, Mac OS X, and Linux. Let’s get started. There are a number of reasons that you may want to use a Linux virtual machine for Python machine learning development. For example, below is a list of 5 top benefits for using a virtual machine: Perhaps the most beneficial point is the first, being able to easily use machine learning tools not supported on your environment. I’m an OS X user, and even though machine learning tools can be installed using brew and macports, I still find it easier to setup and use Linux virtual machines for machine learning development. This tutorial is broken down into 3 parts: VirtualBox is a free open source platform for creating and managing virtual machines. Once installed, you can create all the virtual machines you like, as long as you have the ISO images or CDs to install from. I chose Fedora Linux because I think it is a kinder and gentler Linux than some. It is a leading edge for RedHat Linux intended for workstations and developers. Let’s start off by downloading the ISO for Fedora Linux. In this case, the 64-bit version of Fedora 25. We are now ready to create the VM in VirtualBox. Now, let’s create the Fedora virtual machine in VirtualBox. We are now ready to install Fedora from the ISO image. Now, let’s install Fedora Linux on the new virtual machine. Fedora Linux has been installed; let’s finalize the installation and make it ready for use. We now have a Fedora Linux virtual machine ready to install new software. Fedora uses Gnome 3 as the window manager. Gnome 3 is quite different to prior versions of Gnome; you can learn how to get around by using the built-in help system. Let’s start off by installing the required Python libraries for machine learning development. Type: DNF is the software installation system, formally yum. The first time you run dnf, it will update the database of packages, this might take a minute. Type: Enter your password when prompted. Confirm the installation when prompted by pressing “y” and “enter“.本帖隐藏的内容
1. Download and Install VirtualBox
[color=rgb(255, 255, 255) !important]
Download VirtualBox
[color=rgb(255, 255, 255) !important]
Install VirtualBox
[color=rgb(255, 255, 255) !important]
Start VirtualBox
2. Download and Install Fedora Linux
[color=rgb(255, 255, 255) !important]
Download Fedora
[color=rgb(255, 255, 255) !important]
Create Fedora VM Name and Operating System
[color=rgb(255, 255, 255) !important]
Install Fedora
[color=rgb(255, 255, 255) !important]
Install Fedora to Hard Drive
[color=rgb(255, 255, 255) !important]
Install on Virtual Hard Disk
[color=rgb(255, 255, 255) !important]
Create a New User
2.4 Finalize Fedora Linux Installation
[color=rgb(255, 255, 255) !important]
Fedora Login as New User
[color=rgb(255, 255, 255) !important]
Start Terminal
[color=rgb(255, 255, 255) !important]
Python3 Version
[color=rgb(255, 255, 255) !important]