实验环境1.安装Python3.72.安装requests,bs4,pymysql模块实验步骤1.安装环境及模块可参考博客https://blog.51cto.com/13760351/25000482.编写代码#51cto博客页面数据插入mysql数据库#导入模块importreimportbs4importpymysqlimportrequests#连接数据库账号密码db=pymysql.co
分类:
数据库 时间:
2020-06-09 18:57:49
阅读次数:
76
常用镜像源: 清华:https://pypi.tuna.tsinghua.edu.cn/simple阿里云:http://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/在安装包的时候执行命令 ...
分类:
编程语言 时间:
2020-06-08 14:43:37
阅读次数:
79
安装方式 方式一: 执行 pip install -U requests 联网安装requests pip install -U reqiests 方式二: 1.进入https://pypi.org/project/requests/#files下载并解压requests-***.tar.gz 2. ...
分类:
其他好文 时间:
2020-06-07 21:32:23
阅读次数:
79
一、目录结构: pip.conf文件: [global]index-url = https://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com requirements.txt文件: Django==2. ...
分类:
其他好文 时间:
2020-06-07 19:54:55
阅读次数:
82
#安装Chrome sudo yum localinstall google-chrome-stable_current_x86_64.rpm #更换pip源 -i https://pypi.tuna.tsinghua.edu.cn/simple/ #下载并安装Chromedriver http:/ ...
分类:
系统相关 时间:
2020-06-06 01:03:55
阅读次数:
109
1.打开Anaconda Prompt 2.pip install tensorflow==2.0 -i https://pypi.douban.com/simple 过程出现选择,选y,最后等待完成安装。 3.测试 4.在pycharm中找到上面路径的anaconda3下的python.exe,完 ...
分类:
其他好文 时间:
2020-06-04 13:55:27
阅读次数:
67
http://pypi.douban.com/simple/ 豆瓣http://mirrors.aliyun.com/pypi/simple/ 阿里http://pypi.hustunique.com/simple/ 华中理工大学http://pypi.sdutlinux.org/simple/ 山 ...
分类:
编程语言 时间:
2020-06-04 10:45:09
阅读次数:
297
针对Windows系统设置方式如下: 进入C:\Users\用户名目录下,新建pip文件夹\pip.ini: 将下列内容复制到pip.ini文件中保存即可: [global] index-url = http://pypi.douban.com/simpletrusted-host = pypi.d ...
分类:
其他好文 时间:
2020-06-03 21:56:20
阅读次数:
218
背景 pip下载包的时候,国外源下载速度贼慢,尝试换成国内源 国内源有 阿里云 http://mirrors.aliyun.com/pypi/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsingh ...
分类:
其他好文 时间:
2020-06-03 00:28:23
阅读次数:
106
pip备忘录 一:换源 国外的源下载慢,换成国内 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 清华大学 https://pypi.tuna.tsinghua.ed ...
分类:
其他好文 时间:
2020-06-01 13:55:22
阅读次数:
64