自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 2379

原创 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 26520 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 4093

原创 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 220

原创 记录安装Hadoop(上篇)(图片有些多)

想试用hadoop,可是没配置好怎么用呢,所以我们来装它。安装过程中有一些小尝试会看到。伪分布式。从Ubuntu16安装开始,设共享文件夹,改镜像源,克隆虚拟机。之前已经装过虚拟机了,把它的信息附上:VMware® Workstation 12 Pro 12.5.5 目录一、准备工作1. 下载jdk2. 下载Ubuntu镜像3. VMware配置二、配置Ubun...

2018-09-12 01:17:07 819 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 6331 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 5183

转载 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 3685

JAVA jdk 8u271 linux x64

jdk-8u271-linux-x64.tar.gz 今天刚在官网下的,我放到文件夹里打包,解压后即可

2020-10-31

Android Studio

书+源码。仅供学习参考,侵删。Android APP开发从入门到精通 新手零起点高手进阶书的第二行代码 基于Android Studio全新升级更新 基于Android 7.0的开发入门讲义

2017-05-25

mysql-connector-java-5.1.40

mysql-connector-java-5.1.40,亲手从官网下的,Java使用JDBC连接MySQL数据库要用的驱动,解压后找到里面的jar文件导入

2016-11-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除