conda

环境管理 - Conda Environment & Use conda in docker

让人想犯罪 __ 提交于 2019-12-15 12:19:31
In the last passage , we successfully download and install anaconda and pytorch. However, the one of the most important advantages to use conda instead of pip is its virtual enviroment, where you will have a clean enviroment isolated environment to focus on your experiment or development. Generally, we often use python version 3.6 (Of course, you can use one version you are familar with). Then I wil show how to create Conda Environment, and activate environment in docker. Create conda environment conda create -n python3.6 python = 3.6 Also, you can create both a python version2.7 and a python

anaconda3升级sklearn0.22版本问题

自古美人都是妖i 提交于 2019-12-15 09:08:34
文章目录 1. python3.6 sklearn 版本 2. 关于0.22版本 3. sklearn升级至0.22遇到的问题(0.19-0.21-0.22怀疑需要翻墙) 4. 安装xgboost和lightgbm 1. python3.6 sklearn 版本 安装完 python3.6 , 里面的 sklearn 可无差错升级至 0.19.0 版本 anaconda prompt 键入 conda install scikit-learn 即可 2. 关于0.22版本 2019年12月3日,官网发布了 sklearn 的 0.22 版本,本想尝鲜一下,毕竟里面的stackingregression以及roc有些诱人,然而走了一条慢慢的更新路,最后卸载重装了。【我太难了!】 插入一条0.22版本的改进内容 scikit-learn新版本发布,一行代码秒升级 ,内容为【量子位】公众号发布。 3. sklearn升级至0.22遇到的问题(0.19-0.21-0.22怀疑需要翻墙) 问题及原因列举如下: 更新时,忘记把spyder窗口全部关闭,报错,内容如下 OSError: [WinError 17] 系统无法将文件移到不同的磁盘驱动器。: 'd:\\python\\lib\\s ite-packages\\numpy\\ 解决方案:更新时务必关闭所有spyder窗口

conda环境重建方式

╄→尐↘猪︶ㄣ 提交于 2019-12-15 05:19:49
Conda 是著名的包管理器和虚拟环境管理器。 在配置完项目环境,并编写和测试代码后,您可能希望将其移至另一台计算机。 Conda 提供了多种保存和移动环境的方法。 Clone 在本地,conda 可以方便地创建环境的快照或者备份: conda create --name snapshot --clone myenv Spec List 如果需要在具有 相同操作系统 的计算机之间复制环境,则可以生成 spec list。 生成 spec list 文件: conda list --explicit > spec-list.txt 重现环境: conda create --name python-course --file spec-list.txt Environment.yml 也可以使用 -export 选项生成一个 environment.yml 文件,以在 不同的平台和操作系统之间复现项目环境。 spec list 文件和 environment.yml 文件之间的区别在于: environment.yml 文件不针对特定操作系统,并且使用YAML格式。 environment.yml 仅列出了软件包名称,由 conda 基于软件包的名称构建环境。 另一个区别是 -export 还包括使用pip安装的软件包,而 spec list 则没有。 导出 environment

Why does conda install tk not work in my docker container even though it says its installed?

纵然是瞬间 提交于 2019-12-14 03:58:42
问题 I was having issues with tk in my python 3 docker container. I tried: conda install tk but it says it did install it root@36602e2cd649:/home_simulation_research/overparametrized_experiments/pytorch_experiments# conda install tk Fetching package metadata ........... Solving package specifications: . # All requested packages already installed. # packages in environment at /opt/conda: # tk 8.6.7 h5979e9b_1 but when I go to python and try to import it it does not work: >>> import Tkinter

How to install Mayavi Trait backends?

只愿长相守 提交于 2019-12-14 03:41:28
问题 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

Cannot create environment in anaconda, update conda , install packages

邮差的信 提交于 2019-12-14 03:22:05
问题 CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/free/win-64/repodata.json.bz2 Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. If your current network has https://www.anaconda.com blocked, please file a support request with your network engineering team. ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded

Conflicting python version in jupyter notebook(Conda)

情到浓时终转凉″ 提交于 2019-12-14 03:03:22
问题 I am trying to setup Jupyter notebook using Conda, but the python version being used by notebook is not the same as the Conda environment. I used the following command to create the 'python_jupyter' environment. conda create -n python_jupyter python=3.6.5 ipykernel But in the notebook, when I check the python version I get different results depending on how I am checking it. If I check using bash command I get the expected version number 3.6.5, but from python code, I get 3.6.3(which I am

Using conda to create virtual environment, I get the wrong version of Python despite specifying version. Why?

大城市里の小女人 提交于 2019-12-13 18:09:21
问题 I need a virtual environment with Python 3.5, so I can run some tensorflow projects (tensorflow doesn't work on Python 3.6, which I normally use). I use conda because (as you'll see) I'm so bad at unix/understanding my computer. I type in conda create -n myenv python=3.5 and then activate myenv and then, to check, Python version, python -V The reply is Python 3.6 which is not the one I want. Looking at this question, it seems like I need to install Python 3.5 outside of the virtual

“Dead Kernel” Anaconda-Jupyter Cling C++ Windows

你。 提交于 2019-12-13 15:30:46
问题 I newly installed Anaconda (v.4.3.1) and used a conda command to install cling for a C++ kernel on Jupyter. I used conda install -c conda-forge cling=0.3.post I am on Windows 8.1. I can't seem to find an answer on how to resolve this: I'm getting a 'Dead Kernel' error upon opening a notebook with any C++11, C++14 or C++17 kernel. I have not at all been able to use the c++ kernels after installation. Python3 kernel works completely fine. Below is a screenshot of the error I get. Dead Kernel:

conda基本操作

。_饼干妹妹 提交于 2019-12-13 13:46:12
conda list # 查看安装了哪些包 conda env list # 查看现有的虚拟环境 conda update conda # 检查更新 conda create -n env_name python=X.X (3.7或者其他版本)# 创建虚拟环境,env_name是虚拟环境名称 conda activate env_name # 激活env_name虚拟环境 conda deactivate # 退出当前虚拟环境 conda remove -n env_name --all # 删除env_name虚拟环境 conda search "^python$" # 查看可用的python版本 来源: https://www.cnblogs.com/davion2017/p/12034304.html