Anaconda

How to fix 'ImportError: DLL load failed' in Visual Studio Code (packages installed with Anaconda)

好久不见. 提交于 2020-08-07 05:44:38
问题 I have installed Anaconda (with the packages that come with it) and VS Code (from within the Anaconda Navigator). If I open VS Code from the Anaconda Navigator or from The Anaconda Prompt, every import works well. But if I open VS Code directly, it throws an ImportError . For example: from PIL import Image Gives the following error: Traceback (most recent call last): File "c:\MyPrograms\Coding\Scripts\imageOperations.py", line 7, in <module> from PIL import Image File "C:\MyPrograms\Coding

Why does the pip requirements file contain “@file” instead of version number?

醉酒当歌 提交于 2020-08-07 05:38:12
问题 I created the requirements.txt with pip freeze > requirements.txt. Some modules show the @file..... instead of the version #. What does it mean and why it show? Conda: 4.8.3 Here is the result of requirements.txt. e.g. astroid, flask-admin, matplotlib shows "@ file" below astroid @ file:///opt/concourse/worker/volumes/live/b22b518b-f584-4586-5ee9-55bfa4fca96e/volume/astroid_1592495912194/work bcrypt==3.1.7 blinker==1.4 certifi==2020.6.20 cffi==1.14.0 click==7.1.2 cycler==0.10.0 dnspython==1

Why does the pip requirements file contain “@file” instead of version number?

房东的猫 提交于 2020-08-07 05:37:12
问题 I created the requirements.txt with pip freeze > requirements.txt. Some modules show the @file..... instead of the version #. What does it mean and why it show? Conda: 4.8.3 Here is the result of requirements.txt. e.g. astroid, flask-admin, matplotlib shows "@ file" below astroid @ file:///opt/concourse/worker/volumes/live/b22b518b-f584-4586-5ee9-55bfa4fca96e/volume/astroid_1592495912194/work bcrypt==3.1.7 blinker==1.4 certifi==2020.6.20 cffi==1.14.0 click==7.1.2 cycler==0.10.0 dnspython==1

Sublime Text3的安装以及python开发环境的搭建

旧城冷巷雨未停 提交于 2020-08-07 02:22:10
作者: struct_mooc 博客地址: https://www.cnblogs.com/structmooc/p/12376601.html 目录 一. Sublime text3的安装 1.sublime text3下载 2. sublime text3安装 二. 搭建python开发环境 1.python运行环境设置 2.插件管理包Package Control 3.插件安装 1)ConvertToUTF8 2)SublimeREPL 3)SideBarEnhancements 4)AutoPep8 5)Alignment 6)FileHeader 7)Anaconda 8)BracketHighlighter 9)ChineseLocalizations 10)Colorsublime 11)TrailingSpaces 4.查询已安装的插件 5.删除已安装的插件 附:插件作用说明 1)ConvertToUTF8 2)SublimeREPL 3)SideBarEnhancements 4)AutoPep8 5)Alignment 6)FileHeader 7)Anaconda 8)BracketHighlighter 9)ChineseLocalizations 10)Colorsublime 11)TrailingSpaces 一. Sublime text3的安装 1

好工具推荐系列:Python IDE之Spyder和Jupyter

☆樱花仙子☆ 提交于 2020-08-06 19:54:22
IDE流行度 KDnuggets2018年的一个博客发起了一项投票:数据科学中最好用的Python IDE是什么?本次调查共有1900多人参与,调查结果如下图所示。前5个选择是: Jupyter,57% PyCharm,35% Spyder,27% Visual Studio Code,21% Sublime Text,12% IDE用途 如果是web开发或大工程,建议使用PyCharm; 如果是数据处理,建议Spyder;Spyder是使用PyQt开发的GUI。 而Jupyter Notebook 已迅速成为数据分析,机器学习的必备工具。因为它可以让数据分析师集中精力向用户解释整个分析过程。 Jupyter这个名字是它要服务的三种语言的缩写:Julia,Python和R,这个名字与“木星(jupiter)”谐音。 IDE官网 1.Spyder https://www.spyder-ide.org/ https://github.com/spyder-ide/spyder https://pypi.org/project/spyder/ 2.Jupyter https://github.com/jupyter/notebook https://github.com/jupyter/jupyter 3.Pycharm https://www.jetbrains.com/pycharm

