![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
T_Ting555
这个作者很懒,什么都没留下…
展开
-
pip install sasl 报错 error: command ‘gcc‘ failed with exit status 1
我想安装pyhive,还需要其依赖,pip install thrift是顺利的,但是在安装sasl时报错检查gcc:gcc --version有的呀最后根据这个https://github.com/cloudera/python-sasl/pull/13总结:不安装了sasl了,安装sasl3https://pypi.org/project/sasl3/根据上面的说明再安装yum install cyrus-sasl-devel.x86_64然后 pip install sasl3 再原创 2020-12-28 19:08:56 · 2402 阅读 · 0 评论 -
Matplotlib is building the font cache using fc-list. This may take a moment.
>>>import matplotlib.pyplot as plt/usr/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment. warnings转载 2017-05-02 19:55:49 · 3697 阅读 · 0 评论 -
ubuntu16.04源码安装PyTorch
Ubuntu16.04 64位, python3.5, 已装numpy, pip, git等git clone --recursive https://github.com/pytorch/pytorchpip install -r requirements.txtpython setup.py install(开始各种错误,调好错误以后再install)错误:原创 2017-11-06 14:57:55 · 6339 阅读 · 1 评论 -
AttributeError: module 'scipy.sparse' has no attribute 'b'csr'_matrix'
from scipy.sparse import csr_matrix, load_npzimport scipyprint(scipy.__version__) # 0.19.0file_path = 'E:\\'movie_matrix_train = load_npz(file_path + 'my_matrix.npz')我在实验室的电脑上都好好的,在我笔记本上就报错了...原创 2019-03-30 14:52:27 · 4112 阅读 · 0 评论 -
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerc
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''在处理Pandas各列数据时,遇到这个错误。有的列是数值,有的列是字...原创 2019-08-30 17:12:15 · 26530 阅读 · 1 评论