spyder

win64位系统+Anacond(python3.6)避坑快速安装Dlib+Face_recognition

笑着哭i 提交于 2020-04-24 06:58:01
最近对人脸识别感兴趣,于是入坑安装Face_recognition,花一天功夫没装下来,我的系统和Python版本是win64+Anacond(python3.7.1)。 一天下来搞明白了想安装face_recongnition的必需配置好Dlib, 配置好dlib的必要条件是:自己安装一次dlib,并且编译,还要安装巨大的VS,安装Dlib的配置好boost和cmake,一直在摸索不安装VS就想把其他都安装好,一直都是出错。终于在睡觉前微信搜索到一篇博文在 python3.6下可成功安装Face_recognition ,第二天花了十来分钟就安装成功,主要的时间花在准备上,现在把我刨坑经验告诉大家。 一、准备工作 1、安装Python3.6 有关的知识网上很多,自行百度,我这里偷懒也找了一篇近似文章( anaconda中更改python版本 ),然后打开终端,我新建的环境名字就叫face3.6,终端的名字也是这个名 字, 留着终端不要关 。以下指令都是在这个终端输入的 。 2、升级pip,新环境的pip版本很低,需要升级到最新版本。 在终端输入以下指令升级到 pip-19.0.3 python -m pip install --upgrade pip 准备工作就只有这样简单2步,如果你安装的不是Anacond版本,你直接安装Python3.6版本也是可以的 二、安装Dlib

推荐:使用 Anaconda 工具搭建并管理 Python 环境

前提是你 提交于 2020-04-24 06:56:05
https://www.anaconda.com/distribution/#download-section 官网下载地址 https://mirror.tuna.tsinghua.edu.cn/help/anaconda/ Anaconda 镜像使用帮助 https://repo.anaconda.com/archive/Anaconda2-2019.07-Windows-x86_64.exe 64bit for Python 2.7 version,使用IDM下载即可 https://repo.anaconda.com/archive/Anaconda3-2019.07-Windows-x86_64.exe 64bit for Python 3.7 version ,使用IDM下载即可 Anaconda3 没有开始菜单,参考: https://www.jianshu.com/p/beb59ca2b46e ? 一、安装 Anaconda2 -2019.07-Windows-x86_64.exe 开始菜单 安装完成。已经自动安装了python 2.7.16 可以将 “D:\PythonWork\Anaconda2” 目录添加到path中 二、再安装 python 3.7 开始菜单 --> 启动 Anaconda Prompt (Anaconda2) 运行命令:conda

Anaconda配置Python开发环境

冷暖自知 提交于 2020-04-24 06:54:11
Anaconda介绍 Anaconda 是在 linux、windows 和 mac os x 上执行 Python/R 数据分析和机器学习的最简单的方式并且它是开源的。它在全球拥有超过 1, 100万用户, 是在单独的一台机器上进行开发、测试和训练的行业标准, 因为具备以下特点,从而使他能都独立的进行数据分析: 1. 提供了大量的Python/R 数据分析包 2. 使用 conda 管理库、依赖关系和环境 3. 使用 scikit-learn, TensorFlow和Theano进行开发、训练机器学以及深度学习 4. 使用 Dask、Numpy、pandas和 Numba 分析具有可扩展性和性能的数据 5. 使用 Matplotlib、Bokeh、Datashader 和Holoviews 实现可视化结果 Anaconda下载 官方下载地址为:https://www.anaconda.com/distribution/ 下载完成后,按照提示一步一步安装完成即可 配置环境变量 将Anaconda的路径 C:\Anaconda3;C:\Anaconda3\Scripts;C:\Anaconda3\Library\bin;C:\Anaconda3\Library\mingw-w64\bin;C:\Anaconda3\Lib\site-packages 配置到系统环境变量Path中去

Python笔记:配置Spyder的环境

