conda

How to have egg files from github install with pip not in current directory but in the conda env directory?

自闭症网瘾萝莉.ら 提交于 2021-01-27 08:01:40
问题 I am creating a python env using conda, pip and yml config file by using first: conda env create -f test.yml -n test_pip then conda env update -f test.yml -n test_pip with the following .yml file (for test only): channels: - defaults - conda-forge dependencies: - python=3.5 - numpy - scipy - scikit-learn - jupyter - ipykernel - requests - pandas - seaborn - click - openpyxl - matplotlib - pip: - watermark - "-e git+https://github.com/slundberg/shap#egg=shap" - pytest - sklearn - autopep8 It

downgrade python version from 3.8 to lower one in a given conda environment

我的未来我决定 提交于 2021-01-27 07:51:21
问题 In one existing conda environment, the python is 3.8 . Is that possible to downgrade the python version for this specific environment from 3.8 to 3.6 or 3.7 ? 回答1: Check this, Open your terminal and search for available versions using the following command. conda search python If the python version you are searching is available then use the command conda install python=3.8 (0r 3.6 or 3.7 depending to your requirement) This will change the python version in a specific environment. Note: This

Seaborn AttributeError: module 'seaborn' has no attribute 'displot' AND conda Solving environment fail

ε祈祈猫儿з 提交于 2021-01-27 07:33:16
问题 As per seaborn documentation here seaborn.distplot() has been deprecated with the forward going supported plots being: seaborn.displot() and seaborn.histplot() . However, when I try to use either of displot() or histplot() I get the following Attribute error: AttributeError: module 'seaborn' has no attribute 'displot' Note I can succesfully run seaborn.jointplot() and various others. I found this SO post Module Seaborn has no attribute '' but that doesn't seem to be the solution to my issue.

Seaborn AttributeError: module 'seaborn' has no attribute 'displot' AND conda Solving environment fail

我怕爱的太早我们不能终老 提交于 2021-01-27 07:32:43
问题 As per seaborn documentation here seaborn.distplot() has been deprecated with the forward going supported plots being: seaborn.displot() and seaborn.histplot() . However, when I try to use either of displot() or histplot() I get the following Attribute error: AttributeError: module 'seaborn' has no attribute 'displot' Note I can succesfully run seaborn.jointplot() and various others. I found this SO post Module Seaborn has no attribute '' but that doesn't seem to be the solution to my issue.

AWS Sagemaker does not update the package

核能气质少年 提交于 2021-01-27 07:12:26
问题 AWS Sagemaker's notebook comes with Scikit-Learn version 0.19.1 I would like to use version 0.20.2. To avoid updating it every time in the notebook code, I tried using the lifecycle configurations. I created one with the following code : #!/bin/bash set -e /home/ec2-user/anaconda3/bin/conda install scikit-learn -y When I run the attached notebook instance and go to the terminal, the version of scikit-learn found with conda list is correct (0.20.2). But when I run a notebook and import sklearn

Why some packages are upgradable in Pip, not in Conda? [duplicate]

点点圈 提交于 2021-01-27 07:07:28
问题 This question already has answers here : What is the difference between pip and conda? (12 answers) Closed 3 years ago . I installed Anaconda under Windows 10. Everything is working fine. I also ran conda upgrade --all in a command prompt. However, I noticed that when I type this in a command prompt: pip list -o I get (among other things) astroid (1.4.7) - Latest: 1.4.8 [wheel] This means package astroid is upgradable under pip. However, when I go to the Anaconda Navigator and look at the

Cannot update python package on anaconda to latest version

社会主义新天地 提交于 2021-01-27 07:06:07
问题 Some of my python packages on anaconda cannot be updated to the latest version. For instance, beautifulsoup4 latest version on anaconda is v4.71 as seen in the release notes. https://docs.anaconda.com/anaconda/reference/release-notes/ However, when I run conda update beautifulsoup4 , the latest version that I can update to is v4.6. I discovered that the channel used by beautifulsoup4 is pypi . # Name Version Build Channel beautifulsoup4 4.6.0 pypi_0 pypi bleach 3.1.0 py_0 conda-forge I

Conda ImportError: No module named conda.cli

不羁的心 提交于 2021-01-27 04:36:22
问题 I installed conda, not anaconda, directly onto a server I am working on using the following instructions wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh bash Miniconda2-latest-Linux-x86_64.sh install to $HOME/.miniconda2 edit ~/.bashrc Add this line: export PATH="$HOME/.miniconda2/bin:$PATH" source ~/.bashrc conda install pip When the conda installer asked me if I want to add the path to my .bashrc file I said yes and it added export PATH="/home/r/rhlozek/binesh

报错FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated; in a future ver...

杀马特。学长 韩版系。学妹 提交于 2021-01-26 10:23:20
PyCharm应用conda自己创建的虚拟环境里面的tensorflow1.3.0版本报错; C:\ProgramData\Anaconda3\envs\python36tfgpu\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint8 = np.dtype([(“qint8”, np.int8, 1)]) … 报错原因是Numpy版本过高为1.19; 因此,安装低版本的Numpy就不会报错,安装过程自动卸载高版本; 首先,进入自己创建的虚拟环境 >activate xxx(环境名字) 然后,安装指令为 >pip install numpy==1.16.4 执行即可。 来源: oschina 链接: https://my.oschina.net/u/4377703/blog/4924894

centos 7 配置pytorch运行环境

佐手、 提交于 2021-01-25 05:01:18
华为云服务器,4核心8G内存,没有显卡,性能算凑合,赶上双11才不到1000,性价比还可以,打算配置一套训练densenet的环境。 首先自带的python版本是2.7,由于明年开始就不再维护了,所以安装了个conda。 wget https://repo.continuum.io/archive/Anaconda3-5.3.0-Linux-x86_64.sh 发现实在太慢,找了个清华的源,快了很多。 wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-4.3.0-Linux-x86_64.sh (这里4.3.0可以换成5.3.0,4.3.0的python版本好像是3.6 ,后面再安装pytorch和torchvision的时候可能还需要升级python版本) chmod 777 anaconda3.4.3.0-Linux-x86_64.sh ./anaconda3.4.3.0-Linux-x86_64.sh 一直yes,安装好后,会提示是否加入系统变量中,点击yes,再执行命令 :source ~/.bachrc 输入python --version 检查是否版本从2.7升级到3.6 输入conda list,检查conda是否安装好 然后安装pytorch和torchvision conda