摘要: 文件增加可执行权限 sudo chmod 744 file_name 文件夹权限设置回原来的样子 sudo chmod -R 755 file_name sudo chmod u+w file_name 阅读全文
posted @ 2024-08-26 05:56 Alien_Lee 阅读(20) 评论(0) 推荐(0)
摘要: 下载 https://us-logger1.oss-cn-beijing.aliyuncs.com/SimHei.ttf 新建目录/usr/local/share/fonts/truetype cp SimHei.ttf /usr/local/share/fonts/truetype sudo fc 阅读全文
posted @ 2024-08-22 13:26 Alien_Lee 阅读(1077) 评论(0) 推荐(0)
摘要: 创建虚拟环境 python3.8 -m venv --clear project pip install --upgrade pip 在主目录下创建.pip文件夹 mkdir ~/.pip 然后在该目录下创建pip.conf文件编写如下内容: [global] trusted-host = http 阅读全文
posted @ 2024-08-22 12:06 Alien_Lee 阅读(34) 评论(0) 推荐(0)
摘要: 备份源 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 编辑源 sudo vim /etc/apt/sources.list 清华大学源 deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ b 阅读全文
posted @ 2022-02-17 15:28 Alien_Lee 阅读(116) 评论(0) 推荐(0)
摘要: 1、下载 https://www.oracle.com/technetwork/java/javase/downloads/index.html 2、配置环境变量 点击“新建” 变量名:CLASSPATH 变量值:.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\to 阅读全文
posted @ 2019-09-27 00:01 Alien_Lee 阅读(173) 评论(0) 推荐(0)
摘要: 获取补丁文件 curl http://pastie.org/pastes/9934018/download o /tmp/vmnet 3.19.patch 如果无法下载,云盘上取,网址为:http://pan.baidu.com/s/1sj4uWFF 提取码:a7wq cd /usr/lib/vmw 阅读全文
posted @ 2018-09-05 00:59 Alien_Lee 阅读(408) 评论(0) 推荐(0)
摘要: 1、升级python2.6.6 至 python2.7.12+ 升级时./configure prefix=/usr/local/python27 enable unicode=ucs4 2、升级gcc,g++ 至5.4.0 libstdc++ devel 4.4.7 4.el6.x86_64.rp 阅读全文
posted @ 2017-11-13 10:48 Alien_Lee 阅读(356) 评论(0) 推荐(0)
摘要: sudo apt get install sasl2 bin sudo apt get install libsasl2 dev pip install pyhs2 pip install pyhive 下载 https://pypi.python.org/pypi/thrift_sasl/0.2. 阅读全文
posted @ 2017-10-13 14:14 Alien_Lee 阅读(194) 评论(0) 推荐(0)
摘要: 1.python连接hive,其实是连接hiveserver,连接的包的impyla impyla安装: error: cc1plus 没有文件或目录 需要安装gcc 和g++,并且版本保持一致 error: sasl/sasl.h: 没有那个文件或目录 sudo apt get install l 阅读全文
posted @ 2017-10-13 14:07 Alien_Lee 阅读(240) 评论(0) 推荐(0)
摘要: 可以看到一个非二次目标函数在非奇异点的局部最小值点附近,可以用二次函数来近似。 阅读全文
posted @ 2017-08-24 17:05 Alien_Lee 阅读(153) 评论(0) 推荐(0)