conda

What does conda env do under the hood?

无人久伴 提交于 2020-05-15 03:38:09
问题 After searching and not finding, I must ask here: How does conda env work under the hood, meaning, how does anaconda handle environments? To clarify, I would like an answer or a reference to questions like: What is kept in the envs/myenv folder? What happens upon activate myenv ? What happens upon conda install ... ? Where can i find such information? 回答1: Conda envs Basically, conda environments replicate the structure of your system, meaning it will store /bin , /lib , /etc , /var , among

Why am I unable to install package into a venv while it works using conda in the same machine?

假装没事ソ 提交于 2020-05-14 08:46:25
问题 I have created a venv which I call PyRepo from a Miniconda installation locally. So far it has been working well as I was able to install third party packages from my venv using pip install <PackageName> no problems. However, I bumped into this one package blpapi that will install from conda (in the same machine): (base) C:\Programs\Miniconda3_64>pip install blpapi Looking in indexes: https://nexus-tp.xxx.net/repository/public-pypi/simple Requirement already satisfied: blpapi in c:\programs

Requirement already satisfied with psutil

泄露秘密 提交于 2020-05-13 05:29:07
问题 I´m trying to install the lib psutil, using the command !pip install psutil. When I run this code, I got this Requirement already satisfied: psutil in /opt/conda/lib/python3.6/site-packages (5.4.8) After that, I try to run this code: from plotly.offline import iplot, init_notebook_mode import plotly.graph_objs as go import plotly.io as pio import os import numpy as np init_notebook_mode(connected=True) N = 100 x = np.random.rand(N) y = np.random.rand(N) colors = np.random.rand(N) sz = np

Error installing geopandas:“ A GDAL API version must be specified ” in Anaconda

不羁的心 提交于 2020-05-12 11:32:45
问题 This error raised while installing geopandas. I've looking for its solution on the web, but none of them really explain what happened and how to solve it.. This is the full error: Collecting geopandas Using cached https://files.pythonhosted.org/packages/24/11/d77c157c16909bd77557d00798b05a5b6615ed60acb5900fbe6a65d35e93/geopandas-0.4.0-py2.py3-none-any.whl Requirement already satisfied: shapely in c:\users\alvaro\anaconda3\envs\tfdeeplearning\lib\site-packages (from geopandas) (1.6.4.post2)

How to make “conda” installer look for “PyPi” packages

蓝咒 提交于 2020-05-10 06:27:48
问题 I was trying to use conda package manager to install my Python packages. Recently I encountered that many of the packages that I required were not present in the Anaconda.org repository, and I had to pip install them. Ref: github issues Is there a way to add a channel to Anaconda that will enable it to look for All PyPi packages so that I can use "conda" completely instead of switching over to pip every now and then 回答1: According to conda skeleton, you can first run conda skeleton pypi

Conda install and update do not work also solving environment get errors

只谈情不闲聊 提交于 2020-05-09 19:37:11
问题 I am using anaconda as below: (base) C:\Users\xxx>conda info active environment : base active env location : C:\Users\xxx\Documents\ANACONDA shell level : 1 user config file : C:\Users\xxx\.condarc populated config files : C:\Users\xxx\.condarc conda version : 4.7.11 conda-build version : 3.18.9 python version : 3.6.9.final.0 virtual packages : base environment : C:\Users\xxx\Documents\ANACONDA (writable) channel URLs : https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs

How to uninstall all unused packages in a conda virtual environment?

大兔子大兔子 提交于 2020-05-09 19:35:20
问题 I have a conda virtual environment with several unused packages installed inside it (either using pip install or conda install ). What is the easiest way to clean it up so that only packages that are actually used by my code remain, and the others are uninstalled? 回答1: conda clean --yes --all will sanitize everything. But take note: if you ever want to do any type of --offline operations, don't use --all ; be more selective. 回答2: The difference between conda clean --yes --all and conda clean

How to uninstall all unused packages in a conda virtual environment?

▼魔方 西西 提交于 2020-05-09 19:35:09
问题 I have a conda virtual environment with several unused packages installed inside it (either using pip install or conda install ). What is the easiest way to clean it up so that only packages that are actually used by my code remain, and the others are uninstalled? 回答1: conda clean --yes --all will sanitize everything. But take note: if you ever want to do any type of --offline operations, don't use --all ; be more selective. 回答2: The difference between conda clean --yes --all and conda clean

mac安装完anaconda后,环境变量设置

社会主义新天地 提交于 2020-05-09 16:32:30
环境:MacOS Sierra 10.12.3;PyCharm Community Edition 2017.1 1. 安装Anaconda:从 https://www.continuum.io/downloads/ 下载 python 2.7 version中的图形界面版本或者命令行版本(根据自己的需要),然后在terminal中执行命令bash Anaconda2-4.3.1-MacOS-x86_64.sh 2. 这个时候在终端里面输入conda 是无法识别这个这个命令的,需要添加环境变量。 在terminal中执行以下命令(需要根据自己anaconda的安装路径作出调整): export PATH=~/anaconda2/bin:$PATH 这时在terminal里面输入conda就可以给出命令信息了,这样可以检验你的conda是不是可以用。 来源: oschina 链接: https://my.oschina.net/u/4350688/blog/4272065

Why is conda init updating my .bash_profile incorrectly?

心已入冬 提交于 2020-05-09 12:01:47
问题 After following these steps and installing conda it seems that conda init updates my .bash_profile incorrectly for some reason. It adds it's content AFTER running .bashrc and thus when bash gets started all my conda stuff does not get initiated correctly for some reason. I ended up having to change the .bash_profile manually to look like this: (automl) brandBrandoParetoopareto~ $ cat .bash_profile # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! _