twine上传的坑:pkg_resources.DistributionNotFound: The 'docutils>=0.13.1' distribution was not found
一、制作pypi模块
(一)注册pypi账号

(二)设置setup.py
from setuptools import setup, find_packages
setup(
# pip install nnn
name=“crawler_tools”,#上传的包名
version=“0.0.3”,#包的版本号
#以下均为介绍
keywords=(“crawler”, “tools”, “proxy”,“cookies”,“user-agent”),
description=“爬虫工具”,
long_description=“爬虫工具集合,其中代理用的是崔庆才的代理池和jhao的代理池,而cookies和user-agent是自己的创作,总体上是在综合”,
# 协议
license=“GPL Licence”,
url="",
author="cw",
author_email=""#作者联系邮箱,
# 自动查询所有"__init__.py"
python_requires = '>=3.5.*',#pythonb版本
packages=find_packages(),
include_package_data=True,
platforms="any",
# 提示前置包
install_requires=['selenium',
'requests',
'APScheduler',
'werkzeug==0.15.3',

本文详述了使用Twine上传Python包到PyPI的过程,包括账号注册、setup.py配置及常见错误解决,如DistributionNotFound问题。
最低0.47元/天 解锁文章
2334

被折叠的 条评论
为什么被折叠?



