Python 3.8
发表于|更新于
|总字数:66|阅读时长:1分钟|浏览量:
Python安装
Python 3.8 removed some stuff. I solved my problems with pip (specifically pip install) by installing pip with curl
What worked for me was:
cd ~/Downloads
Downloading get-pip.py
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
Then running it with python 3.8:
python3.8 get-pip.py
Solved it for me.
文章作者: NUK
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 凌羽!
相关推荐
2019-06-26
nginx 配置文件说明
【1】默认配置文件安装完路径默认为:/usr/local/nginx/conf/nginx.conf (adsbygoogle = window.adsbygoogle || []).push({}); 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid lo...
2020-12-10
Mac os定时任务
crontab (adsbygoogle = window.adsbygoogle || []).push({}); 1.创建一个任务将文件放在某一个目录下 cd /Users/xxx/Desktop/xxx 创建一个任务 vi testing_crontab 1*/1 * * * * /bin/date >> /Users/xxx/Desktop/xxx/time.txt 开始任务 crontab testing_crontab 查看任务 crontab -l 编辑任务 crontab -e 删除任务 crontab -r 2. 文件格式crontab文件格式 第1列:分钟,0~59 第2列:小时,0~23 第3列:日期,1~31 第4列:月份,1~12 第5列:星期,0~7(0和7表示星期天) 第6列:要运行的命令(如果有多个命令用 && 隔开) 特殊字符 星号(*) :代表所有可能的值,例如,month字段如果是星号,则表示在满足其它字段的制约条件后,每月都执行该命令操作; 逗号(,) :...
2019-06-25
Python 打包 spider
python 打包Spider (adsbygoogle = window.adsbygoogle || []).push({}); 使用 pyinstaller 打包 在网上搜索到最多的是用Pyinstaller打包Scrapy项目问题解决!!! 可是在mac os 上,不可以用,mac 上打包,只能打 unix 可执行文件 ,或者 app ,以下以huaban项目为例(本人实际项目不是这一个,huaban只是从网上找的) 1234567891011121314./root //主目录名,以root 代替├── dist // 生产目录├── build // 编译目录├── huaban // scrapy项目 │ ├── spiders│ │ ├── huanbanspider.py//spider文件 │ ├── items.py │ ├── middlewares.py ...
2021-11-08
iOS 图片压缩方法
更多图片处理方法见图片组件 BBWebImage (adsbygoogle = window.adsbygoogle || []).push({}); ##iOS 图片压缩方法 两种图片压缩方法 两种压缩图片的方法:压缩图片质量(Quality),压缩图片尺寸(Size)。 1.压缩图片质量 NSData *data = UIImageJPEGRepresentation(image, compression);UIImage *resultImage = [UIImage imageWithData:data]; 通过 UIImage 和 NSData 的相互转化,减小 JPEG 图片的质量来压缩图片。UIImageJPEGRepresentation:: 第二个参数 compression 取值 0.0~1.0,值越小表示图片质量越低,图片文件自然越小。 压缩图片尺寸 UIGraphicsBeginImageContext(size);[image drawInRect:CGRectMake(0, 0, size.width, size.height...
2019-06-26
ubuntu 16.04 安装 Hexo
简单部署Hexo (adsbygoogle = window.adsbygoogle || []).push({}); 本文所介绍的是新装完系统的ubuntu 还没有安装任何软件 首先安装noejs,Ubuntu源中的nodejs时旧版本,所以需要在安装后更新nodejs sudo apt-get install nodejs sudo apt install nodejs-legacy sudo apt install npm 更换成淘宝的镜像,否则非常慢 sudo npm config set registry https://registry.npm.taobao.org 可以通过 sudo npm config list 查看是否生效 安装更新版本的工具N sudo npm install n -g 更新版本 sudo n stable 可以看到有 installed:版号,说明更新成功 安装hexo sudo npm install -g hexo hexo官网 hexo -s 是调试方式运行,不建议使用 nohu...
2019-06-25
Mac OS X 开启原生自带虚拟内存盘(Ramdisk)
虚拟内存盘是通过软件将一部分内存(RAM)模拟为硬盘来使用的一种技术。 由于内存有高达数 GB 每秒的速度,模拟成硬盘在适当情景下使用,会极大的增强系统性能,并且起到保护硬盘和隐私的作用。 (adsbygoogle = window.adsbygoogle || []).push({}); Mac OS X 是 Unix 类型系统,原生就支持用命令行创建Ramdisk。所以可以省去了买 iRamdisk、tmpDisk 这类鸡肋软件。 如果细心按照本教程一步步的模仿,那么很容易就可以创建一个开机自动创建的 Ramdisk 1、 打开 Dashbord,找到实用工具中的脚本编辑器(10.10中叫这个名字)。输入以下内容: 1234567891011121314do shell script "if ! test -e /Volumes/\"Ramdisk\" ; thendiskutil erasevolume HFS+ \"RamDisk\" `hdiutil attach -nomount ram://2...


