2017-04-03 77 views
0

我有Ubuntu 16.04服務器環境,並試圖在其上安裝CNTK。雖然我試圖在環境部分安裝pip安裝,但出現以下錯誤。在安裝.whl文件時安裝CNTK - MemoryError時出錯

我成功地低於2步跑:

$暢達創建--name cntk-PY34蟒蛇= 3.4 numpy的SciPy的h5py jupyter

$激活cntk-py35

但是,當我嘗試安裝該cntk WHL文件我得到一個錯誤:

$ PIP安裝https://cntk.ai/PythonWheel/CPU-Only/cntk-2.0.beta15.0-cp35-cp35m-linux_x86_64.whl

========錯誤==================

例外: 回溯(最近通話最後一個): 文件 「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/basecommand.py」,行215,主 status = self.run(options,args) 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/commands/install.py」 ,第335行,運行 wb.build(autobuilding = True) 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/wheel.py」,行749,in build self.requirement_set.prepare_files(self.finder) 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/req/req_set.py」 ,380行,在prepare_files ignore_d ependencies = self.ignore_dependencies)) 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/req/req_set.py」,第620行,在_prepare_file中 會話= self.session,hashes = hashes) 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/download.py」,第821行,在unpack_url中 散列=散列 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/download.py」,行659,in unpack_http_url 哈希) 文件「/ home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/download.py「,行853,位於_download_http_url stream = True, File」/home/ubuntu/.conda/envs /cntk-py35/lib/python3.5/site-packages/pip/_vendor/requests/sessions.py「,第488行,獲得 return self.request('GET',url,** kwargs) 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/download.py」,第386行,請求 return super(PipSession,self).request(method,url,* args,** kwargs) 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/ site-packages/pip/_vendor/requests/sessions.py「,第475行,請求 resp = self.send(prep,** send_kwargs) 文件」/home/ubuntu/.conda/envs/cntk-py35/ lib/python3.5/site-packages/pip/_vendor/requests/sessions.py「,第596行,發送 r = adapter.send(request,** kwargs) 文件」/home/ubuntu/.conda/ envs/cntk-py35/lib/python3.5/site-packages/pip/_vendor/cachecontrol/adapter.py「,第37行,發送 cached_response = self.controller.cached_request(request ) 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/_vendor/cachecontrol/controller.py」,第111行,在cached_request中 resp = self.serializer .loads(request,cache_data) 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3.5/site-packages/pip/_vendor/cachecontrol/serialize.py」,第114行,載入 return getattr(self,「_loads_v {0}」。format(ver))(request,data) 文件「/home/ubuntu/.conda/envs/cntk-py35/lib/python3。5 /站點包/ PIP/_vendor/cachecontrol/serialize.py」,線路176,在_loads_v2 緩存= json.loads(zlib.decompress(數據).decode( 「UTF8」)) 的MemoryError

不限想法?

提前感謝!

回答

0

在你的問題,你提到的兩個不同版本的Python(3.4和3.5)。此外,蟒蛇環境激活需要進行採購。假設你已經滿足的openmpi依賴(參考https://github.com/Microsoft/CNTK/wiki/Setup-Linux-Python),你可以嘗試其中的一種:

# For a Python 3.4 based setup 
conda create --name cntk-py34 python=3.4 numpy scipy h5py jupyter 
source activate cntk-py34 
pip install https://cntk.ai/PythonWheel/CPU-Only/cntk-2.0rc1-cp34-cp34m-linux_x86_64.whl 

# For a Python 3.5 based setup 
conda create --name cntk-py35 python=3.5 numpy scipy h5py jupyter 
source activate cntk-py35 
pip install https://cntk.ai/PythonWheel/CPU-Only/cntk-2.0rc1-cp35-cp35m-linux_x86_64.whl