40:441: execution error: The directory ‘/Users/lina/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions ...
Mac的python版本从2.7升级到 3.8
1、下载python https://www.python.org/downloads/release/python-381/ image.png 2、安装python 3.8.1 下载好的pkg文件进行安装,安装完成之后,python 3.8.1的默认安装路径如下:执行: ope...
Python使用阿里云镜像
临时使用 pip install -i https://mirrors.aliyun.com/pypi/simple/ 包名 以后都使用阿里云的源 pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ 查看设置的结果 pip ...
uni-app带参数跳转页面
传参页面 <view class="comment" @click="comment(detail.goods_id)"> <!-- 拿到要传过去的参数 --> </view> methods: { comment:function(id){ uni.navigateTo({ //多个参数用&拼接:u...
docker 创建mongodb 容器 映射本地数据目录和配置文件
mongo 容器内部的三个重要目录 日志目录:/var/log/mongodb/ or /var/log/mongodb/mongod.log 数据库目录:/data/db 数据库配置文件:/data/configdb/mongo.conf or /data/configdb/ 准备工作 //在本地...
uni-app使用应用内置地图查看位置
如图 <map> 组件的宽/高推荐写直接量,比如:750rpx,不要设置百分比值 //插入map组件 <map style="width: 100%; height: 289rpx;" :latitude="latitude" :longitude="longitude" :markers="...
Nginx配置https
user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.t...
uni-app 实用样式学习 flex
如果需要均分元素实现页面排版,需要在父级元素上写入desplay:flex;子级元素就会自动均分排版;如果想实现元素不同比例的排版,在子级元素加入:nth-of-type(x)样式来定义比例。 <view class="topbar"> ...
uni-app踩坑 – gitignore忽略提交unpackage文件夹至git仓库
首先命令行新建.gitignore文件。 touch .gitignore 1 然后记事本打开。复制粘贴以下: node_modules/ .project unpackage/ .DS_Store 1234 也可以直接使用uni-app的hello-uniapp模板中的.gitignore...
docker配置nginx并实现反向代理&端口转发加ssl配置
docker run --name nginx -d --restart=always -p 80:80 -p 443:443 -v /root/nginx/nginx.conf:/etc/nginx/nginx.conf -v /root/nginx/cart:/etc/nginx/cart -v /root/nginx/conf:/etc/nginx/conf.d -v /root/n...