安稳与你 提交于 2020-04-23 05:55:01
Spyder是做Python数据分析中很好用的一款类似Rstudio的IDE。为了给人营造出比较高大上(类似黑客)的你感觉,所以需要对Spyder的环境进行一定的配色。我个人比较喜欢黑底+彩色代码的背景。具体配置方法如下: 如上图所示。依次点击 菜单 Tools——preferences——Syntax coloring——Scheme( Monokai ) ,最后点击OK! 来源: oschina 链接: https://my.oschina.net/u/3750423/blog/3420841

{ AttributeError: module 'tensorflow_core._api.v2.config' has no attribute 'experimental_list_devices' } how can i solve this error?

会有一股神秘感。 提交于 2020-04-18 12:31:35
问题 Am using tensorflow 2.1 on windows 10 . on running model.add(Conv3D(16, (22, 5, 5), strides=(1, 2, 2), padding='valid',activation='relu',data_format= "channels_first", input_shape=input_shape)) on spyder I get the above error. How can i solve this error ?? 回答1: I found the answer here - https://github.com/keras-team/keras/issues/13684. I had the same issue for load_model() from keras under Anaconda: AttributeError: module 'tensorflow_core._api.v2.config' has no attribute 'experimental_list

Spyder 4 - deactivate automatic highlighting of last word after few seconds

风流意气都作罢 提交于 2020-04-16 02:43:12
问题 When I stop typing in Spyder 4, all occurrences of the last word are automatically highlighted after about two seconds. Is it a bug or can I disable it? I use Spyder on Ubuntu 18.04. 回答1: I found the setting: Tools > Preferences > Editor > Display > Highlight occurrences after 来源: https://stackoverflow.com/questions/60747047/spyder-4-deactivate-automatic-highlighting-of-last-word-after-few-seconds

Spyder 4 - deactivate automatic highlighting of last word after few seconds

谁说胖子不能爱 提交于 2020-04-16 02:43:04
问题 When I stop typing in Spyder 4, all occurrences of the last word are automatically highlighted after about two seconds. Is it a bug or can I disable it? I use Spyder on Ubuntu 18.04. 回答1: I found the setting: Tools > Preferences > Editor > Display > Highlight occurrences after 来源: https://stackoverflow.com/questions/60747047/spyder-4-deactivate-automatic-highlighting-of-last-word-after-few-seconds

How to make projects show in Python Spyder Project Explorer

北城以北 提交于 2020-04-13 06:26:31
问题 My Spyder Project Explorer normally shows a project and its files, but I recently deleted a project and made the project explorer space empty. I am trying to make the Project Explorer show my existing projects or a new project, but when i try to do that it gives me the error "Project not a Spyder project". How can i restore my Spyder project explorer to show existing or new projects? 回答1: You need to go to the Projects menu, and select the option called New Project . Then you need to select

Spyder does not realease memory for matplotlib plots

▼魔方 西西 提交于 2020-04-11 16:13:23
问题 I use Spyder 3.3.6, with Pyhton 3.7.3 over IPyhton 7.7.0 cosole. For different reasons, Spyder has always been my IDE of choice, but now I have decided to drop it altogether and stick to command prompt only. The reason is that I have seen a serious memory leak while using matplotlib which is caused by Spyder. Memory increases linearly until all my 128 GB of memory is consumed to the extend that my Ubuntu machine halted completely and I had to hard reset it. I have had this issue in the past

Spyder does not realease memory for matplotlib plots

孤街醉人 提交于 2020-04-11 16:11:45
问题 I use Spyder 3.3.6, with Pyhton 3.7.3 over IPyhton 7.7.0 cosole. For different reasons, Spyder has always been my IDE of choice, but now I have decided to drop it altogether and stick to command prompt only. The reason is that I have seen a serious memory leak while using matplotlib which is caused by Spyder. Memory increases linearly until all my 128 GB of memory is consumed to the extend that my Ubuntu machine halted completely and I had to hard reset it. I have had this issue in the past