本文介绍了未找到麻线(-bash:麻线:未找到命令)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用twine在pypi上发布我的第一个python包(当然会先在test-pypi上添加).

I am trying to use twine to publish my first python package on pypi (of course will add on test-pypi first).

我遵循了 https://packaging.python.org/tutorials/packaging的官方指南-projects/.

但是由于某些原因,找不到或未正确安装麻线.

But for some reason, twine is not found or not properly installed.

我使用以下方法安装了麻线:

I installed twine using:

pip install twine

点子列表"显示麻线已安装在点子上.

"pip list" says twine is installed on pip.

升级麻线和所有东西后,当我尝试运行时:

After I upgraded twine and everything, when I tried to run:

twine upload --repository-url https://test.pypi.org/legacy/ dist/*

然后它说根本找不到麻线:

then it says that twine is not found at all:

-bash: twine: command not found .

我的系统是mac(高山脉),并且我使用的是conda的python2.7. Pip还配置为conda python:

My system is mac (high sierra) and I am using python2.7 by conda. Pip is also configured to conda python:

>>pip -V
>>pip 10.0.1 from /anaconda2/lib/python2.7/site-packages/pip (python 2.7)

感谢您的帮助.

推荐答案

使用python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

这篇关于未找到麻线(-bash:麻线:未找到命令)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-16 03:35