PS C:\Users\TEST_USER\MyShell> python -m pip install pandas
PS C:\Users\TEST_USER\MyShell> pip install scipy
Collecting scipy
Downloading scipy-1.5.1-cp38-cp38-win_amd64.whl (31.4 MB)
|████████████████████████████████| 31.4 MB 152 kB/s
Requirement already satisfied: numpy>=1.14.5 in c:\users\test_user\appdata\local\programs\python\python38\lib\site-packages (from scipy) (1.18.2)
Installing collected packages: scipy
Successfully installed scipy-1.5.1
user_name@DESKTOP-3128479:/mnt/c/Users/TEST_USER/MyShell$ pip install pandas
Command 'pip' not found, but there are 18 similar ones.
user_name@DESKTOP-3128479:/mnt/c/Users/TEST_USER/MyShell$ python3 -m pip freeze
/usr/bin/python3: No module named pip
user_name@DESKTOP-3128479:/mnt/c/Users/TEST_USER/MyShell$ python3
Python 3.8.2 (default, Mar 13 2020, 10:14:16)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pandas'
>>>
Reference URL https://qiita.com/HiroRittsu/items/e58063fb74d799d37cc4 Follow this procedure.
user_name@DESKTOP-3128479:/mnt/c/Users/TEST_USER/MyShell$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1825k 100 1825k 0 0 242k 0 0:00:07 0:00:07 --:--:-- 412k
user_name@DESKTOP-3128479:/mnt/c/Users/TEST_USER/MyShell$ sudo python3 get-pip.py
Collecting pip
Downloading pip-20.1.1-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 1.0 MB/s
Collecting wheel
Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Installing collected packages: pip, wheel
Successfully installed pip-20.1.1 wheel-0.34.2
Confirm pip installation.
user_name@DESKTOP-3128479:/mnt/c/Users/TEST_USER/MyShell$ python3 -m pip list | grep pip
pip 20.1.1
user_name@DESKTOP-3128479:/mnt/c/Users/TEST_USER/MyShell$ python3
Python 3.8.2 (default, Mar 13 2020, 10:14:16)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
>>>
Install pandas
user_name@DESKTOP-3128479:/mnt/c/Users/TEST_USER/MyShell$ pip install pandas
Defaulting to user installation because normal site-packages is not writeable
Collecting pandas
Downloading pandas-1.0.5-cp38-cp38-manylinux1_x86_64.whl (10.0 MB)
|████████████████████████████████| 10.0 MB 1.4 MB/s
Collecting pytz>=2017.2
Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
|████████████████████████████████| 510 kB 2.5 MB/s
Collecting python-dateutil>=2.6.1
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
|████████████████████████████████| 227 kB 1.3 MB/s
Collecting numpy>=1.13.3
Downloading numpy-1.19.0-cp38-cp38-manylinux2010_x86_64.whl (14.6 MB)
|████████████████████████████████| 14.6 MB 540 kB/s
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.6.1->pandas) (1.14.0)Installing collected packages: pytz, python-dateutil, numpy, pandas
WARNING: The scripts f2py, f2py3 and f2py3.8 are installed in '/home/user_name/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.19.0 pandas-1.0.5 python-dateutil-2.8.1 pytz-2020.1
https://qiita.com/HiroRittsu/items/e58063fb74d799d37cc4
Recommended Posts