conda

Spacy — ImportError: preshed.maps does not export expected C function map_clear

一曲冷凌霜 提交于 2020-04-17 20:21:14
问题 I am trying to import spacy in vain. >>> import spacy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\spacy\__init__.py", line 12, in <module> from . import pipeline File "C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\spacy\pipeline\__init__.py", line 4, in <module> from .pipes import Tagger, DependencyParser, EntityRecognizer, EntityLinker File "pipes.pyx", line 24, in init spacy.pipeline.pipes

提高anconda下载速度

喜夏-厌秋 提交于 2020-04-17 17:24:12
anaconda 安装镜像源 在使用安装 conda 安装某些包会出现慢或安装失败问题,最有效方法是修改镜 像源为国内镜像源。 之前都选用清华镜像源,但是2019年后已停止服务。推荐选用中科大镜像源。 先查看已经安装过的镜像源,cmd窗口执行命令: conda config --show 查看配置项 channels ,如果显示带有 tsinghua ,则说明已安装过清华镜像。 channels: https://mirrors.tuna.tsinghua.edu.cn/tensorflow/linux/cpu/ https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/       下一步,使用 conda config --remove channels url地址删除清华镜像,如下命令删除第一个。然后,依次删除所有镜像源 conda config -

Reasoning to use (or not use) conda in conjunction with atom

为君一笑 提交于 2020-04-16 03:29:05
问题 I am new to using python and am still fuzzy in terms of how python 'works' in conjunction with different things you can use to use python. Specifically: I've been working with Anaconda and Python 3 and doing things in Jupyter, but a friend introduced me to Atom which I find much more appealing and would like to start using. I don't think I will use Hydrogen, I just want to use Atom as an editor and then execute the .py files via terminal in Atom. (I have a Mac, if this makes any difference).

Cannot install mpi4py using conda AND specify pre-installed mpicc path

折月煮酒 提交于 2020-04-16 03:28:08
问题 I have tried installing mpi4py with: env MPICC=path/to/openmpi/bin/mpicc conda install -c anaconda mpi4py But I get this message: The following NEW packages will be INSTALLED: mpi anaconda/linux-64::mpi-1.0-mpich mpi4py anaconda/linux-64::mpi4py-3.0.3-py37h028fd6f_0 mpich anaconda/linux-64::mpich-3.3.2-hc856adb_0 Which seems to show that "MPICC=path/to/openmpi/bin/mpicc" was ignored. Indeed, after installing mpi4py with mpich, and trying to run the following simple code with mpirun -n 2

conda init not initialising new shell

南楼画角 提交于 2020-04-16 02:26:21
问题 I have tried many times to initialise conda for shell interaction using the command "conda init bash" on my terminal but it always says "No action taken." What am I doing wrong? 回答1: With so little details in your question it's hard to help you. You should read carefully and paste what conda init bash is outputting (and your .bashrc , .bash_profile and output of PATH ). I was in a similar issue and what happened was that the conda init modifies your .bash_profile and adds some code at the end

conda 添加虚拟环境中的jupyter 方法

戏子无情 提交于 2020-04-15 14:26:26
【推荐阅读】微服务还能火多久?>>> 第一步,激活环境: conda activate 环境名(例如我的py36) 添加核: python -m ipykernel install --user --name 环境名 --name kernelname (kernel的名字,可以随便取) 输入: jupyter notebook 就可以看到添加进来的核。 点赞 收藏 分享 文章举报 ML_BOY 发布了79 篇原创文章 · 获赞 243 · 访问量 54万+ 私信 关注 来源: oschina 链接: https://my.oschina.net/u/4290288/blog/3235542

How to Install tensorflow addons via conda

给你一囗甜甜゛ 提交于 2020-04-13 16:59:01
问题 I cannot find it out. Does Conda support it? conda install tensorflow-addons cannot find out the package 回答1: https://blog.tensorflow.org/2019/07/introducing-tensorflow-addons.html. You can find information related to Tensorflow Addons in the link above. Currently, it looks like Conda does not support Tensorflow Addons yet. You will have to wait for it to be implemented in the future. Otherwise, you can use pip install tensorflow-addons . 回答2: To install the latest version of addons, run the

Start PyLint from correct anaconda environment in Visual Studio Code

白昼怎懂夜的黑 提交于 2020-04-13 06:36:53
问题 I'm trying to make PyLint automagically use correct conda environment inside vscode but still getting import errors: [pylint] E0401:Unable to import 'django' , although: I'm starting vscode from correct environment. [1] I have installed Python extension. [2] I have set correct python.path . [3] 回答1: You have to have installed pylint in this conda environment. Activate given environment with activate env_name (Windows) or source activate env_name . Install pylint in this environment: conda

Anaconda environments packages update

不羁岁月 提交于 2020-04-11 12:18:29
问题 Let's assume I perform a full anaconda installation as root that will be shared among all users. a. On the base environment I install python2.7.12, matplotlib and numpy: $ conda install python=2.7.12 matplotlib numpy b. After a couple of months one of my users creates an environment: $ conda install -n py27 python=2.7.12 matplotlib numpy Let's assume that in the meanwhile a matplotlib and numpy were updated and are no longer on the same version. My questions are: will the versions of

【学习笔记】Python科学计算三维可视化(黄天羽、嵩天)(学习中。。)

ぃ、小莉子 提交于 2020-04-10 14:22:09
0 导学 目的: 掌握利用三维效果表达科学和工程数据的能力 传播一种思想: 可视化技术是数据之眼 内容组织: 流体数据的标量可视化、矢量可视化实例 三维扫描数据(模型/地形)可视化实例 三维地球场景可视化实例 曲线UI交互控制可视化实例 1 基础运用 科学计算可视化的主要方法: 二维标量数据场:颜色映射法、等值线方法、立体图法和层次分割法 三维标量数据场:面绘制方法、体绘制方法 矢量数据场:直接法(箭头、线段、色轮等手段表示矢量数据)、流线法 应用领域:地球科学、大气科学、医学/生命科学、生物/分子科学、航空/航天/工业、化工/化学、物理/力学、人类/考古、地址勘探等 1.1 TVTK入门 TVTK库是在标准VTK库之上用traits进行了封装,因此可以查看VTK库文档 https://vtk.org/doc/nightly/html/annotated.html TVTK库中类名去除了前缀vtk 函数名按照Python惯例,采用下划线连接单词,如AddItem->add_item VTK对象的方法在TVTK中用Trait属性替代,例如VTK中m.SetInputConnection(c.GetOutputPort()),TVTK中m.input_connection(c.output_port) 安装: conda install vtk conda install numpy