Seng的Python学习开始了

浏览: 2192

最近估计会用到Python的内容比较多,以前我只是看过一些,现在在工作上需要使用到更多方面的内容。

近期我会将了解的内容记录在Blog上。

Python内容参考网站:

Python官网

https://www.python.org/doc/

PyPI - the Python Package Index

https://pypi.python.org/pypi

Most Popular Python CookBooks on GitHub

http://www.gibrem.com/python-cookbooks-github-w-12040/

一般学习一个语言都从hello world 和语法开始,但由于我关注的具体应用,先从Python环境说起。

Python有很多package,这是Python的很大的优点,但是同时package过多,也容易导致很多问题。

先看文档:Python Packaging User Guide(Python Packaging User Guide)里的Tool Recommendations。

我就直接copy过来了

Installation Tool Recommendations

    Use pip to install Python packages from PyPI. [1] [2] Depending how pip is installed, you may need to also install wheel to get the benefit of wheel caching. [3]

    Use virtualenv, or pyvenv to isolate application specific dependencies from a shared Python installation. [4]

    If you’re looking for management of fully integrated cross-platform software stacks, consider buildout (primarily focused on the web development community) or Hashdist, or conda (both primarily focused on the scientific community).

Packaging Tool Recommendations

    Use setuptools to define projects and create Source Distributions. [5] [6]

    Use the bdist_wheel setuptools extension available from the wheel project to create wheels. This is especially beneficial, if your project contains binary extensions. [7]

    Use twine for uploading distributions to PyPI.


其中virtualenv是很好的东西,隔离了不同版本和包,我先从这个开始我的Python学习。

推荐 3
本文由 seng 创作,采用 知识共享署名-相同方式共享 3.0 中国大陆许可协议 进行许可。
转载、引用前需联系作者,并署名作者且注明文章出处。
本站文章版权归原作者及原出处所有 。内容为作者个人观点, 并不代表本站赞同其观点和对其真实性负责。本站是一个个人学习交流的平台,并不用于任何商业目的,如果有任何问题,请及时联系我们,我们将根据著作权人的要求,立即更正或者删除有关内容。本站拥有对此声明的最终解释权。

3 个评论

seng总休息的好晚,期待seng总的 Python教程学习之路
梁总,你点评的太快了吧,我刚更新啊。
梁勇

梁勇 回复 seng

刚好在,seng总早点休息

要回复文章请先登录注册