首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试上载到PyPi时出现"-bash: twine: command not found“

尝试上载到PyPi时出现"-bash: twine: command not found“
EN

Stack Overflow用户
提问于 2020-06-04 09:35:09
回答 1查看 152关注 0票数 1

我正在尝试使用twine将一个包发布到PyPi。在项目文件夹中运行twine upload dist/*将显示-bash: twine: command not found

我在MacOS Mojave上使用Python3.7.7。我已经成功地运行了pip install twine,并且运行pip3 install twine告诉我已经安装了twine

我已经看到其他答案建议我在我的~/.bash_profile中将安装twine的目录添加到$PATH中。运行pip show -f twine会给我带来:

代码语言:javascript
复制
Name: twine
Version: 3.1.1
Summary: Collection of utilities for publishing packages on PyPI
Home-page: https://twine.readthedocs.io/
Author: Donald Stufft and individual contributors
Author-email: donald@stufft.io
License: UNKNOWN
Location: /Users/Username/Library/Python/3.7/lib/python/site-packages
Requires: requests, importlib-metadata, tqdm, keyring, requests-toolbelt, setuptools, readme-renderer, pkginfo
Required-by: 
Files:
  ../../../bin/twine

后面跟着一个文件列表。

根据不同的答案,我已经将/Users/Username/Library/Python/3.7/lib/python/site-packages/bin/Users/Username/Library/Python/3.7/lib/python/site-packages/Users/Username/Library/Python/3.7/lib/bin添加到$PATH中,但错误仍然存在。

EN

回答 1

Stack Overflow用户

发布于 2020-06-04 09:42:30

我在$PATH中添加了/Users/Username/Library/Python/3.7/lib/python/bin/Users/Username/Library/Python/3.7/lib/bin,似乎已经解决了这个问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62185440

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档