python
大脸猿
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
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 · 2527 阅读 · 2 评论 -
使用Database Navigator插件进行连接sqlite报错invalid or incomplete database
问题一:需要直接在第一行添加位置,改为:问题二:路径包含中文改为:原创 2021-07-26 19:38:34 · 7512 阅读 · 0 评论 -
社区版pycharm添加database管理工具dbBrowser
preferences-plugins-搜索栏中搜索:database-然后点击安装:Databases Navigator安装成功后,点击:view-tool windows-DB Browser即可原创 2021-07-26 19:23:48 · 2044 阅读 · 0 评论 -
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 · 1373 阅读 · 0 评论 -
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 · 1887 阅读 · 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 · 622 阅读 · 0 评论 -
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 · 888 阅读 · 0 评论 -
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 · 1156 阅读 · 0 评论 -
macos查看python的当前版本号
方法一:在idle中import sys print(sys.version)方法二:在终端中:`python -`V原创 2020-10-20 16:16:46 · 2101 阅读 · 0 评论 -
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 · 2709 阅读 · 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 · 483 阅读 · 0 评论 -
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 · 1644 阅读 · 0 评论 -
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 · 936 阅读 · 0 评论 -
macos+py3.7.6安装wxpython
先展示下我的python版本我使用pip install wxpython出错了,所以使用的豆瓣源安装pip install -i https://pypi.douban.com/simple/ wxpython原创 2020-09-22 14:26:48 · 218 阅读 · 0 评论
分享