为什么travis CI中的服务器计算机找不到我的需求文件?

2024-05-13 01:53:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我的目录树如下所示

├── antimony_combinations
│   ├── antimony_combinations.py
│   ├── __init__.py
├── LICENCE
├── README.md
├── requirements.txt
├── setup.py
└── tests
    └── tests.py

我的.travis.yml看起来像这样:

language: python
before_install:    # get some dependency software. This works as expected in another package. 
  - wget https://github.com/copasi/COPASI/releases/download/Build-207/COPASI-4.25.207-Linux-64bit.tar.gz -O /tmp/copasi.tar.gz
  - tar -xzvf /tmp/copasi.tar.gz
  - export PATH=$PATH:$PWD/COPASI-4.25.207-Linux-64bit/bin/
python:
  - "3.6"
  - "3.7"
  - "3.8"
install:
  - pip install .
  - pip install -r $PWD/requirements.txt     # Also tried just using `requirements.txt` here
  - pip install nose
script:
  - nosetests
after_success:
  - coveralls

但我得到了以下错误:

enter image description here


Tags: installpippathpytxtlinuxteststar