{"id":3747,"date":"2017-02-27T05:00:32","date_gmt":"2017-02-26T18:00:32","guid":{"rendered":"https:\/\/35.82.237.216\/?p=3747"},"modified":"2019-08-21T14:38:05","modified_gmt":"2019-08-21T04:38:05","slug":"linux-virtual-machine-machine-learning-development-python-3","status":"publish","type":"post","link":"https:\/\/machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/","title":{"rendered":"How to Create a Linux Virtual Machine For Machine Learning Development With Python 3"},"content":{"rendered":"<p>Linux is an excellent environment for machine learning development with Python.<\/p>\n<p>The tools can be installed quickly and easily and you can develop and run large models directly.<\/p>\n<p>In this tutorial, you will discover how to create and setup a Linux virtual machine for machine learning with Python.<\/p>\n<p>After completing this tutorial, you will know:<\/p>\n<ul>\n<li>How to download and install VirtualBox for managing virtual machines.<\/li>\n<li>How to download and setup Fedora Linux.<\/li>\n<li>How to install a SciPy environment for machine learning in Python 3.<\/li>\n<\/ul>\n<p>This tutorial is suitable if your base operating system is Windows, Mac OS X, and Linux.<\/p>\n<p><strong>Kick-start your project<\/strong> with my new book <a href=\"https:\/\/machinelearningmastery.com\/machine-learning-with-python\/\">Machine Learning Mastery With Python<\/a>, including <em>step-by-step tutorials<\/em> and the <em>Python source code<\/em> files for all examples.<\/p>\n<p>Let&#8217;s get started.<\/p>\n<h2>Benefits of a Linux Virtual Machine<\/h2>\n<p>There are a number of reasons that you may want to use a Linux virtual machine for Python machine learning development.<\/p>\n<p>For example, below is a list of 5 top benefits for using a virtual machine:<\/p>\n<ul>\n<li>To use tools not available on your system (if you&#8217;re on Windows).<\/li>\n<li>To install and use machine learning tools without impacting your local environment (e.g. use Python 3 tools).<\/li>\n<li>To have highly customized environments for different projects (Python2 and Python3).<\/li>\n<li>To save the\u00a0state of the\u00a0machine and pick up exactly where you left off (jump from machine to machine).<\/li>\n<li>To share development environment with other developers (set-up once and reuse many times).<\/li>\n<\/ul>\n<p>Perhaps the most beneficial point\u00a0is the first, being able to easily use machine learning tools not supported on your environment.<\/p>\n<p>I&#8217;m an OS X user, and even though machine learning tools can be installed using <em>brew<\/em> and <em>macports<\/em>, I still find it easier to setup and use Linux virtual machines for machine learning development.<\/p>\n<h2>Overview<\/h2>\n<p>This tutorial is broken down into 3 parts:<\/p>\n<ol>\n<li>Download and Install VirtualBox.<\/li>\n<li>Download and Install Fedora Linux in a Virtual Machine.<\/li>\n<li>Install Python Machine Learning Environment<\/li>\n<\/ol>\n<h2>1. Download and Install VirtualBox<\/h2>\n<p>VirtualBox is a free open source platform for creating and managing virtual machines.<\/p>\n<p>Once installed, you can create all the virtual machines you like, as long as you have the ISO images or CDs to install from.<\/p>\n<ul>\n<li>1. Visit <a href=\"https:\/\/www.virtualbox.org\">VirtualBox.org<\/a><\/li>\n<li>2. Click &#8220;<em>Download VirtualBox<\/em>&#8221; to access the <a href=\"https:\/\/www.virtualbox.org\/wiki\/Downloads\">Downloads page<\/a>.<\/li>\n<\/ul>\n<div id=\"attachment_3748\" style=\"width: 766px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3748\" class=\"size-full wp-image-3748\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Download-VirtualBox.png\" alt=\"Download VirtualBox\" width=\"756\" height=\"338\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Download-VirtualBox.png 756w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Download-VirtualBox-300x134.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><p id=\"caption-attachment-3748\" class=\"wp-caption-text\">Download VirtualBox<\/p><\/div>\n<ul>\n<li>3. Choose binaries for your workstation.<\/li>\n<li>4. Install the software for your system and follow the installation instructions.<\/li>\n<\/ul>\n<div id=\"attachment_3751\" style=\"width: 682px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3751\" class=\"size-full wp-image-3751\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-VirtualBox.png\" alt=\"Install VirtualBox\" width=\"672\" height=\"409\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-VirtualBox.png 672w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-VirtualBox-300x183.png 300w\" sizes=\"auto, (max-width: 672px) 100vw, 672px\" \/><p id=\"caption-attachment-3751\" class=\"wp-caption-text\">Install VirtualBox<\/p><\/div>\n<ul>\n<li>5. Open the VirtualBox software and confirm it works.<\/li>\n<\/ul>\n<div id=\"attachment_3752\" style=\"width: 778px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3752\" class=\"size-full wp-image-3752\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Start-VirtualBox.png\" alt=\"Start VirtualBox\" width=\"768\" height=\"569\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Start-VirtualBox.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Start-VirtualBox-300x222.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><p id=\"caption-attachment-3752\" class=\"wp-caption-text\">Start VirtualBox<\/p><\/div>\n<h2>2. Download and Install Fedora Linux<\/h2>\n<p>I chose <a href=\"https:\/\/en.wikipedia.org\/wiki\/Fedora_(operating_system)\">Fedora Linux<\/a> because I think it is a kinder and gentler Linux than some.<\/p>\n<p>It is a leading edge for RedHat Linux intended for workstations and developers.<\/p>\n<h3>2.1 Download the Fedora ISO Image<\/h3>\n<p>Let&#8217;s start off by downloading the ISO for Fedora Linux. In this case, the 64-bit version of Fedora 25.<\/p>\n<ul>\n<li>1. Visit <a href=\"https:\/\/getfedora.org\">GetFedora.org<\/a>.<\/li>\n<li>2. Click &#8220;<em>Workstation<\/em>&#8221; to access the <a href=\"https:\/\/getfedora.org\/en\/workstation\/\">Workstation page<\/a>.<\/li>\n<li>3. Click &#8220;<em>Download now<\/em>&#8221; to access the <a href=\"https:\/\/getfedora.org\/en\/workstation\/download\/\">Downloads page<\/a>.<\/li>\n<li>4. Under &#8220;Other Downloads&#8221; click &#8220;<em>64-bit 1.3GB Live image<\/em>&#8220;<\/li>\n<\/ul>\n<div id=\"attachment_3750\" style=\"width: 349px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3750\" class=\"size-full wp-image-3750\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Download-Fedora.png\" alt=\"Download Fedora\" width=\"339\" height=\"289\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Download-Fedora.png 339w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Download-Fedora-300x256.png 300w\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" \/><p id=\"caption-attachment-3750\" class=\"wp-caption-text\">Download Fedora<\/p><\/div>\n<ul>\n<li>5. You should now have an ISO file with the name:\n<ul>\n<li>&#8220;<em>Fedora-Workstation-Live-x86_64-25-1.3.iso<\/em>&#8220;.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>We are now ready to create the VM in VirtualBox.<\/p>\n<h3>2.2 Create the Fedora Virtual Machine<\/h3>\n<p>Now, let&#8217;s create the Fedora virtual machine in VirtualBox.<\/p>\n<ul>\n<li>1. Open the VirtualBox software.<\/li>\n<li>2. Click &#8220;<em>New<\/em>&#8221; button.<\/li>\n<li>3. Select the Name and operating system.\n<ul>\n<li>name: <em>Fedora25<\/em><\/li>\n<li>type: <em>Linux<\/em><\/li>\n<li>version: <em>Fedora (64-bit)<\/em><\/li>\n<li>Click &#8220;<em>Continue<\/em>&#8220;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div id=\"attachment_3754\" style=\"width: 782px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3754\" class=\"size-full wp-image-3754\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Create-Fedora-VM-Name-and-Operating-System.png\" alt=\"Create Fedora VM Name and Operating System\" width=\"772\" height=\"570\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Create-Fedora-VM-Name-and-Operating-System.png 772w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Create-Fedora-VM-Name-and-Operating-System-300x222.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Create-Fedora-VM-Name-and-Operating-System-768x567.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><p id=\"caption-attachment-3754\" class=\"wp-caption-text\">Create Fedora VM Name and Operating System<\/p><\/div>\n<ul>\n<li>4. Configure the Memory Size\n<ul>\n<li>2048<\/li>\n<\/ul>\n<\/li>\n<li>5. Configure the Hard Disk\n<ul>\n<li>Create a virtual hard disk now<\/li>\n<li>Hard disk file type<\/li>\n<li>VDI (VirtualBox Disk Image)<\/li>\n<li>Storage on physical hard disk<\/li>\n<li>Dynamically allocated<\/li>\n<li>File location and size: <em>10GB<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>We are now ready to install Fedora from the ISO image.<\/p>\n<h3>2.3 Install Fedora Linux<\/h3>\n<p>Now, let&#8217;s install Fedora Linux on the new virtual machine.<\/p>\n<ul>\n<li>1. Select the new virtual machine and click the &#8220;<em>Start<\/em>&#8221; button.<\/li>\n<li>2. Click Folder Icon and choose the Fedora ISO file:\n<ul>\n<li>&#8220;<em>Fedora-Workstation-Live-x86_64-25-1.3.iso<\/em>&#8220;.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div id=\"attachment_3755\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3755\" class=\"size-full wp-image-3755\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-Fedora.png\" alt=\"Install Fedora\" width=\"640\" height=\"521\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-Fedora.png 640w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-Fedora-300x244.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><p id=\"caption-attachment-3755\" class=\"wp-caption-text\">Install Fedora<\/p><\/div>\n<ul>\n<li>3. Click the &#8220;<em>Start<\/em>&#8221; button.<\/li>\n<li>4. Select the first option &#8220;<em>Start Fedora-Live-Workstation-Live 25<\/em>&#8221; and press the\u00a0<em>Enter<\/em>\u00a0key.<\/li>\n<li>5. Hit the &#8220;<em>Esc<\/em>&#8221; key to skip the\u00a0check.<\/li>\n<li>6. Select &#8220;<em>Live System User<\/em>&#8220;.<\/li>\n<li>7. Select &#8220;<em>Install to Hard Drive<\/em>&#8220;.<\/li>\n<\/ul>\n<div id=\"attachment_3756\" style=\"width: 1032px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3756\" class=\"size-full wp-image-3756\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-Fedora-to-Hard-Drive.png\" alt=\"Install Fedora to Hard Drive\" width=\"1022\" height=\"810\" \/><p id=\"caption-attachment-3756\" class=\"wp-caption-text\">Install Fedora to Hard Drive<\/p><\/div>\n<ul>\n<li>8. Complete &#8220;<em>Language Selection<\/em>&#8221; (English)<\/li>\n<li>9. Complete &#8220;<em>Installation Destination<\/em>&#8221; (&#8220;<em>ATA VBOX HARDDISK<\/em>&#8220;).\n<ul>\n<li>You may need to wait one minute for the VM to create the hard disk.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div id=\"attachment_3757\" style=\"width: 1032px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3757\" class=\"size-full wp-image-3757\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-on-Virtual-Hard-Disk.png\" alt=\"Install on Virtual Hard Disk\" width=\"1022\" height=\"804\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-on-Virtual-Hard-Disk.png 1022w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-on-Virtual-Hard-Disk-300x236.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Install-on-Virtual-Hard-Disk-768x604.png 768w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><p id=\"caption-attachment-3757\" class=\"wp-caption-text\">Install on Virtual Hard Disk<\/p><\/div>\n<ul>\n<li>10. Click &#8220;<em>Begin Installation<\/em>&#8220;.<\/li>\n<li>11. Set root password.<\/li>\n<li>12. Create a user for yourself.\n<ul>\n<li>Note down the username and password (so that you can use it later).<\/li>\n<li>Tick the &#8220;<em>Make this user administrator<\/em>&#8221; (so you can install software).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div id=\"attachment_3760\" style=\"width: 1031px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3760\" class=\"size-full wp-image-3760\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Create-a-New-User.png\" alt=\"Create a New User\" width=\"1021\" height=\"810\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Create-a-New-User.png 1021w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Create-a-New-User-300x238.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Create-a-New-User-768x609.png 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/><p id=\"caption-attachment-3760\" class=\"wp-caption-text\">Create a New User<\/p><\/div>\n<ul>\n<li>13. Wait for the\u00a0installation to complete&#8230; (5 minutes?)<\/li>\n<li>14. Click &#8220;<em>Quit<\/em>\u201d, click power icon in top right; select power off.<\/li>\n<\/ul>\n<h3>2.4 Finalize Fedora Linux Installation<\/h3>\n<p>Fedora Linux has been installed; let&#8217;s finalize the installation and make it ready for use.<\/p>\n<ul>\n<li>1. In VirtualBox with the Fedora25 VM selected, under &#8220;<em>Storage<\/em>&#8220;, click on &#8220;<em>Optical Drive<\/em>&#8220;.\n<ul>\n<li>Select &#8220;<em>Remove disk from virtual drive<\/em>&#8221; to eject the ISO image.<\/li>\n<\/ul>\n<\/li>\n<li>2. Click the &#8220;<em>Start<\/em>&#8221; button to start the Fedora Linux installation.<\/li>\n<li>3. Login as the user you created.<\/li>\n<\/ul>\n<div id=\"attachment_3758\" style=\"width: 1030px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3758\" class=\"size-full wp-image-3758\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Fedora-Login-as-New-User.png\" alt=\"Fedora Login as New User\" width=\"1020\" height=\"803\" \/><p id=\"caption-attachment-3758\" class=\"wp-caption-text\">Fedora Login as New User<\/p><\/div>\n<ul>\n<li>4. Finalize installation\n<ul>\n<li>Choose language &#8220;<em>English<\/em>&#8220;<\/li>\n<li>Click &#8220;<em>Next<\/em>&#8220;<\/li>\n<li>Choose Keyboard &#8220;<em>US<\/em>&#8220;<\/li>\n<li>Click &#8220;<em>Next<\/em>&#8220;<\/li>\n<li>Configure Privacy<\/li>\n<li>Click &#8220;<em>Next<\/em>&#8220;<\/li>\n<li>Connect Your Online Accounts<\/li>\n<li>Click &#8220;<em>Skip<\/em>&#8220;<\/li>\n<li>Click &#8220;<em>Start using Fedora<\/em>&#8220;<\/li>\n<\/ul>\n<\/li>\n<li>5. Close the help system that starts automatically.<\/li>\n<\/ul>\n<p>We now have a Fedora Linux virtual machine ready to install new software.<\/p>\n<h2>3. Install Python Machine Learning Environment<\/h2>\n<p>Fedora uses <a href=\"https:\/\/en.wikipedia.org\/wiki\/GNOME\">Gnome 3<\/a> as the window manager.<\/p>\n<p>Gnome 3 is quite different to prior versions of Gnome; you can learn how to get around by using the built-in help system.<\/p>\n<h3>3.1 Install Python Environment<\/h3>\n<p>Let&#8217;s start off by installing the required Python libraries for machine learning development.<\/p>\n<ul>\n<li>1. Open the terminal.\n<ul>\n<li>Click &#8220;<em>Activities<\/em>&#8220;<\/li>\n<li>Type &#8220;<em>terminal<\/em>&#8220;<\/li>\n<li>Click icon or press enter<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div id=\"attachment_3759\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3759\" class=\"size-large wp-image-3759\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Start-Terminal-1024x810.png\" alt=\"Start Terminal\" width=\"1024\" height=\"810\" \/><p id=\"caption-attachment-3759\" class=\"wp-caption-text\">Start Terminal<\/p><\/div>\n<ul>\n<li>2. Confirm Python3 was installed.<\/li>\n<\/ul>\n<p>Type:<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">python3 --version<\/pre>\n<div id=\"attachment_3761\" style=\"width: 1030px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3761\" class=\"size-full wp-image-3761\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Python3-Version.png\" alt=\"Python3 Version\" width=\"1020\" height=\"808\" \/><p id=\"caption-attachment-3761\" class=\"wp-caption-text\">Python3 Version<\/p><\/div>\n<ul>\n<li>3. Install the Python machine learning environment. Specifically:\n<ul>\n<li>NumPy<\/li>\n<li>SciPy<\/li>\n<li>Pandas<\/li>\n<li>Matplotlib<\/li>\n<li>Statsmodels<\/li>\n<li>Scikit-Learn<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/DNF_(software)\">DNF<\/a> is the software installation system, formally yum. The first time you run <em>dnf<\/em>, it will update the database of packages, this might take a minute.<\/p>\n<p>Type:<\/p>\n<pre class=\"lang:default highlight:0 decode:true \">sudo dnf install python3-numpy python3-scipy python3-scikit-learn python3-pandas python3-matplotlib python3-statsmodels<\/pre>\n<p>Enter your password when prompted.<\/p>\n<p>Confirm the installation when prompted by pressing &#8220;<em>y<\/em>&#8221; and &#8220;<em>enter<\/em>&#8220;.<\/p>\n<h3>3.2 Confirm Python Environment<\/h3>\n<p>Now that the environment is installed, we can confirm it by printing the versions of each required library.<\/p>\n<ul>\n<li>1. Open Gedit.\n<ul>\n<li>Click &#8220;<em>Activities<\/em>&#8220;<\/li>\n<li>Type &#8220;<em>gedit<\/em>&#8220;<\/li>\n<li>Click icon or press enter<\/li>\n<\/ul>\n<\/li>\n<li>2. Type the following script and save it as <em>versions.py<\/em>\u00a0in the home directory.<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \"># scipy\r\nimport scipy\r\nprint('scipy: %s' % scipy.__version__)\r\n# numpy\r\nimport numpy\r\nprint('numpy: %s' % numpy.__version__)\r\n# matplotlib\r\nimport matplotlib\r\nprint('matplotlib: %s' % matplotlib.__version__)\r\n# pandas\r\nimport pandas\r\nprint('pandas: %s' % pandas.__version__)\r\n# scikit-learn\r\nimport sklearn\r\nprint('sklearn: %s' % sklearn.__version__)\r\n# statsmodels\r\nimport statsmodels\r\nprint('statsmodels: %s' % statsmodels.__version__)<\/pre>\n<p>There is no copy-paste support; you may want to open Firefox within the VM and navigate to this page and copy paste the script into your Gedit window.<\/p>\n<div id=\"attachment_3762\" style=\"width: 1032px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3762\" class=\"size-full wp-image-3762\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Write-Versions-Script.png\" alt=\"Write Versions Script\" width=\"1022\" height=\"808\" \/><p id=\"caption-attachment-3762\" class=\"wp-caption-text\">Write Versions Script<\/p><\/div>\n<ul>\n<li>3. Run the script in the terminal.<\/li>\n<\/ul>\n<p>Type:<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">python3 versions.py<\/pre>\n<div id=\"attachment_3763\" style=\"width: 1033px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3763\" class=\"size-full wp-image-3763\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Python3-Check-Library-Versions.png\" alt=\"Python3 Check Library Versions\" width=\"1023\" height=\"808\" \/><p id=\"caption-attachment-3763\" class=\"wp-caption-text\">Python3 Check Library Versions<\/p><\/div>\n<h3>Tips For Using the VM<\/h3>\n<p>This section lists some tips using the VM for machine learning development.<\/p>\n<ul>\n<li><strong>Copy-paste and Folder Sharing<\/strong>. These features require the installation of &#8220;<a href=\"https:\/\/www.virtualbox.org\/manual\/ch04.html\">Guest Additions<\/a>&#8221; in the Linux VM. I have not been able to get this to install correctly and therefore do not use these features. You can try if you like; let me know how you do in the comments.<\/li>\n<li><strong>Use GitHub<\/strong>. I recommend storing all of your code in GitHub and checking the code in and out from the VM. It makes life a lot easier for getting code and assets in and out of the VM.<\/li>\n<li><strong>Use Sublime<\/strong>. I think sublime is a great text editor on Linux for development, better than Gedit at least.<\/li>\n<li><strong>Use AWS for large jobs<\/strong>. You can use the same procedure to setup Fedora Linux on Amazon Web Services for running large models in the cloud.<\/li>\n<li><strong>VM Tools<\/strong>. You can save the VM at any point by closing the window. You can also take a snapshot of the VM at any point and return to the snapshot. This can be helpful if you are making large changes to the file system.<\/li>\n<li><strong>Python2<\/strong>. You can easily install Python2 alongside Python 3 in Linux and use the python (rather than python3) binary or use alternatives to switch between the two.<\/li>\n<li><strong>Notebooks<\/strong>. Consider running a notebook server inside the VM and opening up the firewall so that you can connect and run from your main workstation outside of the VM.<\/li>\n<\/ul>\n<p>Do you have any tips to share? Let me know in the comments.<\/p>\n<h2>Further Reading<\/h2>\n<p>Below are some resources for further reading if you are new to the tools used in this tutorial.<\/p>\n<ul>\n<li><a href=\"https:\/\/www.virtualbox.org\/manual\/\">VirtualBox User Manual<\/a><\/li>\n<li><a href=\"https:\/\/docs.fedoraproject.org\/en-US\/index.html\">Fedora Documentation<\/a><\/li>\n<li><a href=\"https:\/\/fedoraproject.org\/wiki\/Help\">Fedora Wiki<\/a> (tons of help on common topics)<\/li>\n<li><a href=\"https:\/\/www.scipy.org\/\">SciPy Homepage<\/a><\/li>\n<li><a href=\"http:\/\/scikit-learn.org\/\">Scikit-Learn Homepage<\/a><\/li>\n<\/ul>\n<h2>Summary<\/h2>\n<p>In this tutorial, you discovered how to setup a Linux virtual machine for Python machine learning development.<\/p>\n<p>Specifically, you learned:<\/p>\n<ul>\n<li>How to download and install VirtualBox, free, open-source software for managing virtual machines.<\/li>\n<li>How to download and setup Fedora Linux, a friendly Linux distribution for developers.<\/li>\n<li>How to install and test a Python3 environment for machine learning development.<\/li>\n<\/ul>\n<p>Did you complete the tutorial?<br \/>\nLet me know how it went in the comments below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3761,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[281],"tags":[],"class_list":["post-3747","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-machine-learning"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create a Linux Virtual Machine For Machine Learning Development With Python 3 - MachineLearningMastery.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Linux Virtual Machine For Machine Learning Development With Python 3 - MachineLearningMastery.com\" \/>\n<meta property=\"og:description\" content=\"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: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/\" \/>\n<meta property=\"og:site_name\" content=\"MachineLearningMastery.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MachineLearningMastery\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/MachineLearningMastery\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-26T18:00:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-21T04:38:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Python3-Version.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"808\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jason Brownlee\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jason Brownlee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/\"},\"author\":{\"name\":\"Jason Brownlee\",\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/#\\\/schema\\\/person\\\/8a7b819d3cca7cfe78f1e65296f0c8fe\"},\"headline\":\"How to Create a Linux Virtual Machine For Machine Learning Development With Python 3\",\"datePublished\":\"2017-02-26T18:00:32+00:00\",\"dateModified\":\"2019-08-21T04:38:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/\"},\"wordCount\":1557,\"commentCount\":34,\"publisher\":{\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/machinelearningmastery.com\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/Python3-Version.jpg\",\"articleSection\":[\"Python Machine Learning\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/\",\"url\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/\",\"name\":\"How to Create a Linux Virtual Machine For Machine Learning Development With Python 3 - MachineLearningMastery.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/machinelearningmastery.com\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/Python3-Version.jpg\",\"datePublished\":\"2017-02-26T18:00:32+00:00\",\"dateModified\":\"2019-08-21T04:38:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/#primaryimage\",\"url\":\"https:\\\/\\\/machinelearningmastery.com\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/Python3-Version.jpg\",\"contentUrl\":\"https:\\\/\\\/machinelearningmastery.com\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/Python3-Version.jpg\",\"width\":1020,\"height\":808,\"caption\":\"Python3 Version\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/linux-virtual-machine-machine-learning-development-python-3\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/machinelearningmastery.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create a Linux Virtual Machine For Machine Learning Development With Python 3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/#website\",\"url\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/\",\"name\":\"MachineLearningMastery.com\",\"description\":\"Making developers awesome at machine learning\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/#organization\",\"name\":\"Machine Learning Mastery\",\"url\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/machinelearningmastery.com\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-icon.png\",\"contentUrl\":\"https:\\\/\\\/machinelearningmastery.com\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-icon.png\",\"width\":512,\"height\":512,\"caption\":\"Machine Learning Mastery\"},\"image\":{\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/MachineLearningMastery\\\/\",\"https:\\\/\\\/x.com\\\/TeachTheMachine\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/machine-learning-mastery\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.machinelearningmastery.com\\\/#\\\/schema\\\/person\\\/8a7b819d3cca7cfe78f1e65296f0c8fe\",\"name\":\"Jason Brownlee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5f1c8e7a708d04b1bd173e9120107d3fd43d8fad5be7c94796b877515b6d0357?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5f1c8e7a708d04b1bd173e9120107d3fd43d8fad5be7c94796b877515b6d0357?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5f1c8e7a708d04b1bd173e9120107d3fd43d8fad5be7c94796b877515b6d0357?s=96&d=mm&r=g\",\"caption\":\"Jason Brownlee\"},\"description\":\"Jason Brownlee, PhD is a machine learning specialist who teaches developers how to get results with modern machine learning methods via hands-on tutorials.\",\"sameAs\":[\"https:\\\/\\\/machinelearningmastery.com\",\"https:\\\/\\\/www.facebook.com\\\/MachineLearningMastery\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/machine-learning-mastery\",\"https:\\\/\\\/x.com\\\/teachthemachine\"],\"url\":\"https:\\\/\\\/machinelearningmastery.com\\\/author\\\/jasonb\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create a Linux Virtual Machine For Machine Learning Development With Python 3 - MachineLearningMastery.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/","og_locale":"en_US","og_type":"article","og_title":"How to Create a Linux Virtual Machine For Machine Learning Development With Python 3 - MachineLearningMastery.com","og_description":"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: [&hellip;]","og_url":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/","og_site_name":"MachineLearningMastery.com","article_publisher":"https:\/\/www.facebook.com\/MachineLearningMastery\/","article_author":"https:\/\/www.facebook.com\/MachineLearningMastery\/","article_published_time":"2017-02-26T18:00:32+00:00","article_modified_time":"2019-08-21T04:38:05+00:00","og_image":[{"width":1020,"height":808,"url":"https:\/\/www.machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Python3-Version.jpg","type":"image\/jpeg"}],"author":"Jason Brownlee","twitter_misc":{"Written by":"Jason Brownlee","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/#article","isPartOf":{"@id":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/"},"author":{"name":"Jason Brownlee","@id":"https:\/\/www.machinelearningmastery.com\/#\/schema\/person\/8a7b819d3cca7cfe78f1e65296f0c8fe"},"headline":"How to Create a Linux Virtual Machine For Machine Learning Development With Python 3","datePublished":"2017-02-26T18:00:32+00:00","dateModified":"2019-08-21T04:38:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/"},"wordCount":1557,"commentCount":34,"publisher":{"@id":"https:\/\/www.machinelearningmastery.com\/#organization"},"image":{"@id":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/#primaryimage"},"thumbnailUrl":"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Python3-Version.jpg","articleSection":["Python Machine Learning"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/","url":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/","name":"How to Create a Linux Virtual Machine For Machine Learning Development With Python 3 - MachineLearningMastery.com","isPartOf":{"@id":"https:\/\/www.machinelearningmastery.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/#primaryimage"},"image":{"@id":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/#primaryimage"},"thumbnailUrl":"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Python3-Version.jpg","datePublished":"2017-02-26T18:00:32+00:00","dateModified":"2019-08-21T04:38:05+00:00","breadcrumb":{"@id":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/#primaryimage","url":"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Python3-Version.jpg","contentUrl":"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Python3-Version.jpg","width":1020,"height":808,"caption":"Python3 Version"},{"@type":"BreadcrumbList","@id":"https:\/\/www.machinelearningmastery.com\/linux-virtual-machine-machine-learning-development-python-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/machinelearningmastery.com\/"},{"@type":"ListItem","position":2,"name":"How to Create a Linux Virtual Machine For Machine Learning Development With Python 3"}]},{"@type":"WebSite","@id":"https:\/\/www.machinelearningmastery.com\/#website","url":"https:\/\/www.machinelearningmastery.com\/","name":"MachineLearningMastery.com","description":"Making developers awesome at machine learning","publisher":{"@id":"https:\/\/www.machinelearningmastery.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.machinelearningmastery.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.machinelearningmastery.com\/#organization","name":"Machine Learning Mastery","url":"https:\/\/www.machinelearningmastery.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.machinelearningmastery.com\/#\/schema\/logo\/image\/","url":"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2016\/09\/cropped-icon.png","contentUrl":"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2016\/09\/cropped-icon.png","width":512,"height":512,"caption":"Machine Learning Mastery"},"image":{"@id":"https:\/\/www.machinelearningmastery.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MachineLearningMastery\/","https:\/\/x.com\/TeachTheMachine","https:\/\/www.linkedin.com\/company\/machine-learning-mastery"]},{"@type":"Person","@id":"https:\/\/www.machinelearningmastery.com\/#\/schema\/person\/8a7b819d3cca7cfe78f1e65296f0c8fe","name":"Jason Brownlee","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5f1c8e7a708d04b1bd173e9120107d3fd43d8fad5be7c94796b877515b6d0357?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5f1c8e7a708d04b1bd173e9120107d3fd43d8fad5be7c94796b877515b6d0357?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5f1c8e7a708d04b1bd173e9120107d3fd43d8fad5be7c94796b877515b6d0357?s=96&d=mm&r=g","caption":"Jason Brownlee"},"description":"Jason Brownlee, PhD is a machine learning specialist who teaches developers how to get results with modern machine learning methods via hands-on tutorials.","sameAs":["https:\/\/machinelearningmastery.com","https:\/\/www.facebook.com\/MachineLearningMastery\/","https:\/\/www.linkedin.com\/company\/machine-learning-mastery","https:\/\/x.com\/teachthemachine"],"url":"https:\/\/machinelearningmastery.com\/author\/jasonb\/"}]}},"modified_by":"Jason Brownlee","taxonomy_info":{"category":[{"value":281,"label":"Python Machine Learning"}]},"featured_image_src_large":["https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2017\/02\/Python3-Version.jpg",1020,808,false],"author_info":{"display_name":"Jason Brownlee","author_link":"https:\/\/machinelearningmastery.com\/author\/jasonb\/"},"comment_info":35,"category_info":[{"term_id":281,"name":"Python Machine Learning","slug":"python-machine-learning","term_group":0,"term_taxonomy_id":283,"taxonomy":"category","description":"","parent":0,"count":81,"filter":"raw","cat_ID":281,"category_count":81,"category_description":"","cat_name":"Python Machine Learning","category_nicename":"python-machine-learning","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/machinelearningmastery.com\/wp-json\/wp\/v2\/posts\/3747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/machinelearningmastery.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/machinelearningmastery.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/machinelearningmastery.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/machinelearningmastery.com\/wp-json\/wp\/v2\/comments?post=3747"}],"version-history":[{"count":0,"href":"https:\/\/machinelearningmastery.com\/wp-json\/wp\/v2\/posts\/3747\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/machinelearningmastery.com\/wp-json\/wp\/v2\/media\/3761"}],"wp:attachment":[{"href":"https:\/\/machinelearningmastery.com\/wp-json\/wp\/v2\/media?parent=3747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/machinelearningmastery.com\/wp-json\/wp\/v2\/categories?post=3747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/machinelearningmastery.com\/wp-json\/wp\/v2\/tags?post=3747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}