收藏的博客 -- Python学习

0.官网

Welcome to Python.orghttps://www.python.org/

Python Releases for Windows | Python.orghttps://www.python.org/downloads/windows/ Python安装包下载

Python Releases for macOS | Python.orghttps://www.python.org/downloads/mac-osx/

Index of /ftp/python/https://www.python.org/ftp/python/ Python安装包ftp下载,分别有32位和64位

根据我的经验,使用32位版本更少故障。除非正在研究大量使用内存的应用程序(主要是使用超过2GB内存的科学计算),否则最好使用32位版本,因为:

  • 通常使用较少的内存。
  • 使用COM的问题较少(因为您在Windows上)。
  • 如果你不得不加载DLL,他们很可能也是32位的。Python 64位无法加载32位库,而没有一些重大的黑客运行另一个Python,这次是32位,并使用IPC。
  • 检查你的所有第三方模块是否有64位可用。如果必须加载自己编译的DLL,则必须将它们编译为64位,这通常很难做到(特别是在Windows上使用MinGW时)。
  • 如果曾经使用PyInstaller或py2exe,那么这些工具将会以Python解释器的相同位置生成可执行文件。

Download & Install Perl - ActiveState ActivePerl是一个perl脚本解释器,使用github账号登录并下载,官网仅提供64位安装包

WinPython WinPython是一个免费的开源可移植的Python编程语言发行版

https://github.com/python/cpython

https://github.com/pyston/pyston Pyston 最初是由 Dropbox 推出的基于 JIT 的 Python 实现。

https://www.anaconda.com/https://www.anaconda.com/

Conda — Conda documentation

1.好书推荐

https://github.com/bingjin/ThinkPython2-CN

Title 《Think Python 2e》最新版中文翻译

2.IDE

(1)PyCharm

PyCharm: the Python IDE for Professional Developers by JetBrainshttp://www.jetbrains.com/pycharm/?fromMenu

https://github.com/pingfangx/TranslatorX

https://github.com/pingfangx/jetbrains-in-chinese

https://github.com/pingfangx/TranslatorX/wiki/Usage

(2)Eric   firecat不推荐

Eric6是一个全功能的Python开发IDE,它本身就是用Python开发的,并且使用了PyQt。Eric6还集成了Scintilla编辑器控制,具有很强大的代码编辑、代码补全等功能。Eric是一个专业的Python项目管理的IDE,它使用了插件管理系统,可以通过安装插件来扩展Eric的功能。Riverbank公司(PyQt5供应商)网站上推荐的IDE就是Eric。PyQt5与Eric6是众所周知的Python平台下用来快速开发GUI程序的绝配。
The Eric Python IDE

Eric Integrated Development Environment - Browse Files at SourceForge.net

Eric6的安装与基本设置

完美安装 Anaconda3 + PyQt5 + Eric6

快速熟悉 PyQt5 与 Eric6 的极速 GUI 开发

3.GUI

(1)PySide2

Index of /official_releases/QtForPython/pyside2

PySide2 · PyPI ++ Qt for Python - Qt Wiki ++ https://github.com/PySide

(2)PyQt5

Riverbank Computing | Download PyQt5

PyQt - Browse Files at SourceForge.net

PyQt5 · PyPI

https://github.com/PyQt5/PyQt PyQt Examples(PyQt各种测试和例子)

https://github.com/maicss/PyQt5-Chinese-tutorial

Riverbank Computing | Download QScintilla代码补全

QScintilla · PyPI

Python3+Pycharm+PyQt5环境搭建步骤  firecat推荐使用

PyCharm搭建pyqt5开发环境 firecat推荐使用

PyCharm python3.7+PyQt5.0学习开源代码dxf2gcode ++ dxf2gcode download | SourceForge.net 很好的PyQt5应用案例

Python Bindings for Qt 5 and Qt 6. Allows you to access a CPython 3 interpreter directly from your Qt QML user interface code. 

https://github.com/thp/pyotherside/

(3)Other

https://github.com/wxWidgets/Phoenix ++ Welcome to wxPython! | wxPython

https://github.com/PySimpleGUI/PySimpleGUI

PyOpenGL · PyPI PyOpenGL

(4)GUI Project

https://github.com/BasioMeusPuga/Lector

https://github.com/tzutalin/labelImg LabelImg is a graphical image annotation tool

4.图像处理OpenCV及PIL

opencv-python · PyPI 官方

https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv 非官方

PyImageSearch - You can master Computer Vision, Deep Learning, and OpenCV.

