随笔分类 -  Python

1 2 下一页

python 离线安装包
摘要:下载好第三方库,上传到服务器,用pip命令执行安装 通过pypi官网下载包 pypi官网提供各种Python的第三方库,主要提供Linux版本的后缀是".whl"和“.tar.gz”,可以搜索相关的包。 ".whl"文件离线安装(推荐) #以Markdown为例(默认文件在当前目录下) pip in 阅读全文

posted @ 2023-04-13 18:26 0820LL 阅读(122) 评论(0) 推荐(0) 编辑

国内镜像 ubuntu pip CRAN CPAN
摘要:由于默认的源进行安装时,下载速度比较慢,最好切换为国内镜像; 国内镜像: 清华大学开源软件镜像站 https://mirrors.tuna.tsinghua.edu.cn/ 中国科学技术大学 http://mirrors.ustc.edu.cn/ 浙江大学开源镜像站 http://mirrors.z 阅读全文

posted @ 2022-08-09 18:10 0820LL 阅读(225) 评论(0) 推荐(0) 编辑

.py .pyc .pyw .pyx .pyd .pxd文件
摘要:.py文件 .pyw文件 .py是python的常用格式,.pyw也是python的常用格式,由python.exe解释,可在控制台下运行。 .pyc文件 .pyc文件是python文件的编译文件,执行速度要远快于.py文件,不能直接用文本编辑器进行编辑。 .pyc文件只是经过简单编译,并未加密,因 阅读全文

posted @ 2022-08-01 12:03 0820LL 阅读(1425) 评论(0) 推荐(0) 编辑

IPython 安装
摘要:从 python 第三方库列表下载安装包 https://www.lfd.uci.edu/~gohlke/pythonlibs/ 然后使用 pip 进行安装 软件会自动安装到 python 安装路径的 scripts 目录下 使用 方法一 双击这两个应用程序 方法二 python -m IPytho 阅读全文

posted @ 2019-11-04 17:12 0820LL 阅读(164) 评论(0) 推荐(0) 编辑

windows 安装 numpy scipy matplotlib scikit-learn
摘要:在pypi中搜索相应的模块 直接使用 pip install 包名 的方法安装 下载第三方安装包 下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/ 根据系统 python版本下载相应的安装包 进入安装包的存放路径 然后使用 pip 进行安装 测试 阅读全文

posted @ 2019-11-04 16:05 0820LL 阅读(158) 评论(0) 推荐(0) 编辑

出现:Microsoft Visual C++ 14.0 is required 的解决方案
摘要:以安装pandas为例: 如:pip install scrapy 时出现: error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: http://landinghub 阅读全文

posted @ 2019-10-18 22:29 0820LL 阅读(2707) 评论(0) 推荐(0) 编辑

python3 pathlib库中的Path类的使用
摘要:调用库 获取 Path 的文件名 Path.name 参考 https://blog.csdn.net/amanfromearth/article/details/80265843 阅读全文

posted @ 2019-10-16 16:13 0820LL 阅读(280) 评论(0) 推荐(0) 编辑

jinja2
摘要:jinja2 是 Flask 作者开发的一个模板系统,起初是仿 django 模板的一个模板引擎,为Flask提供模板支持,由于其灵活、快速、安全等优点被广泛使用。 官网:https://pypi.org/project/Jinja2/ 下载安装:pip install Jinja2 jinja2 阅读全文

posted @ 2019-10-15 16:22 0820LL 阅读(168) 评论(0) 推荐(0) 编辑

pathlib.Path 类的使用
摘要:from pathlib import Path 参考 https://www.jb51.net/article/148789.htm 阅读全文

posted @ 2019-07-08 17:31 0820LL 阅读(288) 评论(0) 推荐(0) 编辑

python 函数注解 参数后面加冒号 函数后面加箭头
摘要:由于 python 是动态语言,在定义函数时,参数是不需要指定类型的。当调用别人写的函数,而该函数有没有文档说明,只有通过看源代码才能知道需要传递什么类型的参数。 不过 python 提供了一种机制可以在定义函数的同时指定参数的类型,称之为函数注解。 函数声明中,text:strtext 是参数 : 阅读全文

