html-blogsdemo
博客标题小样,代码预览是有动态效果的,但在博客园发布就没动画了,知道的大神麻烦告知下,谢谢。
code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>blogs</title>
</head>
<body>
<div> <h1 style="color: mediumpurple; background-color: gold">
<!-- a标签中的鼠标触碰特效-onmousemove/onmouseout(类似css的hover实现)在发布后无法实现,
特此注明。如知晓原因请不吝赐教 -->
<a href="http://www.cnblogs.com/DeRozan/p/7416442.html" target="_blank"
style="font-size: large;" onmouseover="this.style.fontSize='x-large'"
onmouseout="this.style.fontSize='large'">
python版本管理&virtualenv管理</a>
</h1>
<p>virtualenvwrapper是用来管理virtualenv的扩展包,用着很方便。</p>
</div>
<p>注意,在python3中,pip的安装:sudo apt install python3-pip</p>
<p> python2:sudo apt install python2-pip</p>
<p> </p>
<p>1.virtualenvwrapper 安装:</p>
<div class="cnblogs_code">
<pre><span style="color: #000000;">#安装virtualenv
(<span style="color: #0000ff;">sudo) pip <span style="color: #0000ff;">install<span style="color: #000000;"> virtualenv #安装virtualenvwrapper
(<span style="color: #0000ff;">sudo) pip <span style="color: #0000ff;">install virtualenvwrapper</span></span></span></span></span></span></pre>
</div>
<p> </p>
<p>2. 配置:</p>
<p>修改~/.bash_profile或其它环境变量相关文件(如 .bashrc(我的Ubuntu15.10 下的是这个) 或用 ZSH 之后的 .zshrc),添加以下语句:</p>
<div class="cnblogs_code">
<pre>export WORKON_HOME=$HOME/<span style="color: #000000;">.virtualenvs
export PROJECT_HOME=$HOME/<span style="color: #000000;">workspace
source /usr/local/bin/virtualenvwrapper.<span style="color: #0000ff;">sh</span></span></span></pre>
</div>
<p>然后运行:</p>
<div class="cnblogs_code">
<pre>source ~/.bash_profile</pre>
</div>
<p> </p>
<p>3. 用法:</p>
<p style="white-space: normal;"><strong><span style="color: #ff0000;">mkvirtualenv zqxt:创建运行环境zqxt</span></strong></p>
<p style="white-space: normal;"><strong><span style="color: #ff0000;">workon zqxt: 工作在 zqxt 环境 或 从其它环境切换到 zqxt 环境</span></strong></p>
<p class="p1"><strong><span style="color: #ff0000;">deactivate</span></strong><span class="s1">: 退出终端环境</span></p>
<p style="white-space: normal;"><strong> </strong></p>
<p style="white-space: normal;"><strong>其它的:</strong></p>
<p style="white-space: normal;"><strong><span style="color: #ff0000;">rmvirtualenv</span></strong> ENV:删除运行环境ENV</p>
<p style="white-space: normal;"><strong><span style="color: #ff0000;">mkproject</span></strong> mic:创建mic项目和运行环境mic</p>
<p style="white-space: normal;"><span style="color: #ff0000;"><strong>mktmpenv</strong>:创建临时运行环境</span></p>
<p style="white-space: normal;"><span style="color: #ff0000;"><strong>lsvirtualenv</strong>: 列出可用的运行环境</span></p>
<p style="white-space: normal;"><span style="color: #ff0000;"><strong>lssitepackages</strong>: 列出当前环境安装了的包</span></p>
<p style="white-space: normal;"> </p>
<p style="white-space: normal;"><span style="color: #8795fc;">注:也可直接使用<a href="http://www.cnblogs.com/ningvsban/p/4384995.html" target="_blank"><span style="background-color: #ffcc99;"><strong><span style="font-size: 15px;"> pyenv</span></strong></span></a>进行多版本python管理,自带virtualenv。</span></p>
</body>
</html>
预览效果图

