python構建集成測試框架與部署

1.解壓項目目錄到服務器

unzip filename -d ./

 

2.執行腳本可能會報錯

Traceback (most recent call last):
  File "dataQA_Ralph_dependency.py", line 3, in <module>
    from BeautifulReport import BeautifulReport
ImportError: No module named BeautifulReport

我們使用python 3.6看下好像也沒有

[root@pro-app-174 autotest]# /usr/local/python3.6/bin/python3 dataQA_dependency.py 
Traceback (most recent call last):
  File "dataQA_Ralph_dependency.py", line 3, in <module>
    from BeautifulReport import BeautifulReport
ModuleNotFoundError: No module named 'BeautifulReport'
[root@pro-app-174 autotest]# 

 

/usr/local/python3.6/bin/pip3 install --upgrade pip

/usr/local/python3.6/bin/pip3 install BeautifulReport

 

/usr/local/python3.6/bin/python3 /opt/housekeeper/autotest/dataQA_dependency.py

 

 

 

 

 

 

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章