posted @ 2019-06-18 10:51 0820LL 阅读(685) 评论(0) 推荐(0) 编辑

Eclipse 高亮显示(pydev 编辑 python)
摘要:因为是使用pydev编辑的python,所以需要修改(pydev)的属性。 Window->Preferences->General->Editors->Text Editors->Annotations->Occurrences 效果 阅读全文

posted @ 2019-05-07 11:06 0820LL 阅读(281) 评论(0) 推荐(0) 编辑

Jython 2.7 报错 Cannot create PyString with non-byte value
摘要:,... 阅读全文

posted @ 2019-04-22 10:13 0820LL 阅读(2770) 评论(0) 推荐(0) 编辑

Jython 在 Eclipse 控制台报错 console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0.
摘要:在 Eclipse 中使用 Jython 时报错 解决办法 右键 --> Run As --> Run Configurations --> Arguments --> 设置 VM arguments -Dpython.console.encoding=UTF-8 阅读全文

posted @ 2019-04-19 12:58 0820LL 阅读(1126) 评论(0) 推荐(0) 编辑

Jython 安装使用
摘要:Jython 官网:https://jython.org/ 下载 下载页面:https://jython.org/downloads.html jython-installer-${version}.jar 用于安装 Jython 的,执行 Python 程序 jython-standalone-$ 阅读全文

posted @ 2019-04-17 17:29 0820LL 阅读(1940) 评论(0) 推荐(0) 编辑

Biopython 安装使用
摘要:Biopython 官网:https://biopython.org/ 安装 Biopython https://biopython.org/wiki/Download 可以使用 pip 进行安装, 注意有时需要使用管理员权限,即管理员打开 cmd 验证安装是否成功 Biopython 官方教程 h 阅读全文

posted @ 2019-04-17 10:42 0820LL 阅读(686) 评论(0) 推荐(0) 编辑

matplotlib 绘图报错 RuntimeError: Invalid DISPLAY variable
摘要:ssh 远程登录 Linux 服务器使用 matplotlib.pyplot 绘图时报错 原因: matplotlib 在 windows 下的默认 backend 是 TkAgg;在 Linux 下的默认 backend 是 Qt5Agg。但是这两个 backend 都要求有 GUI 图形界面,所 阅读全文

posted @ 2019-03-05 16:52 0820LL 阅读(818) 评论(0) 推荐(0) 编辑

python 数据可视化 -- matplotlib02
摘要:import matplotlib.pyplot as plt import numpy as np x = np.linspace(start=0.5, stop=3.5, num=100) y = np.sin(x) y1 = np.random.randn(100) plt.scatter(x, y1, c='0.25', label='scatter figure') plt.p... 阅读全文

posted @ 2019-03-01 11:17 0820LL 阅读(224) 评论(0) 推荐(0) 编辑

处理 NCBI taxonomy tree
摘要:1. etetoolkit : github 官网:https://github.com/etetoolkit/ete 官网:http://etetoolkit.org/ 2. taxonkit github 官网:https://github.com/0820LL/taxonkit 官网:http 阅读全文

posted @ 2019-02-26 16:52 0820LL 阅读(233) 评论(0) 推荐(0) 编辑

Python3 单下划线_双下划线__开头
摘要:Python 中,下划线对解释器有特殊的含义,而且是内建标识符所使用的符号,使用时要多加留意。 在 Python3 的面向对象中,双下划线开头的变量和方法表名为私有变量和私有方法。 __private_attrs: 两个下划线开头,声明该属性为私有,不能再类的外部被使用或者直接访问。在类的内部的方法 阅读全文

posted @ 2019-02-25 13:41 0820LL 阅读(393) 评论(0) 推荐(0) 编辑

python3 安装 google-visualization-python(windows10)
摘要:google-visualization-python 的 github 官网:https://github.com/google/google-visualization-python 安装: 打开 cmd,根据需要可使用管理员权限 pip install gviz_api 阅读全文

posted @ 2019-02-24 13:32 0820LL 阅读(633) 评论(0) 推荐(0) 编辑

1 2 下一页

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示