我想在Linux下的承办人上运行我的python项目的测试。
1.在没有安装的情况下运行毒性测试(失败)
我试过没有安装毒物。这是appveyor.yml
# appveyor.yml
---
image:
- Ubuntu
build: off
test_script:
- tox我的构建失败了。上面写着:
/opt/appveyor/build-agent/bash-shell.sh: line 62: tox: command not found2.安装毒物(失败)
好吧,我们先装毒物.这是我的新appveyor.yml,它基于本指南。(我刚刚添加了Ubuntu图像。)
# appveyor.yml
---
environment:
matrix:
- TOXENV: py36
image:
- Ubuntu
build: off
install:
- pip install tox
test_script:
- tox然而,构建失败再次。上面写着:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pyparsing.py'如何在Ubuntu?下在应用程序上运行毒理
发布于 2019-11-27 15:40:09
要么使用sudo成为根用户:
sudo pip install tox或者安装在您的$HOME中
pip install tox --user并将~/.local/bin添加到$PATH;或直接运行~/.local/bin/tox。
https://stackoverflow.com/questions/59068003
复制相似问题