我想在Microsoft Azure上的Python Web角色中使用Numpy和Pandas。在Azure Web角色上安裝Numpy時,「設備上沒有剩餘空間」
我嘗試將numpy
和pandas
添加到requirements.txt
,但這並不奏效(使用pip安裝numpy通常會導致問題,所以這是預期的)。
I followed this advice以及從http://www.lfd.uci.edu/~gohlke/pythonlibs/下載的numpy作爲輪子,並將該文件放入網絡角色的根目錄中。眼下requirements.txt
看起來是這樣的:
azure>=0.8.0
azure-storage-logging
requests_futures
numpy-1.9.3+mkl-cp34-none-win32.whl
pandas
我遠程處理到虛擬機,並發現了一些日誌中C:\Resources\Directory\7044b9f2b424470aa191d9c178d06399.WorkerRole1.DiagnosticStore\LogFiles\ConfigureCloudService
:
Storing debug log for failure in D:\Windows\system32\config\systemprofile\pip\pip.log
pip 1.5.6 from D:\Python34\lib\site-packages (python 3.4)
Unpacking e:\approot\numpy-1.9.3+mkl-cp34-none-win32.whl
Cleaning up...
Exception:
Traceback (most recent call last):
File "D:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
status = self.run(options, args)
File "D:\Python34\lib\site-packages\pip\commands\install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "D:\Python34\lib\site-packages\pip\req.py", line 1197, in prepare_files
do_download,
File "D:\Python34\lib\site-packages\pip\req.py", line 1364, in unpack_url
unpack_file_url(link, location, download_dir)
File "D:\Python34\lib\site-packages\pip\download.py", line 640, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File "D:\Python34\lib\site-packages\pip\util.py", line 621, in unpack_file
unzip_file(filename, location, flatten=not filename.endswith(('.pybundle', '.whl')))
File "D:\Python34\lib\site-packages\pip\util.py", line 510, in unzip_file
fp.write(data)
OSError: [Errno 28] No space left on device
Storing debug log for failure in D:\Windows\system32\config\systemprofile\pip\pip.log
我怎樣才能得到NumPy的工作?
你'd:'驅動器空間不足 –
很明顯,但這是微軟Azure管理的虛擬機。我試過將我的計劃從超小型升級到中型,但這似乎只會增加內存大小,而不會增加磁盤大小。 – JrtPec
那麼你將不得不釋放一些空間。嘗試刪除一些臨時目錄 –