- 博客(8)
- 资源 (3)
- 收藏
- 关注
原创 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 2456
原创 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 26572 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 4148
原创 1. 两数之和(Two Sum)
给定一个整数数组和一个目标值,找出数组中和为目标值的两个数。你可以假设每个输入只对应一种答案,且同样的元素不能被重复利用。示例:给定 nums = [2, 7, 11, 15], target = 9因为 nums[0] + nums[1] = 2 + 7 = 9所以返回 [0, 1]一、脑子里先想到的就两个数,第一个数从头数,第二个数从第一个数下一个开始数,且这两个数...
2018-09-26 21:38:44 232
原创 记录安装Hadoop(上篇)(图片有些多)
想试用hadoop,可是没配置好怎么用呢,所以我们来装它。安装过程中有一些小尝试会看到。伪分布式。从Ubuntu16安装开始,设共享文件夹,改镜像源,克隆虚拟机。之前已经装过虚拟机了,把它的信息附上:VMware® Workstation 12 Pro 12.5.5 目录一、准备工作1. 下载jdk2. 下载Ubuntu镜像3. VMware配置二、配置Ubun...
2018-09-12 01:17:07 1033 2
原创 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 6385 1
转载 android studio中MainActivity的R找不到
android studio中MainActivity的R出错,找不到,标红public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInst
2017-05-25 20:30:45 5206
转载 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 3713
Android Studio
2017-05-25
mysql-connector-java-5.1.40
2016-11-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人