Category: Default
49 posts
macOS python 3.7 报缺少lzma模块的错误解决方法
安装`xz`模块 ```bash brew install xz ``` 安装`backports.lzma` ```bash pip install backports.lzma ``` 更改python安装目录下的`lzma.py`(直接文件夹内搜索) 找到`import`的部分 ```py from backports.lzma import * from backports.lzma import _encode_filter_properties,... Read More
Comments: 0 Category: Default腾讯云轻量应用服务器 自动快照备份
[进入函数服务界面](https://console.cloud.tencent.com/scf/list) 新建函数  [下载代码](https://raw.githubusercontent.com/wdafff/TencentLighthouseAutoSnapshot/main/Lighthouse-Auto-Snapshot.zip)... Read More
Comments: 0 Category: DefaultMacOS vscode 调试运行c/c++
安装推荐的插件,确保有CodeLLDB   打开文件后,终端->配置默认生成任务  选择合适的编译器人物模板... Read More
Comments: 0 Category: DefaultmacOS 隐藏文件而不加点
隐藏 ```bash chflags hidden /Path/To/File ``` 取消隐藏 ```bash chflags nohidden /Path/To/File ``` 可同时增加多个文件路径 对于软链接文件(快捷方式) ```bash chflags -h hidden /Path/To/File ``` Read More
Comments: 0 Category: DefaultXcode 导入 openGL库方法
`glad.c`加入项目文件夹 其余加入`frameworks`文件夹 `project->targets->build settings->search paths->header search paths`加入`/usr/local/include` Read More
Comments: 0 Category: Defaulttensorflow 1.15.0 安装 CUDA 10.0 和 cudnn 7.6.5
安装`tensorflow 1.15.0` ```bash pip3 install tensorflow==1.15.0 ``` 安装`CUDA 10.0` [下载地址](https://developer.nvidia.com/cuda-10.0-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal) 安装好后下载`cudnn 7.6.5`... Read More
Comments: 0 Category: Defaultgit 设置全局账户并存储
全局账号 ```bash git config --global user.name yourname ``` 全局密码 ```bash git config --global user.password yourpasswd ``` 存储全局账号 ```bash git config --global credential.helper store ``` ----- 现在推荐使用ssh 使用账号登录需要token,不方便 Read More
Comments: 0 Category: Defaultpipenv全局设置 Pipfile结构以及换源
Pipfile全局设置 ```bash #pipenv export PIPENV_VENV_IN_PROJECT=1 #在当前目录下创建虚拟环境 export PIPENV_SKIP_LOCK=1 #防止install后自动lock export PIPENV_PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple #更换为清华源 ``` Pipfile结构: ```ini [[source]] [dev-packages] [packages]... Read More
Comments: 0 Category: Defaultubuntu 20.04 Piwigo 安装
确认安装好PHP和MySQL环境 安装方法参见[ubuntu 20.04 mysql-server 8.0.28 安装](http://124.223.224.49:5000/post/58)和[ubuntu 20.04 PHP 安装](http://124.223.224.49:5000/post/77) 进入Apache2端口 ```bash cd /var/www/html ``` 获取Piwigo安装包 ```bash wget... Read More
Comments: 0 Category: Defaultubuntu 20.04 PHP 安装
安装PHP、Apache2和mysqli插件 ```bash sudo apt install php libapache2-mod-php php-mysql ``` 开启Apache2 ```bash sudo systemctl start apache2 ``` 开机自启 ```bash sudo systemctl enable apache2 ``` 网页文件放在 `/var/www/html` Read More
Comments: 0 Category: Default