python
autobaba
Python开发工程师。热爱学习新技术。
展开
-
使用python拼接两张图片
# 拼接两张图片使用from PIL import Image, ImageDraw,ImageFontdef hebing(): img = Image.open("1.jpg") #图片1路径 img2 = Image.open("2.jpg") #图片2路径 rrr=Image.new('RGB',(kuan,gao),(255,255,255)...原创 2020-05-05 16:40:32 · 2120 阅读 · 3 评论 -
在windows中利用pipenv搭建python开发环境
安装Pipenvpip install pipenv出现以下问题,请在环境变量中添加配置 The script virtualenv-clone.exe is installed in 'c:\program files (x86)\python37\Scripts' which is not on PATH.Consider adding this directory to PATH...原创 2020-03-27 10:52:20 · 493 阅读 · 0 评论 -
mac配置python虚拟环境pyenv
一、安装配置pyenv经常遇到这样的情况:系统自带的Python是2.x,自己需要Python 3.x,测试尝鲜;系统是2.6.x,开发环境是2.7.x由于Mac机器系统保护的原因,默认的Python中无法对PIP一些包升级,需要组建新的Python环境。此时需要在系统中安装多个Python,但又不能影响系统自带的Python,即需要实现Python的多版本共存。pyenv就是这样一个P...原创 2019-07-22 22:55:51 · 660 阅读 · 0 评论 -
mac配置pipenv环境,安装python3.6.5。
pipenv --python 3.6Warning: Python 3.6 was not found on your system…You can specify specific versions of Python with:$ pipenv --python path/to/pythonmac下homebrew安装python默认最新为python3.71.python官网下载...原创 2019-07-16 00:18:35 · 3198 阅读 · 0 评论