OpenCV Project

MainFrame: 一个基于Qt和Opencv图像处理开发框架

Python Imaging Library (PIL)

http://pythonware.com/products/pil/

Pillow是PIL的替代版本,PIL仅支持python2,而Pillow支持python3

Python Pillow

https://github.com/python-pillow/Pillow

5.深度学习

模型库_飞桨-源于产业实践的开源深度学习平台 百度飞浆

PaddleHub-源于产业实践的开源深度学习平台

https://github.com/PaddlePaddle/models 百度飞浆

EasyDL-零门槛AI开发平台

https://github.com/AlexeyAB/darknet

https://github.com/apachecn/AiLearning

6.网络爬虫

《Python 3网络爬虫开发实战 第2版》

https://github.com/Germeyhttps://github.com/Germey

静觅丨崔庆才的个人站点崔庆才的个人站点,记录生活的瞬间,分享学习的心得。https://cuiqingcai.com/

https://github.com/Jack-Cherish/python-spider

7.数据结构与算法

https://github.com/TheAlgorithms/Python

8.异步编程

18.5. asyncio — Asynchronous I/O, event loop, coroutines and tasks — Python 3.6.15 documentation asyncio

Tornado Web Server — Tornado 6.1 documentation Tornado

promise · PyPI Promises/A+ implementation for Python

9.Anaconda

Anaconda是完全免费的企业级的Python发行大规模数据处理、预测分析和科学计算工具。Anaconda的版本更新速度很快,这是其他发行版所望尘莫及的。因此在各种操作系统中,无论是Linux,还是Windows、Mac,都推荐Anaconda!由与Anacoda是Python科学技术包的合集,所以不同的包所遵循的协议不一样。

Anaconda官方网址:Anaconda | The World's Most Popular Data Science Platformhttps://www.anaconda.com/

10.pybind11

https://github.com/pybind/pybind11

11.数学建模三剑客MSN

Matplotlib + Sympy+Scipy + Numpy MSN三剑客

https://github.com/python-pillow/Pillow pillow和matplotlib配套使用

matplotlib · PyPI

sympy · PyPI

scipy · PyPI

numpy · PyPI

12.SageMath

Sage(或称SageMath)是在GPL协议下发布的开源数学软件,并且整合了许多已有的开源软件包到一个基于Python的统一界面下。其目标是创造一个Magma,Maple,Mathematica和Matlab的开源替代品。Sage包含了从线性代数、微积分,到密码学、数值计算、组合数学、群论、图论、数论等各种初高等数学的计算功能。

SageMath - Open-Source Mathematical Software System

https://github.com/sagemath/sage

13.winpython

WinPython

WinPython - Browse Files at SourceForge.net

winpython实际上是整合了IDE工具spyder和一些科学计算包,默认包含了以下工具包,有了这些工具包,完全可以替代MATLAB做科学计算:

numpy,scipy:数值计算工具包,里面我含了各种矩阵算,MATLAB有的,它基本上都有。不过,里面有array和matrix两种类型,最好是用array类型的,因为它的功能最全,大部分函数处理的类型都是array。scipy实际上包含了numpy的功能,并且还有2D绘图子工具包pylab,里面的plot用法很像matlab的。scipy里有各种最优化算法,矩阵操作,比如约束最优化,非约束最优化,矩阵求逆,矩阵分解,等等,它的官方在线文档:SciPy documentation — SciPy v1.7.1 Manual

图解 | NumPy可视化指南

https://www.yanxishe.com/TextTranslation/3198https://www.yanxishe.com/TextTranslation/3198https://github.com/rougier/numpy-100https://github.com/rougier/numpy-100

SymPy:是一个符号计算的Python库。它的目标是成为一个全功能的计算机代数系统,同时保持代码简 洁、易于理解和扩展。它完全由Python写成,不依赖于外部库。SymPy支持符号计算、高精度计算、模式匹配、绘图、解方程、微积分、组合数学、离散 数学、几何学、概率与统计、物理学等方面的功能。

matplotlib:2D和3D绘图工具,绘图功能强大,各种数据可视化表现方式,没有做不到的,只有你想不到的。

sklearn(Scikit-learn)各种学习算法,聚类算法都在里面,比如svm,k-means,KNN,PCA,随机森林等等一大堆。

官方网站:scikit-learn: machine learning in Python — scikit-learn 1.0.1 documentation

