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:
- Open PowerShell as Administrator and run:PowerShell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- 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:
sudo apt update
- 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. - 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 followingpip3
command to install the python Numpy module:$ pip3 install numpyAll done. Check for the Numpy's version:
$ python3 -c "import numpy; print(numpy.__version__)" 1.14.2
No comments:
Post a Comment