Python 小技巧

文章目录

  • Python 小技巧
    • 导包 pip3

Python 小技巧

持续更新

导包 pip3

如果发现某个包没有,可以通过以下命令下载:

#假设selenium依赖并没有,可以通过Mac Shell,在python根目录下执行
[localhost:bin young$ pip3 install selenium
Collecting selenium
  Downloading https://files.pythonhosted.org/packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl (904kB)
    100% |████████████████████████████████| 911kB 33kB/s 
Requirement already satisfied: urllib3 in /usr/local/lib/python3.7/site-packages (from selenium) (1.24.1)
Installing collected packages: selenium
Successfully installed selenium-3.141.0
[localhost:bin young$ pwd
/usr/local/Cellar/python/3.7.0/bin

你可能感兴趣的:(Python,弗兰克与Python)