2019-08-27

用Python编程还是较轻松的。

romote:~ mengyq$ pip

-bash: pip: command not found

promote:~ mengyq$ python

Python 2.7.10 (default, Oct  6 2017, 22:29:07)

[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin

Type “help”, “copyright”, “credits” or “license” for more information.

>>> exit()

promote:~ mengyq$ wget

wget: missing URL

Usage: wget [OPTION]… [URL]…

Try `wget –help’ for more options.

promote:~ mengyq$ wget https://bootstrap.pypa.io/get-pip.py

–2019-08-27 21:26:34–  https://bootstrap.pypa.io/get-pip.py

Resolving bootstrap.pypa.io… 151.101.76.175

Connecting to bootstrap.pypa.io|151.101.76.175|:443… connected.

HTTP request sent, awaiting response… 200 OK

Length: 1775417 (1.7M) [text/x-python]

Saving to: ‘get-pip.py’

get-pip.py              100%[================================>]  1.69M  20.5KB/s    in 94s

2019-08-27 21:28:08 (18.5 KB/s) – ‘get-pip.py’ saved [1775417/1775417]

promote:~ mengyq$

一、

pycharm导入 github上fork项目 weibo

发现无scrapy,故需安装scrapy,

安装scrapy发现未安装pip,执行python get-pip.py过程

发现无法fork的weibo项目为python3,而macos自带python2.7,

遂安装python3,安装python3发现mac自带包管理器homebrew一直updating,

故搜索解决homebrew不更新问题。

二、

再安装python3

452 wget https://bootstrap.pypa.io/get-pip.py

  453  python get-pip.py

  459  cd Python/

  460  ll

  461  brew

  462  brew –version

  463  brew install python3

  464  sudo python get-pip.py

  465  sudo su

  466  python get-pip.py

  467  ll

  468  cd

  469  ll

  470  sudo python get-pip.py

  471  vi ~/.bash_profile

  472  source ~/.bash_profile

  473  brew –version

  474  brew install python3

  475  python

  476  python3 –version

  477  pip3 –version

  478  pip3 list

  479  python3

  480  ll

  481  rm get-pip.py

  482  ll

  483  cd Library/

  484  ll

  485  cd /Libaray/Frameworks/

  486  find / -name python3

  487  sudo find / -name python3

  488  pip3 install scrapy

  491  Scrapy version

  492  pip3 install scrapy

  493  pip3 install scrapy

  494  pip3 install scrapy

  495  pip3 install scrapy

  496  pip3 install scrapy

  497  pip3 install scrapy

  498  Scrapy version

  499  pip3 install requests

  500  pip3 install pymongo

https://www.jianshu.com/p/e7a291feaa60

Python量化投资网携手4326手游为资深游戏玩家推荐:《《明日之后》:9月26号运营活动概率公式

「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
0 条回复 A 作者 M 管理员
    所有的伟大,都源于一个勇敢的开始!
欢迎您,新朋友,感谢参与互动!欢迎您 {{author}},您在本站有{{commentsCount}}条评论