conda

Anaconda : Update conda failed because permission error

倖福魔咒の 提交于 2019-12-06 12:40:06
问题 I'm using Anaconda version 5.1 on Windows 7 (64bit). I have tried to update conda from 4.4.10-py36_0 to 4.4.11-py36_0 but cannot and got error message (base) C:\Windows\system32>conda update -n base conda Solving environment: done Package Plan environment location: C:\ProgramData\Anaconda3 added / updated specs: - conda The following packages will be downloaded: package | build ---------------------------|----------------- conda-4.4.11 | py36_0 955 KB The following packages will be UPDATED:

conda Pyhon版本切换

∥☆過路亽.° 提交于 2019-12-06 12:35:17
1、首先确保你的系统里已经安装了Conda,打开命令行窗口,执行命令:conda --version 2、查看你的系统当前已有的Python环境,执行命令:conda info --envs,从图中我们看到,我的机器里目前只有安装Anaconda时创建的默认Python环境,环境名称叫root,对应的Python版本是3.7 3、现在,我想添加一个Python2.7的环境,执行命令:conda create --name python27 python=2.7,命令中我制定了环境名称是python27,指定了Python版本是2.7,执行命令后,Conda会自动下载最新版的Python2.7,并自动部署 4、此时,再次查看你的系统当前已有的Python环境,执行命令:conda info --envs,从图中我们看到,这里多了一个名字为python27的Python环境 5、查看我们当前使用的Python版本,执行命令:python --version,从图中看到当前的Python环境是3.7版本 6、切换Python环境到刚才新添加的Python2.7,执行命令:activate python27,然后执行命令:python --version,查看是否切换成功,细心的同学会发现我上面敲的命令是在git bash里执行的,但切换的命令是在cmd里执行,这是因为我发现在git

pytorch 安装指南

南楼画角 提交于 2019-12-06 12:31:05
1. windows 下 1.安装python环境 conda create -n pytorch1 python=3 .6 2.安装pytorch conda create -n pytorch1 torchvision cudatoolkit=10 .1 -c pytorch 3.测试 import torch print(torch.cuda.is_available()) 来源: https://www.cnblogs.com/Reallylzl/p/11983828.html

Installing OpenCV for all conda environments

我怕爱的太早我们不能终老 提交于 2019-12-06 11:37:43
I have an Ubuntu 16.04 system with an Anaconda installation. I want to compile and install OpenCV 3.3 and use also the Python bindings. I used the following CMake command: cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=ON -D D WITH_FFMPEG=1 -D WITH_CUBLAS=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D INSTALL_PYTHON_EXAMPLES=ON -D INSTALL_C_EXAMPLES=OFF -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.3.0/modules -D BUILD_EXAMPLES=ON -D BUILD_TIFF=ON -D PYTHON_EXECUTABLE=/home/guel/anaconda2/envs/py27/bin/python -D PYTHON2_LIBRARIES=/home

Errors building R-packages for conda

蓝咒 提交于 2019-12-06 11:21:50
I am having a tough time installing R-packages that are not available in the Anaconda repositories. My attempts so far can be found here How to install R-packages not in the conda repositories? . Currently, I am trying to build the R-package rafalib for conda by following the instructions from this article under the heading Building a conda R package . The first part works fine. conda skeleton cran rafalib Out: Tip: install CacheControl to cache the CRAN metadata Fetching metadata from http://cran.r-project.org/ Writing recipe for rafalib Done The build command runs into errors conda build r

Using Anaconda with conda-forge behind a corporate firewall blocking Amazon cloud

瘦欲@ 提交于 2019-12-06 11:12:12
I'm trying to use the Anaconda environment on a Windows 10 system to install tensorflow 1.9.0. Unfortunately, I'm behind a firewall that blocks all access to the Amazon cloud (please don't ask why). I know that I can install version 1.9.0 from here but this repo heavily relies on conda-forge. Thus, to circumvent this issue I'm using the following command to (at least) install tensorflow 1.8.0: conda install -c https://repo.continuum.io/pkgs/main/win-64/ tensorflow-gpu=1.8.0 This results in the following output: Solving environment: done Package Plan environment location: d:\Programs\Anaconda

Ubuntu 16.04 使用笔记

你。 提交于 2019-12-06 10:45:07
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:

anaconda创建python虚拟环境

▼魔方 西西 提交于 2019-12-06 08:32:57
1. 创建python虚拟环境 conda create -n your_env_name python=xx(2.7, 3.6等等) 2. 常用conda指令 1) conda -V: 查看conda版本 2) conda env list: 查看有哪些conda虚拟环境 3) conda update conda: 检查更新当前conda 3. 激活虚拟环境 Linux: source activate your_env_name(虚拟环境名称) Windows: activate your_env_name(虚拟环境名称) 4. 关闭虚拟环境 Linux: source deactivate Windows: deactivate your_env_name(虚拟环境名称) 5. 删除虚拟环境 1)移除环境: conda remove -n your_env_name(虚拟环境名称) --all 2)删除环境中的某个包: conda remove --name your_env_name(虚拟环境名称) package_name(包名) 6. 设置国内镜像 1) 添加Anaconda的TUNA镜像 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 2)

阿里云ECS服务器CentOS6.5vnc连接时报错Failed to connect to socket /tmp/dbus-xxxxxxx: Connection refused

蹲街弑〆低调 提交于 2019-12-06 07:56:54
问题: 通过tightvnc远程连接阿里云服务器CentOS6.5,一直都可以正常连接,突然开始报错: Failed to connect to socket /tmp/dbus-xxxxxxx: Connection refused 注意: 以下命令都是以root执行的(不好意思,这不是好的做法),如果以其他用户执行某命令遇到没有管理员权限问题,可以给该用户设置sudo权限,同时该命令前加sudo (sudo加一个空格) 排查: 搜了一堆文章,改来改去,这种情况依然存在,包括但不限于: 卸载重装所有图形界面模块 卸载重装dbus 重启messagebus 重启haldaemon 重启vncserver 由于修改太多太混乱,一度导致ECS服务器网卡异常,彻底断网,无法从公网连接,也无法连接公网,ping公网ip和内网ip全都失败,只能在网页控制台登录,此时登录后直接是Gnome图形界面。 无奈只好提交工单请阿里工程师处理,工程师快速处理之后,网的问题解决了,十分感激,但是控制台登录时,已经不再是图形界面,而是只有文字界面,dbus的问题还是存在 vim ~/.vnc/<机器名>:1.log 里面有关的报错行类似如下: (拷贝自 https://superuser.com/questions/259943/vnc-error-could-not-connect-to-session

How can I instal cx_Oracle package to Anaconda 3 to use with python 3.5

佐手、 提交于 2019-12-06 06:35:12
问题 I need to connect to Oracle database in Python Anaconda3-2.5.0-Windows-x86_64. Installation of the cx_Oracle module by: conda install -c https://conda.anaconda.org/anaconda cx_oracle fails with following output (trimmed): Hint: the following packages conflict with each other: - cx_oracle - python 3.5* So I tried to install package for Python 3.5 by 'cx_Oracle-5.2.1-11g.win-amd64-py3.5.exe' from https://pypi.python.org/pypi/cx_Oracle/ Which seems to be working (somehow). Even 'conda list'