Results 3 comments of Francis

source code #coding:utf-8 import unittest import json import HtmlTestRunner import unittest.mock from demo import RunMain from mock_demo import mock_test class TestMethod(unittest.TestCase): def setUp(self): self.run=RunMain() def test_03(self): url = 'http://coding.imooc.com/api/cate' data...

Collecting requests==1.2.3 (from -r requirements.txt (line 13)) Using cached requests-1.2.3.tar.gz Collecting six==1.3.0 (from -r requirements.txt (line 14)) Using cached six-1.3.0.tar.gz Collecting wsgiref==0.1.2 (from -r requirements.txt (line 15)) Using cached wsgiref-0.1.2.zip...

I found the solution, that you need create the virtual env at first, and then the problem will be resolved. the command for your reference virtualenv env source env/bin/activate now...