Blog Archive

Thursday, January 23, 2020

How to install ubuntu on windows 10



Ref:

https://docs.microsoft.com/en-us/windows/wsl/install-win10?redirectedfrom=MSDN

https://linuxize.com/post/how-to-install-pip-on-ubuntu-18.04/

Step 1:
Before installing any Linux distros for WSL, you must ensure that the "Windows Subsystem for Linux" optional feature is enabled:
  1. Open PowerShell as Administrator and run:
    PowerShell
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    
  2. Restart your computer when prompted.

Step 2: continue Ubuntu installation.

Other ref:
Step3: in case you need python3 and numpy.

       Start by updating the package list using the following command:
  1. sudo apt update
  2. Use the following command to install pip for Python 3:
    sudo apt install python3-pip
    The command above will also install all the dependencies required for building Python modules.
  3. Once the installation is complete, verify the installation by checking the pip version:
    pip3 --version

Install Numpy Module using PIP

Using the appropriate PIP python version installed on your system execute the following pip3 command to install the python Numpy module:
$ pip3 install numpy
All done. Check for the Numpy's version:
$ python3 -c "import numpy; print(numpy.__version__)"
1.14.2

No comments:

Post a Comment