Python
python库/实例/语法
# xiaowang #
这个作者很懒,什么都没留下…
展开
-
tensorflow与keras版本对应
tensorflow与keras版本对应原创 2022-01-24 20:21:27 · 15979 阅读 · 7 评论 -
IndexError: too many indices for array
训练模型时报错IndexError: too many indices for array查找网上的解决方法意思是矩阵的维度出现了冗余,去除冗余就可以避免这样的问题参考链接.原创 2022-01-24 20:10:48 · 601 阅读 · 0 评论 -
ValueError: non-integer arg 1 for randrange()
random.randint(0.1,0.9)ValueError: non-integer arg 1 for randrange()改成:random.uniform(0.1,0.9)解决!原创 2021-01-11 17:38:56 · 6844 阅读 · 3 评论 -
conda常用虚拟环境命令
conda常用虚拟环境命令查看conda版本创建虚拟环境克隆虚拟环境列出系统存在虚拟环境激活虚拟环境共享虚拟环境其他下载anaconda安装的python直接可以使用conda工具查看conda版本conda --version创建虚拟环境# Python 3.7conda create -n env_name python=version package_names#-n指定虚拟环境名,python=version指定Python版本,package_names创建环境时就安装的包,可省略原创 2021-01-11 14:42:57 · 493 阅读 · 0 评论 -
安装matplotlib报错:ERROR: Failed building wheel for kiwisolver
引子:学习Keras框架安装TensorFlow,单独创建了一个虚拟环境,tf配置好没想到安装matplotlib时出了一堆问题。PS:之前创建的环境均使用python3.7.0,使用pip install matplotlib可以轻松安装然而这次: error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.mic原创 2020-11-01 21:33:51 · 12235 阅读 · 0 评论 -
如何在jupyter notebook运行pytorch
jupyter notebook 添加虚拟环境创建虚拟环境配置创建虚拟环境略配置进入prompt命令行,激活虚拟环境activate <环境名字>pip install jupyter打开juputer,发现已经显示该环境原创 2020-11-01 19:58:00 · 1841 阅读 · 0 评论