建立了一个azuredevopspythonfeed并发布了一个python包,但无法在我的管道中安装它。在
蓝色-管道.yml:
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: my_feed
onlyAddExtraIndex: true
- script: pip install my-package==0.0.1234
输出:
^{pr2}$
我该怎么解决这个问题?提前谢谢!
Tags:
在包创建过程中使用的python版本应该与安装期间使用的版本相匹配。在
例如,如果在
/dist
文件夹中有my-package-0.0.1234-py3-none-任何原因您应该使用pythonversion3安装它。否则,您将收到此错误消息。在我猜是my-package-0.0.1234-py2-none-任何原因如果您尝试用python3安装它,将显示相同的错误。在
首先,您需要仔细检查feed中该包的版本
0.0.1234
。在其次,根据错误消息,您似乎正在使用
Python 2.7
,请尝试将Python更新为3.6.x
。在第三,当您将python更新到3.6.x时,您仍然存在相同的问题,请尝试使用以下方法将pip升级到最新版本:
更新:
感谢用户2809176分享其问题的详细解决方案:
希望这有帮助。在
相关问题 更多 >
编程相关推荐