python3.7 pip install livetest Error [How to Solve]

pip install livetest error screenshot:

Problem Cause: There is a compatibility issue.

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

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

Modify XXXError, e to XXXError as e

3. Modify \livetest-0.5\setup.py

modify long_description=file(‘README.rst’).read() -> long_description=open(‘README.rst’).read()
modify version=livetest.__version__-> version=’0.5′
Modify author_email=livetest.__author__-> author_email=’[email protected]

4. Switch the path to \livetest-0.5 in cmd, execute python setup.py install and install successfully.

 

Similar Posts: