Pip Install Timeout Issue

前端 未结 3 637
名媛妹妹
名媛妹妹 2020-12-30 06:55

I am trying to install pandas in my company computer. I tried to do

pip install pandas

but operation retries and then timesout.

th

相关标签:
3条回答
  • 2020-12-30 07:39

    This works for me:

    pip --default-timeout=1000 install pandas
    
    0 讨论(0)
  • 2020-12-30 07:49

    Did you install python using anaconda ? if not I recommend you reinstall it using anaconda.

    If you used anaconda to install python, try this conda install pandas

    0 讨论(0)
  • 2020-12-30 07:55

    PIP has a default timeout of 15 sec, reference guide. Pandas is a relatively big file, at 10MB, and it's dependant Numpy, at 20MB could still be needed (if it is not installed already.). In addition, your network connection may be slow. Therefore, set PIP to take longer time by, for example, giving it 1000 sec:

    pip --default-timeout=1000 install pandas
    

    as suggested by @Pouya Khalilzad.

    0 讨论(0)
提交回复
热议问题