html-blogsdemo的更多相关文章
- 浅谈SQL注入风险 - 一个Login拿下Server
前两天,带着学生们学习了简单的ASP.NET MVC,通过ADO.NET方式连接数据库,实现增删改查. 可能有一部分学生提前预习过,在我写登录SQL的时候,他们鄙视我说:“老师你这SQL有注入,随便都 ...
- 浅谈SQL注入风险 - 一个Login拿下Server(转)
前两天,带着学生们学习了简单的ASP.NET MVC,通过ADO.NET方式连接数据库,实现增删改查. 可能有一部分学生提前预习过,在我写登录SQL的时候,他们鄙视我说:“老师你这SQL有注入,随便都 ...
- .NET插件技术-应用程序热升级
今天说一说.NET 中的插件技术,即 应用程序热升级.在很多情况下.我们希望用户对应用程序的升级是无感知的,并且尽可能不打断用户操作的. 虽然在Web 或者 WebAPI上,由于多点的存在可以逐个停用 ...
- WPF 自定义ColorDialog DropDownCustomColorPicker
今天分享一个 WPF 版的ColorDialog,该控件源自 这里,不过笔者已经该控件做了大量的修改工作,以适应自己的产品需求,闲话少说,先看看效果图: 1.DropDownCustomColorPi ...
- 使用Hexo 搭建自己的博客
使用Hexo 搭建自己的博客 最近一直都想着如何去搭建属于自己的博客,有空的时候就写写文章什么的. 本人对该博客系统的要求是: 博文的编写要采用现在流行的MarkDown来进行编写. 本人还不想去注册 ...
随机推荐
- ECMAScript新特性【一】--Object.create
Object.create(prototype, descriptors) :创建一个具有指定原型且可选择性地包含指定属性的对象 参数: prototype 必需. 要用作原型的对象. 可以为 nu ...
- 图片变换【Matrix】矩阵 简介
Matrix矩阵介绍 官方文档地址:https://developer.android.com/reference/android/graphics/Matrix.html 在Android中,对图片 ...
- windows10 onenote 显示英文 怎么办?
转自:https://jingyan.baidu.com/article/fdffd1f85d064df3e98ca108.html 原因:首选输入法为英文. 方法:修改,调整首选为中文. 1.右下角 ...
- 如何在CentOS 7中添加新磁盘而不用重启系统
导读 对大多数系统管理员来说扩充 Linux 服务器的磁盘空间是日常的工作之一.因此这篇文章会通过使用 Linux 命令,在 CentOS 7 系统上演示一些简单的操作步骤来扩充您的磁盘空间而不需要重 ...
- C# 使用int.TryParse,Convert.ToInt32,(int)将浮点类型转换整数时的区别
int.TryParse,Convert.ToInt32,(int) 这几种类型在将浮点类型转换整数时是有差别 Convert.ToInt32则会进行四舍五入 int.TryParse只能转换整数,即 ...
- [Algorithm] Array production problem
Given an array of integers, return a new array such that each element at index i of the new array is ...
- Linux shell 提取文件名和目录名
${}用于字符串的读取,提取和替换功能,可以使用${} 提取字符串 1.提取文件名 [root@localhost log]# var=/dir1/dir2/file.txt [root@localh ...
- STL - 函数作为算法的参数
函数作为参数,相当于C++的函数指针, C#的委托 for_each函数参数: #include <iostream> #include <algorithm> #includ ...
- [置顶] ArcGIS Runtime SDKs 10.2 for iOS & Android& OS X发布
我们高兴的宣布:ArcGISRuntime SDKs 10.2 for iOS & Android & OS X正式发布!在10.2版本中,你可以在iOS.Android和Mac设备上 ...
- Python continue
continue继续循环在循环过程中,可以用break退出当前循环,还可以用continue跳过后续循环代码,继续下一次循环.假设我们已经写好了利用for循环计算平均分的代码: L = [75, 98 ...