自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 资源 (2)
  • 收藏
  • 关注

原创 在Windows下同时启动多个tomcat

在Windows下同时启动多个tomcat

2023-03-02 09:41:01 319

原创 MacBook环境下python连接oracle数据库

我的本机情况:macos Catalina10.15.2+python3.7+orcale11.2g1.下载oracle客户端Instant Client for macOS (Intel x86)2.创建文件夹/opt/oracle ,将下载的文件拷贝到此处,并解压缩​​​​​sudo mkdir /opt/oracle3.用户目录中创建lib文件夹,并配置软链接,命令如下mkdir ~/lib ln -s /opt/oracle/instantcli.

2022-04-24 14:05:32 2230 2

原创 MAC 不能安装该软件,因为当前无法从软件更新服务器获得

Mac安装工具时遇到的问题,貌似因为新版系统的原因需要去苹果的开发者网站,下载插件Command Line Tools,下载对应版本安装后就可以了,我下的最新的https://developer.apple.com/download/more/我的系统是macOS Catalina10.15.2,安装CCommand_Line_Tools_for_Xcode_11.4.dmg可用,仅供参考。...

2022-01-18 19:20:11 5602

原创 mac安装brew

1.打开终端,执行下条指令 /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"2.选择其中一项

2022-01-18 19:19:21 211

原创 使用Database Navigator插件进行连接sqlite报错invalid or incomplete database

问题一:需要直接在第一行添加位置,改为:问题二:路径包含中文改为:

2021-07-26 19:38:34 6635

原创 社区版pycharm添加database管理工具dbBrowser

preferences-plugins-搜索栏中搜索:database-然后点击安装:Databases Navigator安装成功后,点击:view-tool windows-DB Browser即可

2021-07-26 19:23:48 1889

