- 博客(6)
- 资源 (5)
- 收藏
- 关注
原创 Windows下安装face-recognition
Windows下安装face-recognition face_recognition是python的人脸识别库,但是在cmd中用pip install时会报一大堆奇奇怪怪的错误,说是"Failed to build dlib" 在安装face-recognition库之前,我们要先安装boost和cmake这两个python库 pip install boost pip install cmake 安装完这两个包后,就可以安装dlib了,安装好dlib后再pip install face-recogni
2021-02-20 09:59:11
304
原创 (Windows)Visual Studio Code配置python运行环境
(Windows)Visual Studio Code配置python运行环境 首先我们到Python官网下载windows x64位的python安装程序,版本推荐python3.x 下载地址:https://python.org 我们将鼠标悬停在downloads按钮上,会显示一个菜单,点击windows 进入windows的python下载界面后,在stable releases里选择自己需要的版本的python(推荐下载python3.x),点击download windows installer
2021-02-15 23:18:09
1241
1
原创 Python3 matplotlib+numpy画函数图像
Python3 matplotlib+numpy画函数图像 matplotlib和numpy是python强大的第三方库之二。numpy内置了很多数学函数,而matplotlib则可以用于绘制图像,常用于大数据可视化。 先安装必需的库: pip install matplotlib pip install numpy 安装成功后,我们用matplotlib+numpy画一个正弦函数图像 import numpy as np import matplotlib.pyplot as plt 由于懒(划掉),
2021-02-15 22:39:37
4195
1
原创 Python使用colorama输出不同颜色文字
Python实现输出不同颜色文字 通过Python可以输出不同颜色的文字 首先要安装colorama库 pip install colorama 改变字的颜色 import colorama print(colorama.Fore.GREEN+'绿色文字') print(colorama.Fore.RED+'红色文字'+colorama.Fore.WHITE) #这里加了colorama.Fore.WHITE是为了还原颜色,否则控制台就会变成一片红 运行效果图 改变背景的颜色 import color
2021-01-31 23:56:12
1189
原创 Windows下使用pyinstaller打包源文件
Windows下使用pyinstaller打包源文件安装pyinstaller用pyinstaller打包python文件 安装pyinstaller 打开cmd,运行“pip install pyinstaller”命令 用pyinstaller打包python文件 选择想要打包的文件 切换到文件所在的目录下 用pyinstaller打包文件 现在再回到刚才的文件夹中,发现一个dist文件夹,生成的exe文件就在里面 ...
2021-01-09 22:39:47
357
link.py(python3.x)
2021-02-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人