miniconda

conda: remove all installed packages from base/root environment

跟風遠走 提交于 2019-12-03 05:03:23
TL:DR: How can I remove all installed packages from base ? I installed a bunch of machine learning packages in my base conda environment. I've now created a ml environment for machine learning, and wish to reset my base environment by removing all the packages installed there. I've tried: % activate base % conda uninstall -n base --all CondaEnvironmentError: cannot remove current environment. deactivate and run conda remove again Apparently, I can't remove packages from the current environment(?!), so lets switch to my ml environment first: % source activate ml % conda uninstall -n base --all

Use anaconda environment without activate? (e.g. in Crontab)

a 夏天 提交于 2019-12-03 02:49:07
Being reading this http://conda.pydata.org/docs/using/envs.html Is it possible to run a conda python directly without having to source activate xxx ? In VirtualEnv, you can find the exact location of the python executable and run something like this ./path/to/my/venv/bin/python xxx.py Then xxx.py will be executed with environment on. It's handy to write one-linders in Crontab. Could I do the same with anaconda/miniconda environments? I've been trying this on Centos 6.5, system has python 2.5 which is too old. I installed python 2.7 with miniconda, now I pip installed uWSGI, when executing it

Explanation of different conda channels

我只是一个虾纸丫 提交于 2019-12-02 22:21:17
What are the major conda channels, and what are their focuses? I can't seem to find any documentation on what major channels are available and when to choose one over the other. What is the relationship to the "default" channel? How does one decide what order to put them in? In general, I use anaconda conda_forge r bioconda defaults But I've been running into some problems with my environment breaking. abc anaconda conda-forge r bioconda These are all channels from which packages can be installed. They are not anymore special than the default channel. You can even create your own channel on

How to remove (base) from terminal prompt after updating conda

一世执手 提交于 2019-12-02 18:20:17
After updating miniconda3, whenever I open a terminal it shows "(base)" in front of my username and host. In this answer post https://askubuntu.com/a/1113206/315699 it was suggested to use conda config --set changeps1 False To remove it. But that would remove the indication for any conda environment. I would like to remove it only for the base one, so that I can maintain it always active and have access to its python and installed packages without having to always see this (base) taking up space. Use the base env's activation hook For each env, any scripts in the etc/conda/activate.d directory

How to install my own python module (package) via conda and watch its changes

隐身守侯 提交于 2019-12-02 16:19:53
I have a file mysql.py , which I use in almost all of my projects. Since I do not want to copy and paste the same file into each of these projects I wrote a module - possibly a package in the future. Question How do I add a local module to my conda environment, and automatically update or watch it when I change something in mysql.py ? How to do the same for a package? I would like to avoid to set up a local channel/repository and just reference to the folder with mysql.py . Michael While the previous answers are doing what I need, I just want to show what I will be using instead. Since it was

Cannot Get Latest Conda Release (V 4.6.1 with upgraded PowerShell Initialization Support) To Work with PowerShell (Ideally to Integrate with VSCode)

浪尽此生 提交于 2019-12-02 13:01:47
问题 The latest release of Conda (4.6.1) asserts added initialization support, especially making reference to PowerShell. As can be seen in this official update release documentation However, upon upgrade and initialization setup: conda update conda conda init Producing this output: C:\Users\User\Miniconda3\Scripts\conda.exe C:\Users\User\Miniconda3\Scripts\conda-env.exe C:\Users\User\Miniconda3\Scripts\conda-script.py C:\Users\User\Miniconda3\Scripts\conda-env-script.py C:\Users\User\Miniconda3

Matplotlib cannot find basic fonts

拟墨画扇 提交于 2019-11-30 06:23:18
问题 I am using matplotlib version 2.0.0 on Python 3 in a miniconda virtual environment. I am working on a unix scientific computing cluster where I don't have root privileges. I am generally executing python code through an ipython notebook. If I do a basic command such as: import matplotlib.pyplot as plt plt.scatter([1,5], [1,5]) I get an error message: path_to_miniconda/miniconda3/envs/conda34/lib/python3.4/site- packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family [

Miniconda “installs” numpy but Python can't import it

﹥>﹥吖頭↗ 提交于 2019-11-29 06:39:53
So I have been having some trouble with this. I need to use numpy so that I can use OpenCV and so I installed Miniconda (Not Miniconda3 because we are working in Python 2.7) and I installed numpy with conda install numpy and it worked because when I run conda list I see that it is there: Microsoft Windows [Version 10.0.10240] (c) 2015 Microsoft Corporation. All rights reserved. C:\Users\joe30_000>conda list # packages in environment at C:\Users\joe30_000\Miniconda: # conda 3.17.0 py27_0 conda-env 2.4.2 py27_0 menuinst 1.0.4 py27_0 numpy 1.9.3 py27_0 pip 7.1.2 py27_0 pycosat 0.6.1 py27_0

Virtualenv OSError - setuptools pip wheel failed with error code 1

て烟熏妆下的殇ゞ 提交于 2019-11-29 04:09:55
I get the following error message when trying to set up a virtual environment with virtualenv 15.0.2 but receive OSError setuptools pip wheel failed with error code 1. New python executable in /Users/nathmorissette/projects/tutorial/venv/bin/python Installing setuptools, pip, wheel... Complete output from command /Users/nathmorissett...rial/venv/bin/python - setuptools pip wheel: Traceback (most recent call last): File "<stdin>", line 4, in <module> File "/Users/nathmorissette/miniconda2/lib/python2.7/tempfile.py", line 32, in <module> import io as _io File "/Users/nathmorissette/miniconda2

How to uninstall mini conda? python

独自空忆成欢 提交于 2019-11-28 22:01:56
问题 I've install the conda package as such: $ wget http://bit.ly/miniconda $ bash miniconda $ conda install numpy pandas scipy matplotlib scikit-learn nltk ipython-notebook seaborn I want to uninstall it because it's messing up my pips and environment. How do I uninstall conda totally? Will it uninstall also my pip managed packages? If so, is there a way to uninstall conda safely without uninstalling packages managed by pip? 回答1: In order to uninstall miniconda, simply remove the miniconda folder