Table of contents
- 1. pip: The "pip" item cannot be recognized as the name of a cmdlet, function, script file or runnable program. Please check the spelling of the name and, if a path is included, make sure the path is correct and try again.
- 2、pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out
- 3. Problem solving-ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the specified file.
- 4、ERROR: Could not find a version that satisfies the requirement pymysql (from versions: none) ERROR
1. pip: The "pip" item cannot be recognized as the name of a cmdlet, function, script file or runnable program. Please check the spelling of the name and, if a path is included, make sure the path is correct and try again.
Solution:
Add the path to the Python-sciprt folder in the path of the environment variable
2、pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out
Cause of the problem: The download times out. Just add the timeout during installation.
解决方案:pip --default-timeout=1000 install -U 模块
3. Problem solving-ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the specified file.
cmd中输入:
python -m pip install --upgrade pip
4、ERROR: Could not find a version that satisfies the requirement pymysql (from versions: none) ERROR
Reason: The network is unstable. Just replace it with a domestic image and install it and it will be ok.
具体报错:
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/pymysql/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/pymysql/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/pymysql/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/pymysql/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/pymysql/
ERROR: Could not find a version that satisfies the requirement pymysql (from versions: none)
ERROR: No matching distribution found for pymysql
WARNING: You are using pip version 21.3.1; however, version 23.0.1 is available.
You should consider upgrading via the 'D:\workplace\API_autoTest\api_lemon48_demo\venv\Scripts\python.exe -m pip install --upgrade pip' command.
solve:
pip install pymysql -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com```