conda

How to use conda/pip install to install packages behind a corporate proxy?

折月煮酒 提交于 2021-01-28 06:53:17
问题 In R I can use install.packages("pkgName") to install a new package no problems. But when I tried python and do pip install package it fails with error Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pyarrow/ I think it's because pip doesn't know how to automatically detect the proxy (that's gets set in Internet Explorer) like R

sf R package “is not compatible with GDAL versions below 2.0.0” after installing gdal 2.3 from conda

僤鯓⒐⒋嵵緔 提交于 2021-01-28 06:44:42
问题 In trying to install the sf R package, I got the error message: checking GDAL version >= 2.0.0... no configure: error: sf is not compatible with GDAL versions below 2.0.0 I then installed gdal 2.3.1 from conda and confirmed the version: gdalinfo --version GDAL 2.3.1, released 2018/06/22 But I still get the same error message. SF on R 3.5 can't find correct version of gdal looks similar but their solution involved installing outside of conda. I'm on Ubuntu. How can I get sf to recognize the

Can't deactivate conda

爱⌒轻易说出口 提交于 2021-01-28 06:35:28
问题 I have deactivated conda many times before, but suddenly have an error that is keeping me from doing much of anything: $ conda deactivate Error processing line 1 of /home/username/anaconda3/lib/python3.7/site-packages/matplotlib-3.0.3-py3.7-nspkg.pth: Traceback (most recent call last): File "/home/username/anaconda3/lib/python3.7/site.py", line 168, in addpackage exec(line) File "<string>", line 1, in <module> File "<frozen importlib._bootstrap>", line 580, in module_from_spec AttributeError:

Conda install some-package hangs with (Solving environment: failed)

青春壹個敷衍的年華 提交于 2021-01-28 01:50:15
问题 I have tried multiple ways but can't install packages (in my case, geopandas). I tried geopandas install guide, but get output that runs forever. I tried without creating an environment, after creating a new environment, using defaults channel and using conda-forge channel. None worked. $ conda create -n top $ conda activate top $ conda config --env --add channels conda-forge $ conda config --env --set channel_priority strict $ conda install python=3 geopandas Collecting package metadata

ImportError when importing numpy under Spyder from within a Python 3.7 conda environment

你离开我真会死。 提交于 2021-01-27 23:19:29
问题 I have created a conda environment named python3 on my Ubuntu virtual machine using: conda create -n python3 python=3.7 I have installed several packages under this environment, including numpy. When typing conda list , numpy shows up: When running Python from the terminal, I can import numpy just fine, but this is no longer the case when working under the Spyder IDE: I get the following error: ImportError: No module named numpy Just for the record, I have reinstalled Spyder3 from my conda

Unable to install packages in Anaconda virtual environment. 'Packages are not available from current channels'

旧巷老猫 提交于 2021-01-27 20:14:41
问题 I am trying to create a new Python environment in Anaconda. I am using Anaconda Powershell Prompt and created the environment using the conda create --name adwp1 python=3.5 -y; conda activate adwp1 conda install notebook=4.2.3 -y; and pip install notebook=4.2.3 I get the following error when I use conda install Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata

IPython automatically turning on matplotlib interactive mode

a 夏天 提交于 2021-01-27 18:52:51
问题 I'm experiencing some newly odd behavior from IPython. I just had to do a clean reinstall of my miniconda, so I now have fresh IPython and Matplotlib versions. It turns out that IPython is automatically switching matplotlib to interactive mode (which has the annoying side effect of making my saved figures blank in my scripts, because they save after I close the window). Here's an example: Python 3.7.3 | packaged by conda-forge | (default, Jul 1 2019, 21:52:21) Type 'copyright', 'credits' or

Set a path for the ~/.conda/pkgs directory

陌路散爱 提交于 2021-01-27 13:39:38
问题 Working on a cluster with very limited space on my home directory, so I want to set the default from the home directory for ~/.conda/pkgs folder to be another package and I can't seem to figure out how to do this. I have tried using the .condarc file with pkg_dirs: channels: - conda-forge - bioconda - defaults pkg_dirs: my/new/folder Ideally this would make the creation and installation of the .conda folder in the new path not my home directory 回答1: Gained clarity from this post: and will

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

早过忘川 提交于 2021-01-27 08:03:24
问题 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

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:56
问题 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