python3.7 pip install livetest error

pip install livetest error screenshots:

 

 

 Cause of the problem: compatibility problems.

problem solved:

1. Download https://files.pythonhosted.org/packages/de/77/7ab378ff9e62013f1756b64b1553e126ba7b3f3598bc9c5c8fc508c13d55/livetest-0.5.tar.gz

2. Modify \ livetest-0.5 \ livetest \ __ init__.py 

修改import httplib -> import http.client as httplib
修改import urlparse -> import urllib.parse
修改from Cookie import BaseCookie, CookieError -> import http.cookiejar

Modify XXXError, e is XXXError AS E

3. Modify \ livetest-0.5 \ setup.py

修改long_description=file('README.rst').read() -> long_description=open('README.rst').read()
修改version=livetest.__version__ -> version='0.5'
修改author_email=livetest.__author__ -> author_email='[email protected]'

4. In switching to the path cmd  \ livetest-0.5, performing python setup.py install, the installation was successful.

 

Guess you like

Origin www.cnblogs.com/joker666/p/11583249.html