[PYTHON] Install pip and pandas with Ubuntu or VScode

Pip in VScode terminal

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

Pip on Ubuntu (Failure)

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'

Install pip command on Ubuntu

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

Reference URL


Recommended Posts

Install pip and pandas with Ubuntu or VScode
I can't install Dask with pip on Ubuntu
Error with pip install
Install pip / pip3 on Ubuntu
Install scikit.learn with pip
Install Ubuntu 20.04 with GUI and prepare the development environment
Dealing with pip and related installation errors on Ubuntu 18.04
Install tweepy with pip and use it for API 1.1
When moss with pip install
Install github repository with pip
Install python3 and scientific calculation library on Ubuntu (virtualenv + pip)
Install CaboCha in Ubuntu environment and call it with Python.
Install Mecab and mecab-python3 on Ubuntu 14.04
Install and run dropbox on Ubuntu 20.04
Install OpenCV and Chainer on Ubuntu
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Permission denied with pip install pyopenssl
Manipulate colors with pip install color
Install fabric on Ubuntu and try
How to install mysql-connector with pip3
[Python Windows] pip install with Python version
Install easy_install and pip on windows
How to install pandas on EC2 (How to deal with MemoryError and PermissionError)
Install pip in Serverless Framework and AWS Lambda with Python environment
SSL certificate related with pip install? Error
About package management with conda and pip
Import of japandas with pandas 1.0 and above
Python installation and package management with pip
selenium: wait for element with AND / OR
How about creating a virtual environment with Anaconda and doing pip install?
I want to pip install with PythonAnywhere
Install by specifying the version with pip
scipy stumbles with pip install on python 2.7.8
Measures that pip install cannot be done with pycharm or import ssl cannot be done
Install Puppet Master and Client on Ubuntu 16.04
Day 64 pip install tensorflow and 2.0 is here.
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Load csv with pandas and play with Index
Read CSV and analyze with Pandas and Seaborn
I can't install the package with pip.
Let's install box2d-py with Windows 10 environment pip
Avoiding "'ascii' codec can't decode" with pip install
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Implement "Data Visualization Design # 3" with pandas and matplotlib
Analyze Apache access logs with Pandas and Matplotlib
Interactively visualize data with TreasureData, Pandas and Jupyter.
Run pip install on MacOS Python 3.7 or later
[Ubuntu] Install Android Studio and create a shortcut
Install MongoDB on Ubuntu 16.04 and operate via python
Install ZIP version Python and pip on Windows 10
Steps to install your own library with pip
sudo pip install
I got an error when pip install pandas on Mac, so I dealt with it
pip install ○○○ error Command errored out with exit status 1:
Build onboard RAID with T1310M3 and install Cent OS 7.7
Install selenium on Mac and try it with python
Install Apache 2.4 on Ubuntu 19.10 Eoan Ermine and run CGI
I got a UnicodeDecodeError when pip install on ubuntu
How to extract null values and non-null values with pandas
Install and develop Git, VSCode, Docker on Chrome OS
Troublesome story when using Python3 with VScode on ubuntu