原创 macOS中的Django报错SyntaxError: Generator expression must be parenthesized (widgets.py, line 151

本人先是上网搜索了解决方法,说是python3.7和Django1.11不兼容。但本机环境为python3.8+Django1.11.6。然后打开了widgets.py所在位置,dai gai wei

2021-06-18 22:05:08 1220

原创 python django报错django.core.exceptions.ImproperlyConfigured: runserver can‘t serve media if MEDIA_URL

当执行Django报错django.core.exceptions.ImproperlyConfigured: runserver can't serve media if MEDIA_URL is within STATIC_URL.时,只需要将改为即可

2021-02-20 15:34:36 1640 3

原创 macos中python使用graphviz报错ExecutableNotFound: failed to execute [‘dot‘, ‘-Tsvg‘]

我在运行graphviz时,报错:ExecutableNotFound: failed to execute [‘dot’, ‘-Tsvg’]刚开始以为是python没有安装graphvizpip install graphviz之后运行仍然报错后来发现是因为在电脑上没有安装graphviz,于是在终端运行: brew install graphviz此时:这样就成功了...

2020-11-23 09:31:27 505

原创 pycaret报错AttributeError: ‘NoneType‘ object has no attribute ‘display_id‘

pycaret报错AttributeError: ‘NoneType’ object has no attribute ‘display_id’错误代码:import pandas as pdboston = pd.read_csv('datasets-master/boston.csv')from pycaret.regression import *exp_name = setup(data = boston, target = 'medv')此时会报错:AttributeError:

2020-11-08 20:02:51 742

原创 mac安装brew

直接安可能报错此时,打开 /etc/hosts,(shift+command+g)在最后一行填上这句话199.232.28.133 raw.githubusercontent.com然后终端运行这句话/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"然后等着等着,等好久,就行了...

2020-10-21 13:59:22 123

原创 mac pip安装cloudpickle报错 : After October 2020 you may experience errors when installing or updatin

本机:macos+python3.8安装cloudpickle pip install cloudpickle报错:ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.We recommend you use -.

2020-10-21 10:42:27 962

原创 macos查看python的当前版本号

方法一:在idle中import sys print(sys.version)方法二:在终端中:`python -`V

2020-10-20 16:16:46 1977

原创 python3.8安装pyinstaller报错AttributeError: type object ‘Callable‘ has no attribute ‘_abc_registry‘

本人macos+python3.8安装pyinstaller时报错AttributeError: type object 'Callable' has no attribute '_abc_registry'解决办法:卸载typing pip uninstall typing然后再安装即可pip installer pyinstaller原理未知,网上说是因为typer版本不同所致...

2020-10-19 11:03:21 2383 1

原创 macOS中python安装Django

一、安装(在终端执行)1.普通安装pip install django2.指定某一版本pip install django==3.1.23.更快速的豆瓣源安装sudo pip install -i https://pypi.douban.com/simple/ django二、测试是否安装成功import djangoprint(django.get_version())...

2020-10-10 09:28:37 411

原创 mac python3.8使用modin.pandas报错Please `pip install modin[ray]` to install compatible Ray version.

本人今天python从3.7升级到3.8,使用modin时报错Please pip install modin[ray] to install compatible Ray version.处理方法如下:首先放出快速安装modin的方法:sudo pip install -i https://pypi.douban.com/simple/ modin使用modin时报错(之前也有dask的报错,但是我忘了截图了,但解决方法相同):# pip install "modin[dask]"# p

2020-09-29 16:03:05 1450

原创 python pip安装报错:ERROR: Could not install packages due to an EnvironmentError

macOS+pycharm+python3.7今天豆瓣源安装了swifterpip install -i https://pypi.douban.com/simple/ swifter然后以下报错ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'RECORD'查询之后解决办法为,在pip之前添加sudo即可。sudo pip install -i https

2020-09-27 15:35:26 695

原创 macos+py3.7.6安装wxpython

先展示下我的python版本我使用pip install wxpython出错了,所以使用的豆瓣源安装pip install -i https://pypi.douban.com/simple/ wxpython

2020-09-22 14:26:48 140

原创 ubuntu源配置文件/etc/apt/sources.list 不存在问题

ubuntu源配置文件 /etc/apt/sources.list 不存在问题进入/etc/apt目录,cd /etc/aptls若没有sources.list,进行2步用gedit编辑sources.listsudo gedit /etc/apt/sources.list #https://developer.aliyun.com/mirror/ubuntu在阿里云镜像中找到与自己Ubuntu版本对应的,复制粘贴到sources.list3. 更新镜像源,更新仓库信

2020-06-29 15:02:34 15554 3

原创 selenium爬取国家卫健委疫情数据

selenium爬取国家卫健委疫情数据看老师们都说卫健委网页反爬机制很高,亲测使用selenium+火狐驱动有效此时我的geckodriver放在爬虫文件中,跟.py文件同级from selenium.webdriver import Firefoxfrom selenium.webdriver import FirefoxOptionsimport time,reoption = FirefoxOptions()option.add_argument("--headless") # 隐藏

2020-05-31 11:18:54 4978 4

原创 MacOS系统下selenium之火狐浏览器驱动firefoxdriver安装

MacOS系统selenium3.141.0之火狐浏览器驱动firefoxdriver安装fireFoxdriver.exe各版本下载链接](http://ftp.mozilla.org/pub/firefox/releases/)(http://ftp.mozilla.org/pub/firefox/releases/)安装说明(参考)http://yun.itheima.com/jishu/76.htmlhttps://blog.csdn.net/aehawking0110/article/d

2020-05-31 11:12:52 6472 1

原创 mac系统部署虚拟环境virtualenv&virtualenvwrapper 亲测有效

安装及配置环境参考链接,找了无数个唯一成功的1、安装建议使用pip3安装到python3环境下pip3 install -i https://pypi.douban.com/simple virtualenvpip3 install -i https://pypi.douban.com/simple virtualenvwrapper也可以直接pip安装pip3 install virtualenvpip3 install virtualenvwrapper2、工作文件先找到virtu

2020-05-18 18:19:10 347 1

原创 pandas基础知识

1、pandas基本介绍1.1 series https://www.cnblogs.com/songzhixue/p/11341440.html1.2periods https://blog.csdn.net/starter_____/article/details/814329561.3DataFrame https://blog.csdn.net/wei_lin/articl...

2020-04-12 13:14:24 299

原创 numpy基础

## 1、numpy基础知识import numpy as np1、array = np.array([ [1, 2, 3], [4, 5, 6]])print(array)print('number of dim:',array.ndim) #几维数组print('shape:', array.shape)print('size:', array.size)...

2020-04-11 14:42:56 87

原创 python list列表模块使用方法

1.按索引取值,正为从左往右,负为从右往左my_list = [1, 2, 3, 4, 5]print(my_list[1])print(my_list[-1])2.切片,起始:结束:步长my_list = [1, 2, 3, 4, 5]print(‘my_list[1:4]’,my_list[1:4])print(‘my_list[:3]’,my_list[:3])print(‘...

2020-04-10 14:27:46 793

原创 selenium基本使用

selenium基本使用from selenium import webdriver #导入库import timeif __name__ == '__main__': # 1、创建浏览器对象 # 有界面浏览器 driver = webdriver.Chrome() #声明浏览器 # 2、发送请求 driver.get('https://www...

2020-03-29 22:05:26 128

原创 senlenium中chromedriver安装(windows和macos)

**windows下载及安装chromedriver.exe**(说明链接)https://blog.csdn.net/muriyue6/article/details/101440353?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-taskh...

2020-03-29 21:58:30 335

原创 scrapy爬当当网书籍信息

本次只爬取搜索的python相关的所有书籍scrapy start project ddbook(cd /ddbook/ddbook)scrapy genspider -t basic book dangdang.com然后打开 book.py# http://search.dangdang.com/?key=Python&act=input&page_index=1#...

2020-03-27 21:45:30 238 1

原创 分别用BeautifulSoup和scrapy爬取某一城市天气预报

分别用BeautifulSoup和scrapy爬取某一城市天气预报爬取网站:中国天气网 http://www.weather.com.cn此次我们以北京为例。1、首先我们搜索进入到北京页面:http://www.weather.com.cn/weather/101010100.shtml?from=cityListCmp然后分析页面源代码构造BeautifulSoupfrom ur...

2020-03-24 21:20:36 453

FileZilla Server轻松搭建个人FTP服务器.docx

FileZilla Server轻松搭建个人FTP服务器

2020-08-19

2020.6.12-python-阿里大于短信平台.docx

python-阿里大于短信平台

2020-06-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除