美文网首页
Python 常用指令

Python 常用指令

作者: michael_jia | 来源:发表于2016-08-21 22:42 被阅读116次

学习一个语言最便捷的方法,就是用它:听、说、读、写。Python 学习也是这样。自 《Python,你了解么?》 以来已十个月有余,止于了解,未进一步,汗颜!

  • 多看代码;
  • 多写代码;
环境初建
  • PyPI:the Python Package Index;Python 包目录列表;
  • PyPA:Python Packaging Authority
    The Python Packaging Authority (PyPA) is a working group that maintains many of the relevant projects in Python packaging.
  • pip - The PyPA recommended tool for installing Python packages. Python 包安装工具;
在 CentOS 6 上升级 Python 2.6 到 2.7?
pip
  • pip install <packagename>
  • pip install --upgrade pip:升级 pip 自身版本,目前已到 8.1.2;
  • 使用 pip 注意事项
    使用 pip 安装包,会污染系统级包环境(system-wide packages),建议在 virtual Python environment(virtualenv)下使用;

相关文章

网友评论

      本文标题:Python 常用指令

      本文链接:https://www.haomeiwen.com/subject/pgswsttx.html