conda

Python anaconda conda issue: updating anaconda package impossible because processes are running

白昼怎懂夜的黑 提交于 2019-12-06 22:48:10
问题 I have an issue with updating anaconda's packages with conda. when I make a conda update --all there is an issue which says to me: Error: Unable to remove files for package: cryptography Please close all processes running code from cryptography and try again. however, none process are running, I have just the cmd window open. Same story when I want update dateutile for instance. It is like if conda uses some package and then I cannot update them? Somebody knows a method to close or remove

Allow use of system python in conda env?

折月煮酒 提交于 2019-12-06 19:28:29
问题 Is there a way to force conda to use the system version of python (along with all of the system libraries) in a given env? I have conda enabled by default in my shell, which can get a bit annoying, because if I try to run a system python app, it gets a different version of python to what it is expecting (python still defaults to 2.7 on *buntu), and often won't run. I would like the root env of conda to just be a redirect to the system python install. 回答1: You need to edit all user shell run

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/pk gs/r/win-64/repodata.json.bz2>

无人久伴 提交于 2019-12-06 19:22:43
问题 I need to install tensorflow and was trying to add up environment first. But I get HTTP Connection Failed error. I'm behind a corporate proxy and already defined them well in .condarc file. Here is the error I'm getting: C:\Users\Rahul\Downloads>conda create -n tensorflow python=3.6 anaconda Solving environment: failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/pk gs/r/win-64/repodata.json.bz2> Elapsed: - An HTTP error occurred when trying to retrieve this

Conda (Python) Virtual Environment is not Portable from Windows to Linux

送分小仙女□ 提交于 2019-12-06 19:06:32
问题 On my Windows 10 machine, I created a virtual environment using the following command: >conda env export > environment.yml I tried re-creating the virtual environment using the yml file on the Windows system and it worked fine. Then I transferred environment.yml to my Linux machine (Ubuntu 16.04.1) with the same version of conda and python and ran the following in the terminal: $ conda env create -f environment.yml I get the following error: Using Anaconda Cloud api site https://api.anaconda

Activating conda environment with it's full path

蓝咒 提交于 2019-12-06 19:06:16
问题 Usually, we activate a conda environment with command: source activate env_name But, is it possible to activate conda environment with it's full path? For example: source (fullpath)/bin/activate When I do this it activates the default environment of anaconda i.e root environment. 回答1: Update for conda 4.4 and up: You need to specify the conda environment path to activate. The new conda activate command should not need the full path to an "activate script" any longer, since the command is now

Install Plotly in Anaconda

自闭症网瘾萝莉.ら 提交于 2019-12-06 18:48:50
问题 How to install Plotly in Anaconda? The https://conda.anaconda.org/plotly says to conda install -c https://conda.anaconda.org/plotly <package> , and The https://plot.ly/python/user-guide/ says to pip install plotly . I.e., without package. So which packages I should specify in Anaconda conda? I tried without one and get errors: C:\>conda install -c https://conda.anaconda.org/plotly Error: too few arguments, must supply command line package specs or --file 回答1: If you don't care which version

How to install win-32 package on a 64-bit system with conda install

若如初见. 提交于 2019-12-06 15:52:09
问题 I am looking to install the package pyspharm I am running the 64-bit Windows and have the 64-bit version of Anaconda installed. However, whe I look for packages with anaconda search -t conda pyspharm It appears as if there are no channels with a package made for the win-64 platform. Is there any way I can still install it? 回答1: Crate a 32bit python environment: set CONDA_FORCE_32BIT=1 conda create -n py27_32bit python=2.7 enable py27_32bit conda install --channel https://conda.anaconda.org

Ubuntu 16.04 使用笔记

天涯浪子 提交于 2019-12-06 14:22:03
Linux Note Prohibit updates 后台指令的运行与终止 后台指令运行 $ nohup 'your command' & 后台指令终止 1.查看运行的后台进程 $ ps -ux|grep python |grep -v grep a:显示所有程序 u:以用户为主的格式来显示 x:显示所有程序,不以终端机来区分 用grep -v参数可以将grep命令排除掉 2.再用awk提取一下进程ID $ ps -ux|grep python | grep -v grep | awk '{print $2}' 3.终止后台运行的进程 $ kill -9 'ID' Anaconda 基本环境安装 安装anaconda $ bash Anaconda3-5.2.0-Linux-x86_64.sh 添加镜像 $ /home/test823/anaconda3/bin/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ $ /home/test823/anaconda3/bin/conda config --set show_channel_urls yes 添加路径 $ echo 'export PATH="/home/test823/anaconda3/bin:

ubuntu下conda虚拟环境的操作,cuda,cudnn版本的查询, pytorch的安装

陌路散爱 提交于 2019-12-06 13:36:13
一. ubuntu下conda虚拟环境的操作 随着深度学习的发展,tensorflow, keras, pytorch等深度学习框架的兴起和发展,或者多用户的使用情况,使得在ubuntu下我们可能需要安装多个深度学习框架,为了避免各个深度学习框架之间的影响,可以使用conda创建不同的虚拟环境,方便使用。 在conda下操作虚拟环境有以下几个重要的命令: (1)查看conda的虚拟环境有哪些: conda info --envs 使用上述指令后,看一看到类似以下情况,下图中有两个环境,其中base表示安装好conda(下图中的是miniconda3,和conda几无区别,是一样的)后的环境,pyEnv36表示自己创建的新的虚拟环境 (2) 新建虚拟环境: conda create -n pyEnv36 python=3.6 (3) 删除虚拟环境: conda remove -n pyEnv36 --all (4) 激活虚拟环境 conda activate pyEnv36 或者 . activate pyEnv36 (5) 退出虚拟环境 conda deactivate pyEnv36 或者 . deactivate pyEnv36 二. cuda, cudnn版本的查询 在ubuntu下查看cuda的方式如下: (1)使用命令: nvcc -V (2)或者使用如下命令: cat

conda missing requests.packages.urllib3.util.url

我只是一个虾纸丫 提交于 2019-12-06 13:28:54
Somehow I broke my conda/urllib3 installation (Python 2.7 / Anaconda) but without admin rights to the machine I use have limited options to fix / reinstall everything the whole anaconda. For any conda operations,(e.g. conda install launcher), I am getting the message: Traceback (most recent call last): File "C:\Anaconda2\Scripts\conda-script.py", line 3, in <module import conda.cli File "C:\Anaconda2\Lib\site-packages\conda\cli\__init__.py", li from .main import main # NOQA File "C:\Anaconda2\Lib\site-packages\conda\cli\main.py", line 4 from ..base.context import context File "C:\Anaconda2\Lib