LoginSignup
1
0

More than 5 years have passed since last update.

python を mysql 繋ぐ

Last updated at Posted at 2017-09-15

pythonを mysql に繋ごうとした時に、 pip が必要なことが判明した。

>curl -kL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python

と叩いても

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   260  100   260    0     0    674      0 --:--:-- --:--:-- --:--:--   674
You're using an outdated location for the get-pip.py script, please use the one available from https://bootstrap.pypa.io/get-pip.py

とエラーが出てしまう時、叩くコマンドが古いっぽい

curl -kL https://bootstrap.pypa.io/get-pip.py | sudo python

と叩けば、大丈夫。インストールできたら確認をする

> pip -V
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0