导入火焰窗口错误输出

时间:2015-06-24 12:43:09

标签: python

我的Windows框上安装了ipython。 我有pip安装了火焰,但导入错误任何想法

----> 1 import blaze as bz

C:\Python34\lib\site-packages\blaze\__init__.py in <module>()
     16
     17 from datashape import dshape, discover
---> 18 from .utils import ignoring
     19 from .expr import (Symbol, TableSymbol, symbol, ndim, shape)
     20 from .expr import (by, count, count_values, distinct, head, join, label, like,

C:\Python34\lib\site-packages\blaze\utils.py in <module>()
     25 from .dispatch import dispatch
     26
---> 27 thread_pool = ThreadPool(psutil.NUM_CPUS)
     28
     29

AttributeError: 'module' object has no attribute 'NUM_CPUS'

尝试更新,但看起来不起作用hmmm

C:\Python34\Scripts>pip install http://github.com/ContinuumIO/blaze --upgrade
Downloading/unpacking http://github.com/ContinuumIO/blaze
Cleaning up...
Exception:
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\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 "C:\Python34\lib\site-packages\pip\req.py", line 1197, in prepare_files
    do_download,
  File "C:\Python34\lib\site-packages\pip\req.py", line 1375, in unpack_url
    self.session,
  File "C:\Python34\lib\site-packages\pip\download.py", line 582, in unpack_http_url
    unpack_file(temp_location, location, content_type, link)
  File "C:\Python34\lib\site-packages\pip\util.py", line 627, in unpack_file
    and is_svn_page(file_contents(filename))):
  File "C:\Python34\lib\site-packages\pip\util.py", line 210, in file_contents
    return fp.read().decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

Storing debug log for failure in C:\Users\Lenovo\pip\pip.log

1 个答案:

答案 0 :(得分:0)

issue已修复this merge 你应该将当前的火焰版本更新为更新版本:

pip install http://github.com/ContinuumIO/blaze/zipball/master --upgrade