亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何在 TravisCI 中使用 python-3.6.7

如何在 TravisCI 中使用 python-3.6.7

蠱毒傳說 2021-09-24 21:32:24
我有一個使用 TravisCI 的 Python 項目,但我的pytest命令在 Travis 上失敗并在本地機器上傳遞。我認為原因是我在本地機器上使用了 Python-3.6.7,而 Travis 使用的是 Python -3.6.3我的.travis.yml文件:language: pythonpython:  - "3.6"  - "3.6-dev"  # 3.6 development branch# command to install dependenciesbefore_install:  # install python 3.6.7install:  - pip install -r requirements.txt  - pip install -U pytest# command to run testsscript:  - pytest我的本地 pytest 日志:platform linux -- Python 3.6.7, pytest-4.0.2, py-1.7.0, pluggy-0.8.0# tests passed.  我的 travis pytest 日志:platform linux -- Python 3.6.3, pytest-4.0.2, py-1.7.0, pluggy-0.8.0  #tests failed.所以我假設使用 3.6.7 Python 版本將修復我的測試,有人可以幫忙嗎?我試過的:pip install -U python 不起作用。
查看完整描述

3 回答

?
慕后森

TA貢獻1802條經驗 獲得超5個贊

我dist: xenial在我的 travis 文件中使用了這樣的:


dist: xenial  

python:

  - "3.6"  

 ----  so on ---  

它默認帶有 Python 3.6.7。:)


查看完整回答
反對 回復 2021-09-24
  • 3 回答
  • 0 關注
  • 250 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號