python库 pywinio环境搭建

本小妞迷上赌 提交于 2020-08-06 09:42:02
这个库在0.3.0版本之后由'rabird.winio'改为了'pywinio' 'pywinio'主要用于实现驱动级模拟按键,可以用来做任何游戏脚本。驱动级的模拟一般很难进行检测。 安装环境 win10 pywinio包安装 pip install pywinio 替换WinIo64文件 https://github.com/vaptu/winio/tree/master/Binaries 下载页面中的 WinIo64.dll 和 WinIo64.sys 。 1. 将两个文件覆盖到python环境的 Lib\site-packages\winiobinary\data\3.0 目录下 如下,我项目使用的python环境是anaconda中的: 2. 将 WinIo64.dll 覆盖到 C:\Windows\System32 目录下 3. 将 WinIo64.sys 覆盖到 C:\Windows\System32\drivers 目录下 WinIo64.sys 签名认证 1. WinIo64.sys -> 右键属性 -> 数字签名 -> 详细信息 2. 常规 -> 查看证书 3. 安装证书 4. 如图所示选择 受信任的根证书颁发机构 完成安装即可。 禁用驱动程序强制签名 重启f8进入安全模式(f8不可用可以在每次出现开机动画的时候手动电源键强制关机,重复三次以上即可)

Installed cuda without conda: Can pytorch use a non-conda cuda toolkit?

余生长醉 提交于 2020-08-06 05:28:30
问题 Some questions came up from https://superuser.com/questions/1572640/do-i-need-to-install-cuda-separately-after-installing-the-nvidia-display-driver. One of these questions: Does conda pytorch need a different version than the official non-conda cuda at https://developer.nvidia.com/cuda-toolkit? In other words: Can I use a non-conda cuda toolkit for a pytorch installation? Context: If you go through the "command helper" at https://pytorch.org/get-started/locally/, you can choose between cuda

Installed cuda without conda: Can pytorch use a non-conda cuda toolkit?

我只是一个虾纸丫 提交于 2020-08-06 05:28:17
问题 Some questions came up from https://superuser.com/questions/1572640/do-i-need-to-install-cuda-separately-after-installing-the-nvidia-display-driver. One of these questions: Does conda pytorch need a different version than the official non-conda cuda at https://developer.nvidia.com/cuda-toolkit? In other words: Can I use a non-conda cuda toolkit for a pytorch installation? Context: If you go through the "command helper" at https://pytorch.org/get-started/locally/, you can choose between cuda

【系列】Python编程思想(1):Python简介与开发环境搭建

眉间皱痕 提交于 2020-08-06 02:08:09
李宁老师的 《Python编程思想》 上线了,囊括了Python的核心技术,以及Python的主要函数库的使用方法。读者可以关注「 极客起源 」微信公众号,并输入 160442 开始学习。   本系列文章深入介绍了Python的各种技术,堪称是目前最全的Python教程。主要目的是让读者可以了解Python的各种核心技术,包括各种Python函数库。本教程使用Python 3.8讲解,读者也并不需要纠结Python版本。如果读者当前正在使用更低的Python版本,如Python3.6或Python 3.7,并不需要更换Python版本。只要使用Python3.5以上的版本,就完全可以运行本教程的代码。   如果读者使用的是Anaconda中的Python环境,是无法使用最新的Python版本的。因为Anaconda集成了Python环境,但升级的速度并不快,所以大多数时候,Anaconda中的Python版本会比Python官方的版本滞后一些,如果也足够运行本教程的代码了。 本教程使用PyCharm作为Python的IDE,这也是本教程推荐使用的Python IDE。因为PyCharm功能非常强大,而且可以下载免费的社区版本来完成本教程的各种实验。 1. Python简介   伴随着大数据和人工智能的兴起, Python这门“古老”的语言重新出了青春。其实

Environment inconsistent error when updating conda

落爺英雄遲暮 提交于 2020-08-05 10:08:31
问题 I am trying to install a package on Anaconda and I am keep getting environment inconsistent error. I have tried all the solutions in this post (I am listing them here) but the error remain the same: 1) update conda failed: conda update --all 2) install anaconda failed: conda install anaconda 3) this one failed: conda activate base conda install anaconda conda update --all 4) this one failed too: conda install -c anaconda anaconda I also tried updating the individual packages that cause