我一直在尝试将 Python 包上传到 Pypi。我一直在关注几个不同的指南。我已经使用安装麻线
pip install twine
它没有显示任何问题:
Requirement already satisfied: twine in
c:\users\amirh\appdata\roaming\python\python36\site-packages (1.11.0)
Requirement already satisfied: setuptools>=0.7.0 in
c:\users\amirh\appdata\roaming\python\python36\site-packages (from twine)
(40.0.0)
Requirement already satisfied: tqdm>=4.14 in
c:\users\amirh\appdata\roaming\python\python36\site-packages (from twine)
(4.23.4)
Requirement already satisfied: pkginfo>=1.4.2 in c
:\users\amirh\appdata\roaming\python\python36\site-packages (from twine) (
1.4.2)
Requirement already satisfied: requests!=2.15,!=2.16,>=2.5.0 in
c:\users\amirh\appdata\roaming\python\python36\site-packages (from twine)
(2.19.1)
Requirement already satisfied: requests-toolbelt>=0.8.0 in
c:\users\amirh\appdata\roaming\python\python36\site-packages (from twine)
(0.8.0)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in
c:\users\amirh\appdata\roaming\python\python36\site-packages (from
requests!=2.15,!=2.16,>=2.5.0->twine) (1.23)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in
c:\users\amirh\appdata\roaming\python\python36\site-packages (from
requests!=2.15,!=2.16,>=2.5.0->twine) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in
c:\users\amirh\appdata\roaming\python\python36\site-packages (from
requests!=2.15,!=2.16,>=2.5.0->twine) (2.7)
Requirement already satisfied: certifi>=2017.4.17 in
c:\users\amirh\appdata\roaming\python\python36\site-packages (from
requests!=2.15,!=2.16,>=2.5.0->twine) (2018.4.16)
使用任何类型的麻线功能时,例如
twine upload -r pypitest dist/packagename-0.1.2.tar.gz
我收到“'twine' 不被识别为内部或外部命令、可运行程序或批处理文件。”来自 cmd 的评论。
我正在使用 Windows 10。我应该自己为 twine 创建某种环境变量吗?