conda

Windows 10 conda is not recognized as an internal or external command

北城以北 提交于 2019-12-04 05:24:35
Tried to conda install -c conda-forge requests-futures=0.9.7 but failed with conda is not recognized as an internal or external command , C:\Users\user_name\Anaconda3\Scripts has been set for Path in environment variables under both user and System variables . I installed Python 3.5 as well and it is on Path , I am using Win10 X64 . How to fix the issue? There is a similar question asked here before, check this may be it will help you. To make sure that conda package is installed correctly, check if conda package files , i.e conda conda-env conda-env-script conda-script conda-server conda

conda 命令笔记

℡╲_俬逩灬. 提交于 2019-12-04 04:44:08
1、虚拟环境 conda -V # 查看当前conda 版本 conda update conda # 更新conda conda env list 查看当前已有的虚拟环境 conda create --name myenv python=3.5 # 建立一个名字为myname python版本为3.5的一个虚拟环境 source activate myenv # 启动虚拟环境 myenv conda list # 查看当前环境中安装了哪些库 conda install pkg # 在当前环境下安装库 source deactivate myenv # 退出虚拟环境myenv conda remove --name myenv numpy # 删除虚拟环境myenv中的库numpy conda env remove --name myenv # 删除虚拟环境myenv 来源: https://www.cnblogs.com/Fosen/p/11831990.html

一文教你如何使用miniconda

帅比萌擦擦* 提交于 2019-12-04 04:14:17
安装python 之前安装python包,导致了python里面的包不兼容,用管理工具卸载也下载不掉,重新安装也安装不上,没有办法只能卸掉python重装。 安装Anaconda Anaconda指的是一个开源的Python发行版本,其包含了conda、Python等180多个科学包及其依赖项。conda也是一个非常好用的管理工具,只不过1500多个包自己用不了多少,我就选只Minicoda,是Anaconda的精简版本,只含有python和conda管理包。 清华大学Miniconda镜像 Miniconda官方镜像 我选择了Miniconda3-4.4.10-Windows-x86_64 版本,这个版本用的是python36,这个版本之后就是python37 添加环境变量 把完整的安装目录中补全,然后把下面几个文件夹添加到环境变量 D:\Miniconda3 D:\Miniconda3\Scripts D:\Miniconda3\Library\bin 配置conda 升级conda conda update conda 换源 # 清华的镜像源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https

Is there a way to have platform-specific dependencies in environment.yml?

强颜欢笑 提交于 2019-12-04 03:22:43
问题 I'm trying to use Conda to set up build & testing environments for a project (LensKit), and need to have platform-specific dependencies. Specifically, on Linux builds I need libgfortran and openssl , but not on Windows. Is there a way that I can state, in environment.yml , that I need libgfortran but only on the 32- and 64-bit Linux platforms? Or do I need to have separate environment definitions to cover this case? The other potential solution I see is creating a dummy package and publishing

How to install Mayavi Trait backends?

半城伤御伤魂 提交于 2019-12-04 03:04:25
OS: Linux Kubuntu 14.4.5 Python: Python 3.5.2 :: Continuum Analytics, Inc. I tried to install Mayavi into my anaconda environment: conda install -c menpo mayavi=4.5.0 conda install -c anaconda wxpython=3.0.0.0 conda install pyqt conda install qt But when I try to run the example from http://docs.enthought.com/mayavi/mayavi/auto/example_surface_from_irregular_data.html I get the error message ImportError: Could not import backend for traits with the explanation: Make sure that you have either the TraitsBackendWx or the TraitsBackendQt projects installed. If you installed Mayavi with easy

How to manage two pip versions in conda?

冷暖自知 提交于 2019-12-04 02:55:55
I am working with conda in Windows. I accidentally installed two versions of pip using python -m pip install --upgrade pip Now when I run conda list from the base env: While pip -version gives pip 10.0.0 If I create a new env with conda create --name py3 pip and run pip --version I get an ImportError, however python -m pip --version works: How can I resolve this? First of all I tried to replicate your issue and when I updated pip to 10.0.1 using python -m pip install --upgrade pip , the command pip --version seems to work for me. I suppose it was a bug on version 10.0.0. Now coming to the

