IOError: [Errno 2] No such file or directory: '/tmp/pip-build-TOULQc/urllib3/setup.py'

 

[root@]# pip install elasticsearch==6.8.2
Collecting elasticsearch==6.8.2
  Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/96/7a/3627579d85bd4d9f4bf73b1d4240e11612f02d86c7c53fbb934cd11d5d57/elasticsearch-6.8.2-py2.py3-none-any.whl (90kB)
    100% |████████████████████████████████| 92kB 2.5MB/s 
Collecting urllib3>=1.21.1 (from elasticsearch==6.8.2)
  Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/ed/63/22ba4ebfe7430b76388e7cd448d5478814d3032121827c12a2cc287e2260/urllib3-2.2.3.tar.gz (300kB)
    100% |████████████████████████████████| 307kB 11.9MB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    IOError: [Errno 2] No such file or directory: '/tmp/pip-build-TOULQc/urllib3/setup.py'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-TOULQc/urllib3/
You are using pip version 8.1.2, however version 24.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

 

解决办法:
到如下地址找到对应版本的python进行安装
https://bootstrap-pypa-io.ingress.us-east-2.psfhosted.computer/pip/

#wget https://bootstrap-pypa-io.ingress.us-east-2.psfhosted.computer/pip/2.7/get-pip.py
#python get-pip.py

posted @ 2024-10-30 16:14  slnngk  阅读(50)  评论(0编辑  收藏  举报