
python
于辛庄村委会
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ubuntu16.04配置python虚拟环境
1. python虚拟环境安装 sudo apt-get install python-virtualenv sudo easy_install virtualenvwrapper 上述工具装好后找不到mkvirtualenv命令,需要执行以下环境变量设置。 1.创建目录用来存放虚拟环境 mkdir $HOME/.virtualenvs 2.在~/.bashrc中添加行: exp...原创 2018-06-14 16:34:49 · 415 阅读 · 0 评论 -
腾讯云创建虚拟环境出错
创建虚拟环境,执行命令 mkvirtualenv 环境名 ,的时候如果报错 这里有可能会出错,HTTPError: 404 Client Error: Not Found for url: http://mirrors.tencentyun.com/pypi/simple/pkg-resources/, 原因是腾讯云的主机默认用了腾讯云的pypi源,这里我经过了多方比较发现,国内的...原创 2018-08-02 19:25:08 · 740 阅读 · 0 评论 -
Ubuntu 16.04 安装pip8.1.1后无法升级至9.0等
使用wget安装成功,具体如下: 1.sudo apt-get update 2.sudo apt-get upgrade 3.wget https://bootstrap.pypa.io/get-pip.py 4.sudo python get-pip.py或者sudo python3 get-pip.py原创 2018-08-03 13:30:19 · 1220 阅读 · 0 评论 -
centos 7 下python 搭建虚拟环境
说明: 安装需要依赖pip 安装,使用yum install pip 安装即可 步骤 1、先安装virtualenv和virtualenvwrapper pip install virtualenv virtualenvwrapper 2、此时可以使用virtualenv virtualenv envname #envname 自定义名称 使用该命令会在...原创 2018-09-17 11:04:13 · 169 阅读 · 0 评论 -
crontab 定时执行python脚本
1:crontab -e vi编辑 * */2 * * * python /home/reptile/reptile.py >> /home/reptile/crontest.py.log 2>&1 设置的时候用crontab -e来设置 设置好后可以用crontab -l来查看 情况一:正常情况(系统有service命令) 重启服务命令:[root@c...原创 2018-11-16 11:08:06 · 3314 阅读 · 0 评论