avatar
文章
123
标签
32
分类
25
首页
归档
标签
分类
Q's blog如何使自己的python使用pip安装(PyPi) 返回首页
搜索
首页
归档
标签
分类

如何使自己的python使用pip安装(PyPi)

发表于2022-10-03|更新于2022-10-03|技术Python
|总字数:117|阅读时长:1分钟|浏览量:

参考

  • PyPi 官方 https://pypi.org/
  • 使用 pip 发布 Python 程序 https://www.jianshu.com/p/daf3a574e0f5
  • License选择网站 https://choosealicense.com/
  • 如何打包上传Python程序或模块包到PyPi供其他人使用pip下载?https://zhuanlan.zhihu.com/p/333846253

但是我想使自己的程序可以像pip一样直接在cmd窗口中调用,目前只能通过安装打包后的exe文件实现,因为pip只是软件包管理,并不能上传exe文件

文章作者: Bsheepcoder
文章链接: https://bsheepcoder.github.io/2022/10/03/python-pip1/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Q's blog!
Python
上一篇
SQLite数据库(Python)
参考资料 原来Python自带了数据库,用起来真方便! https://zhuanlan.zhihu.com/p/216285195 官方SQLite API介绍 https://docs.python.org/zh-cn/3/library/sqlite3.html SQLite - Python https://www.runoob.com/sqlite/sqlite-python.html SQLite 游标 https://blog.csdn.net/weixin_43609059/article/details/84001989 基本操作 注意不要重新创建.db文件,并且注意不要重复执行插入数据语句 import sqlite3 # 创建与数据库的连接 # 硬盘创建conn = sqlite3.connect(‘test.db’) # 内存创建# conn = sqlite3.connect(‘:memory:’) # 创建一个游标 cursor,返回.execute()执行SQL命令cur ...
下一篇
Python的格式化输出
参考 format https://www.cnblogs.com/fat39/p/7159881.html#tag2 f-string https://blog.csdn.net/sunxb10/article/details/81036693 运算符详解 https://www.runoob.com/python/python-operators.html python的输出方式很多,这里整理一下 普通输出x = 100print(x)print(‘hello, world’,’qxd’) #效果100hello, world qxd .format{}用法print(‘{} {}’.format(‘hello’,’world’)) # 不带字段hello world print(‘{0} {1}’.format(‘hello’,’world’)) # 带数字编号hello world print(‘{0} {1} {0}’.format(‘hello’,’world’)) # 打乱顺序hello world hello print...
相关推荐
2022-11-10
Flask框架
Reference https://flask.net.cn/foreword.html 微框架 暂时放一放
2022-09-01
PyQt5项目实战
参考 白月黑羽教程 https://www.byhy.net/tut/py/gui/qt_01/ csdn的seniorwizard专栏 https://blog.csdn.net/seniorwizard/category_1653109_3.html 程序要发布给客户使用,建议使用32位的Python解释器,这样打包发布的exe程序可以兼容32位的Windows 虽然教程建议使用pyside2但是,安装了你会发现会有报错 https://blog.csdn.net/zzx188891020/article/details/105813976 这是解决办法,因此我目前认为 PyQt5还是比较稳定 官方文档 https://doc.qt.io/qtforpython/modules.html https://doc.qt.io/ 薪资统计该程序可以把薪资在 2万 以上、以下的人员名单分别打印出来。 #!/usr/bin/env python3# -*- coding:utf-8 -*-from PyQt5.QtWidgets ...
2021-10-13
(四)Python程序控制结构
程序控制结构0x1 程序的分支结构单分支结构if <条件>: <语句块> 二分支结构if <条件>: <语句块1>else: <语句块2> #示例:guess = eval(input())if guess == 99: print(“猜{}了”.format(“对”))else: print(“猜{}了”.format(“错”)) #紧凑形式:<表达式1> if <条件> else <表达式2> guess = eval(input())print(“猜{}了”.format(“对” if guess == 99 else “错”)) 紧凑形式中,if,else所对应的不是语句,而是表达式,不能赋值,只能放在类似上述的执行语句中 多分支if <条件> : <语句块1>elif: <语句块2>else: <语句块3&g...
2022-10-11
Django
Reference https://www.dusaiphoto.com/article/11/ I always forget markdown grammar. https://guo365.github.io/study/Markdown.html Environment Python3 venvcreate an env in catalogue at presentE:\django_project> python -m venv env into envenv\Scripts\activate.bat Django Framework Model: the layer to store data or data definition Template: the layer of service logic catalogue Views: the layer of expression, A collection of web pages with the same functionality and templates This is...
2022-08-30
Python面向对象
参考资料 廖雪峰python https://www.liaoxuefeng.com/wiki/1016959663602400 Python一切皆对象 函数式编程在python中,函数也是一个变量,可以指向不同的函数对象 map()此处将函数抽象为变量 def f(x): return x * x r = map(f, [1, 2, 3, 4, 5, 6, 7, 8, 9])#这里的函数f被抽象调用了print(list(r)) #结果[1, 4, 9, 16, 25, 36, 49, 64, 81] reduce()from functools import reduce def fn(x, y): return x * 10 * y def char2num(s): digits = {‘0’: 0, ‘1’: 1, ‘2’: 2, ‘3’: 3, ‘4’: 4, ‘5’: 5, ‘6’: 6, ‘7’: 7, ‘8’: 8, ‘9’: 9} return digits[s] print(reduce(f...
2022-09-17
OpenCV(Pyhton)
参考 https://opencv.apachecn.org/#/docs/4.0.0/3.1-tutorial_py_basic_ops 环境 我使用的是annaconda的环境,自行搜索 要先熟悉了numpy之后再学习OpenCV 图像导入# 读取图像# 用灰度模式加载图像newImg = cv.imread(‘./img/learn2.png’, 0) # 即使图像路径错误,它也不会抛出任何错误,但是打印 img会给你Nonecv.imshow(‘image’, newImg)cv.waitKey(0) # 是一个键盘绑定函数,它的参数是以毫秒为单位的时间。如果你在这段时间内按下任意键,程序将继续。cv.destroyAllWindows() # 简单的销毁我们创建的所有窗口# 如果你想销毁任意指定窗口,应该使用函数 cv.destroyWindow() 参数是确切的窗口名。 # 或者cv.namedWindow(‘image’, cv.WINDOW_NORMAL) # 窗口可以调整大小cv.imshow(‘image’, ...
avatar
Bsheepcoder
Bsheepcoder 的技术博客,记录 AI、编程、计算机科学的学习笔记
文章
123
标签
32
分类
25
Follow Me
公告
欢迎来到 Q's blog
目录
  1. 1. 参考
最新文章
演化算法2022-12-06
Texstudio基本操作2022-11-25
Bootstrap框架认识到实战2022-11-22
Python高级特性总结2022-11-19
对CUDA的认识2022-11-17
© 2021 - 2026 By Bsheepcoder框架 Hexo 8.1.2|主题 Butterfly 5.5.5
搜索
数据加载中