Python (37) – pip 一堆坑

☁ 連線被拒絕

Looking in indexes: http://192.168.0.1:8081/repository/pypi-group/simple
Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'NewConnectionError('
<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fb2f4e55f28>: 
Failed to establish a new connection: [Errno 111] 連線被拒絕',)': 
/repository/pypi-group/simple/pip/
設定index-url
pip install Pillow --index-url=https://pypi.python.org/simple/

☁ root tmp空間不足

Could not install packages due to an EnvironmentError: [Errno 28] 裝置上已無多餘空間
在Jennifer(非root用戶)的位置建立一個root_tmp資料夾,再指向tmpdir為此資料夾
mkdir root_tmp
export TMPDIR=/home/jennifer/root_tmp

(若又跳坑,會再繼續更新)

 

廣告