There is an instance of anaconda navigator already running error

限于喜欢 提交于 2019-12-04 01:55:12
Previously my anaconda navigator was not responding so I have rebooted my computer and now when I am trying to open anaconda navigator it pop-ups an error with "there is an instance of anaconda navigator already running". OS: Windows 10 Zhikun Luo I met the same problem a few days ago. I found the anaconda navigator will start a process called pythonw . So the following is my solution: open a cmd window; use command tasklist | findstr "pythonw" to find the pid of pythonw, like 37200; use command tskill 37200 to kill the process. By the way, my OS is Windows. one of the following will solve

windows10下安装tensorflow2.0-GPU和Cupy(不用搞CUDA+cudnn)

六眼飞鱼酱① 提交于 2019-12-04 01:05:02
0.前言   今年暑假买了个1660ti的游戏本学python,后来发现跑一些数据量比较大的代码和深度学习的时候太慢了,遂想装一下GPU版本,看了网上的资料搞了好几天,又是CUDA又是cudnn的,网速慢不说,装完还各种报错,最后发现随着anaconda和tensorflow的更新, 现在利用anadonda只要一行命令就能完成。(装好虚拟环境后, 直接看4.2 )    1. 安装anaconda    这部分没啥难度,只要注意两点:     1.去官网下载 https://www.anaconda.com/distribution/ ,而不要去清华的镜像站(已经很久没有更新了),官网下比清华慢一点,但相信我这是值得的。     2.安装的时候建议直接把两个勾都选上(网上的其他教程都建议不勾选然后手动添加PATH,但我发现直接勾上没问题,之后加PATH反而有各种问题出现)     #.如果之前电脑里已经有安装python,建议先卸载再装anaconda,这样能避免很多问题     做完这一步你就拥有了一个预装了很多包的base环境,包括pandas和numpy,足够初学者做很多事情了。 2. 换清华源   虽然上面说anaconda的安装包不要去清华上下,但是用镜像站来下载和更新python包还是可以的(能快上不少)。打开CMD,复制打入就行                   

ubuntu18安装pytorch1.3

可紊 提交于 2019-12-04 00:45:19
环境: ubuntu18 anaconda 创建一个新的环境 conda create -n env_name python=version 激活并进入环境中 conda activate tensorflow pip更改清华源( https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ ) conda更换清华源,这个似乎更新的慢一些?( https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/ ) conda list 看有没有cuda,cudnn,没有的话下面再装(conda install cudatoolkit conda install cudnn)最好自己指定下版本号 (发文时是10.1 和7.6) 安装pytorch pip3 install torch torchvision 然后将pytorch 添加到jupyter notebook中(要在对应的环境下操作) install ipykernel python -m ipykernel install --user --name pytorch --display-name "Python (pytorch)" 查看列表jupyter kernelspec list 删除指定kernel:jupyter kernelspec

The following packages will be SUPERCEDED by a higher-priority channel是什么意思?

时光毁灭记忆、已成空白 提交于 2019-12-04 00:20:34
  参考资料:    https://stackoverflow.com/questions/42015732/the-following-packages-will-be-superceded-by-a-higher-priority-channel   在使用conda安装或者更新包的时候,经常会出现这样的提示:The following packages will be SUPERCEDED by a higher-priority channel   字面意思就是 下面的包将会被一个更高优先级的频道(中的包)取代。那么到底这句话的含义是什么呢?从文首的stackoverflow链接找到了相关问题,下面是自己的理解。   首先,channel(频道)这个词在conda里就相当于我们所熟知的软件源,一个软件会在世界各地分发软件源和镜像。我们可以在conda中设置一系列源,这些源的的优先级是从上到下的。如图所示,conda info命令可唤出   我在终端中运行conda update tensorflow,package plan中出现了下面这一行:   OK,在频道中查找,/anaconda/pkgs/main/osx-64的优先级是不是比anaconda/pkgs/main/noarch高?是的,好的,conda将会用/anaconda/pkgs/main/osx