conda

Update conda to development version

折月煮酒 提交于 2020-01-25 07:30:10
问题 I have Conda 4.6.14 installed, which has some issues I would like to resolve. According to Conda's GitHub release page, version 4.7.0 is available. However, when I run conda update conda Conda informs me the newest version is already installed. Is there any ways to directly update to a specific Conda version? Can I point Conda to the release zip file? 回答1: To get the latest conda releases, you should add the Conda Canary channel before executing conda update conda . 来源: https://stackoverflow

linux中conda常用命令(笔记)

萝らか妹 提交于 2020-01-24 16:35:19
查看所有环境 conda info -e 新建虚拟环境(your_env_name是虚拟环境的命名) conda create -n your_env_name python=xx(2.7、3.6、3.7) 删除虚拟环境 conda remove -n your_env_name --all 激活环境 source activate your_env_name 退出当前环境 source deactivate 来源: CSDN 作者: temperamentalkj 链接: https://blog.csdn.net/Never_say_die_kj/article/details/104080695

How to use path of current conda environment's python as shebang for a script?

半世苍凉 提交于 2020-01-23 09:51:06
问题 Let's say you have 2 conda environments: py3_env and py3_clone_env If you have a script.py with the following structure: #![shebang] import sys def main(): print("hello world", file=sys.stdout) if __name__ == "__main__": main() Is it possible to have the shebang be a variable that is determined from the current conda environment? For example: From py3_env environment: #!~/anaconda/envs/py3_env/bin/python and from py3_clone_env environment: #!~/anaconda/envs/py3_clone_env/bin/python 回答1: I

How does one fix the issue of not writable paths with conda?

人盡茶涼 提交于 2020-01-23 06:29:25
问题 Why do I see the following error when using conda (usually when installing packages or making new envs) and how do I fix it: Verifying transaction: | WARNING conda.core.path_actions:verify(963): Unable to create environments file. Path not writable. environment location: /Users/brandomiranda/.conda/environments.txt or Preparing transaction: done Verifying transaction: - WARNING conda.core.path_actions:verify(963): Unable to create environments file. Path not writable. environment location:

Conflicts when installing Anaconda Python

我与影子孤独终老i 提交于 2020-01-23 02:34:45
问题 I have recently installed the Anaconda distribution of Python. I then inserted the following line into my .bashrc file: export PATH=/home/karnivaurus/Libraries/Anaconda/bin:$PATH So, there are now two python binary files: one in /usr/bin/ , and one in /home/karnivaurus/Libraries/Anaconda/bin . I also have a python script, which attempts to import a module named caffe , with the line import caffe . Now, if I run python caffe from the terminal, the script runs fine. However, if I open the

Pycharm中的Virtualenv Environment、Conda Environment、System Interpreter、Pipenv Environment(持续更新补充)

给你一囗甜甜゛ 提交于 2020-01-22 13:50:05
关于Pycharm中的Virtualenv Environment、Conda Environment、System Interpreter、Pipenv Environment-- (自己记性不好,赶紧记录下来,多看看- -||) 1.打开Pycharm中的Project Interpreter,菜单路径: File-->Settings-->Project-->Project Interpreter 2.点击右侧的设置图标,再点击Add: 3.弹出Add Python Interpreter设置窗口: 4.左侧有4种选择:Virtualenv Environment、Conda Environment、System Interpreter、Pipenv Environment ①其中System Interpreter如字面意思,系统里安装的本地Python作为解释器,一般很少用,不推荐; ②Pipenv Environment,只知道pip包的一个管理模块,不了解; ③说一下Virtualenv Environment和Conda Environment。网上其实有很多资料了,找了两天,我还是没看明白Virtualenv Environment和Conda Environment的区别到底在哪里。后来觉得也不用太纠结这个问题,先会用,满足学习和工作的需要就行

记录windows下安装两个版本tensorflow的过程

爱⌒轻易说出口 提交于 2020-01-22 13:21:51
记录windows下安装两个版本tensorflow的过程 去年tensorflow出了2.0版本,奈何新版本用不习惯,所以干脆把1.x和2.0版本都装了。 0 准备 本机环境: windows10 + GTX1680 安装方法: anaconda3创建虚拟环境,然后用pip安装 1 anaconda3安装 下载python3.7版本 https://www.anaconda.com/distribution/#download-section 注意: A.勾选“Install for Just Me (recommended) ” B.不要勾选“Add Anaconda to my PATH environment variable.” C.如果 不打算 使用多个版本的Anaconda或者多个版本的Python,便勾选“Register Anaconda as my default Python 3.7”。 验证: 打开Anaconda Prompt,输入 conda -- version 若能显示conda版本号,则安装成功 2 安装tensorflow2.0.0a(GPU版本) 打开Anaconda Prompt 创建虚拟环境 tf2_win是环境名,可替换 conda create - n tf2_win python=3 . 7 激活环境 左侧出现 (tf2_win)

conda 安装pytorch

自作多情 提交于 2020-01-22 12:36:45
根据 官方安装指南 选择获取安装命令,例如: conda install pytorch torchvision cudatoolkit=10.1 -c pytorch 使用国内镜像,比如清华源镜像,可以使用: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 但是pytorch需要另外的源,添加如下源: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch 注意:PyTorch 官网给的安装命令需要去掉最后的 -c pytorch ,这样才能享受清华源的高速。 参考: https://blog.csdn.net/xd_wjc/article/details/80587488 来源: CSDN 作者: there2belief 链接: https://blog.csdn.net/dou3516/article/details/104066151

How to build libraries via conda on colab.research?

泄露秘密 提交于 2020-01-22 12:20:10
问题 So I want to use python-occ library. It requires conda-forge to be build. I try to install it in basic notebook !wget -c https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh !chmod +x Anaconda3-5.1.0-Linux-x86_64.sh !bash ./Anaconda3-5.1.0-Linux-x86_64.sh -b -f -p=conda3 !export PYTHONPATH=./conda3/lib/python !export PATH=./conda3/bin/:$PATH !conda install -y -c conda-forge -c dlr-sc -c pythonocc -c oce pythonocc-core Yet it will install a package into condas python. How to make

pip packages not included in “conda env export”

回眸只為那壹抹淺笑 提交于 2020-01-22 10:40:55
问题 My python project runs on a conda virtual environment. I install packages on the environment with conda install whenever that package is available for installing that way, otherwise, I install it with pip install . To make the project installation easier for other developers, I export the list of packages that are used on the conda environment to a file: conda env export > conda_environment_export.yml . However, since a while, the package export does no longer contain the packages installed