【ModuleNotFoundError: No module named ‘bcolz‘】已解决

背景

bcolz库是用于管理大型dat文件的一个比较有用的库
在Linux服务器上运行有bcolz的项目报错

ModuleNotFoundError: No module named 'bcolz'

pip install bcolz

Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting bcolz
  Using cached http://mirrors.aliyun.com/pypi/packages/5c/4e/23942de9d5c0fb16f10335fa83e52b431bcb8c0d4a8419c9ac206268c279/bcolz-1.2.1.tar.gz (1.5 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.7 in /home/user/anaconda3/envs/face/lib/python3.9/site-packages (from bcolz) (1.23.1)
Building wheels for collected packages: bcolz
  Building wheel for bcolz (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [176 lines of output]
      SSE2 detected

conda install -c anaconda bcolz


CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/anaconda/linux-64/current_repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https://conda.anaconda.org/anaconda/linux-64'

正解

通过在PyPi中搜索bcolz,查到两个模块:
在这里插入图片描述
安装第二个最新的模块后,模块导入问题消失。安装命令如下:

pip install bcolz-zipline

其他在Linux服务器上针对gcc的安装包,均无效。

  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值