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:
- Differences of urllib, urllib2, httplib and httplib2 libraries in Python
- ImportError: No module named ‘httplib’ [How to Solve]
- fatal Error: unable to auto-detect email address (got ‘tim@newton.(none)’) [Solved]
- Python Importerror: DLL load failed: unable to find the specified module
- [Solved] Python 3.8 Install pyaudio Error: pip3 install pyaudio error: Microsoft Visual C++ 14.0 or greater is required.
- Git is used and an error is reported. Author identity unknown solution
- python mac install MySQLdb ModuleNotFoundError No module named ‘ConfigParser’
- Debian pip3 ImportError: cannot import name ‘IncompleteRead’ [How to Solve]
- [Solved] Python: third-party library fire Install Error
- Centos7 Compile Error: ./configure: No such file or directory