ctypes:能使python和c交流的工具包有好几个,但是我认为这个最好用,因为,你可以用VS生成一个动态库,而ctypes则可以直接去调用动态库中的函数。当你要处理复杂运算时,用纯粹的python实现出来的会慢的有如世界末日,但是用C实现无疑是最快的办法,而ctypes则可以帮你轻松做到这一点。想想matlab和c的混编,光是数据提取和类型转换就是一堆,估计很多人会有种想死的感觉。由于ctypes实现了python便捷访问c动态库的功能,你会觉得python和c的混编是一件非常轻松快乐的事情。它的方便之处还在于,numpy或scipy的数据成员中是默认包含ctypes的,这使python到c函数的各种数据类型的参数传递变得异常简单。

pandas:数据分析包 pandas - Python Data Analysis Library

14.游戏

https://www.pygame.org/

x1.资源大全

https://github.com/mahmoud/awesome-python-applicationshttps://github.com/mahmoud/awesome-python-applications

https://github.com/vinta/awesome-pythonhttps://github.com/vinta/awesome-python

Python 资源大全中文版http://jobbole.github.io/awesome-python-cn/

http://www.zhijieketang.com/group/8http://www.zhijieketang.com/group/8 《Python从小白到大牛》提供读者服务

https://github.com/geekcomputers/Pythonhttps://github.com/geekcomputers/Python

rougier (Nicolas P. Rougier) · GitHubResearcher in computational and cognitive neuroscience supporting open source, open access and open science. - rougierhttps://github.com/rougierhttps://github.com/rougier/scientific-visualization-bookhttps://github.com/rougier/scientific-visualization-book

python-cheat-sheet

GitHub - juliangaal/python-cheat-sheet: Python Cheat Sheet NumPy, Matplotlibhttps://github.com/juliangaal/python-cheat-sheet GitHub - gto76/python-cheatsheet: Comprehensive Python Cheatsheethttps://github.com/gto76/python-cheatsheet

GitHub - pynickle/python-cheatsheet: 🌈Python standard libraries cheatsheet for human🌈Python standard libraries cheatsheet for human. Contribute to pynickle/python-cheatsheet development by creating an account on GitHub.https://github.com/pynickle/python-cheatsheet

x2.常用命令

以下命令都在windows命令提示符操作
1.查看与升级pip命令
where python
which python
which python3
python --version
python -m ensurepip
python -m pip --version
python -m pip install --upgrade pip

2.安装pyinstaller
pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple

3.安装MSN三剑客(使用清华源)
pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install Pillow -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install scipy -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple

4.安装指定版本的pyQt5
pip install pyQt5==5.13.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install pyqt5-tools==5.13.0.1.5 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install PyQt5-stubs==5.13.1.3 -i https://pypi.tuna.tsinghua.edu.cn/simple

x.常用网站
https://pypi.org/project/
https://mirrors.aliyun.com/pypi/simple/ 阿里源
https://github.com/pyinstaller/pyinstaller
https://pyinstaller.readthedocs.io/en/stable/usage.html

y.打包
pyinstaller --noconsole --icon="F:\tmp-source\PCB Milling\dxf2gcode\dxf2gcode-20191025\images\DXF2GCODE-001.ico" "F:\tmp-source\PCB Milling\dxf2gcode\dxf2gcode-20191025\dxf2gcode.py"
参数含义
-F 指定打包后只生成一个exe格式的文件;-F参数能不用就尽量不用,打包一时爽,打开花5秒。
-D –onedir 创建一个目录,包含exe文件,但会依赖很多文件(默认选项)
-c –console, –nowindowed 使用控制台,无界面(默认)
-w –windowed, –noconsole 使用窗口,无控制台
-p 添加搜索路径,让其找到对应的库。
-i 改变生成程序的icon图标
-n 安装包名称

x3.Mac安装python

firecats-MacBook-Pro:~$ which python
/usr/bin/python
firecats-MacBook-Pro:~$ which python3
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3

在 /usr/bin/python 目录中的python是系统预装的python

我自己使用python-3.7.6-macosx10.9.pkg安装的是Python3 64位

此时,如果你希望在终端中输入 python 直接使用的是你新安装的python3。那么需要配置一下环境变量,指定一下python只用版本就行了。如下配置:

export PATH=${PATH}:/Library/Frameworks/Python.framework/Versions/3.7/bin/
alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3"
alias pip="/Library/Frameworks/Python.framework/Versions/3.7/bin/pip3"

后面两步alias非必需,使用命令python3和pip3命令也是可以的。

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值