miniconda

Specific reasons to favor pip vs. conda when installing Python packages

只愿长相守 提交于 2019-12-30 04:30:06
问题 I use miniconda as my default python installation. What is the current (2019) wisdom regarding when to install something with conda vs. pip? My usual behavior is to install everything with pip, and only using conda if a package is not available through pip or the pip version doesn't work correctly. Are there advantages to always favoring conda install ? Are there issues associated with mixing the two installers? What factors should I be considering? OBJECTIVITY: This is not an opinion-based

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

安稳与你 提交于 2019-12-29 17:45:10
问题 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

ImportError: No module named temperature from the terminal

为君一笑 提交于 2019-12-25 09:11:02
问题 I have miniconda installed and running various versions of python in different environments. I've created a temperature.py file and saved it in a folder called python in my root directory: /Users/name When I type python on the terminal and then run import temperature.py from the terminal I get this error: ImportError: No module named 'temperature' Where should I have saved the temperature.py file? 回答1: The first place Python looks for modules to import is the working directory (i.e. the the

ImportError: No module named temperature from the terminal

半城伤御伤魂 提交于 2019-12-25 09:08:08
问题 I have miniconda installed and running various versions of python in different environments. I've created a temperature.py file and saved it in a folder called python in my root directory: /Users/name When I type python on the terminal and then run import temperature.py from the terminal I get this error: ImportError: No module named 'temperature' Where should I have saved the temperature.py file? 回答1: The first place Python looks for modules to import is the working directory (i.e. the the

jupyter notebook kernel crashing non-stop

冷暖自知 提交于 2019-12-25 03:17:21
问题 I have installed Jupyter Notebook through Conda. Been using it for a month without any issues. Suddenly today Jupyter Kernel started crashing and it is failing to restart. One point to note. This opens without any problems: http://localhost:8888/tree but crashes start to happen as soon as I open any notebook (.ipynb file) (gpd) [arnuld@arch64 geo]$ jupyter-notebook [I 13:01:24.389 NotebookApp] Serving notebooks from local directory: /mnt/sda5/knuth/geo [I 13:01:24.389 NotebookApp] The Jupyter

Which python package owns a binary?

谁说我不能喝 提交于 2019-12-24 15:46:13
问题 I'm having problems with ~/.local/share/miniconda3/envs/nndl/bin/tput - it produces output different to my system version, breaking some ANSI colouring. I'm trying to track down the package which provides this offensive version. I've tried (source): pip list | tail -n +3 | cut -d" " -f1 | xargs pip show -f | grep tput But the binary is not shown. How do I find which python package includes a binary? 回答1: One ugly solution is: Rename the file Re-install all installed packages one-by-one until

How to install/convert non-Python packages (.tar.bz2) to Anaconda packages?

不想你离开。 提交于 2019-12-24 08:50:11
问题 I need to convert some non-Python packages that are in the .tar.bz2 format to Anaconda/miniConda .egg files and install them. For this I would need a bld.bat file for Windows. Is there any place on the internet where I can find some examples to do this. Maybe it is possible to write a .py Python script to do this as well. The .tar files are present online and I need to download and install those automatically using the script. 回答1: With conda-build you can build non-Python packages the same

Cannot figure out how to install numpy with Python 3.3.3 and Windows 7 64bit

旧街凉风 提交于 2019-12-23 04:52:38
问题 This is driving me nuts. I'm brand new to python and just want to be able to import numpy but have failed while trying to follow 20 different sets of instructions. I know very little about installing things from command prompts, so please don't assume any knowledge. So far I have installed pip and gotten that to seemingly work ok. When running "pip install numpy" from the cmd prompt it seemed to download OK but have a ton of error messages, ending with "Command python setup.py egg_info failed

What's the latest conda version compatible with Google Colab

ε祈祈猫儿з 提交于 2019-12-22 13:03:01
问题 I need to use conda to install some library to use with Colab. It seems that we cannot use the latest Anaconda because its Python 3.7 isn't compatable. So what's latest compatible version for both Anaconda and Miniconda ? And how to install them? 回答1: The latest compatible versions are Anaconda 5.2.0 Miniconda 4.5.4 Here's how to install them. I use an example installing faiss from pytorch channel. !wget -c https://repo.continuum.io/archive/Anaconda3-5.2.0-Linux-x86_64.sh !chmod +x Anaconda3

Activate and switch Anaconda environment in Dockerfile during build

孤人 提交于 2019-12-22 06:47:43
问题 I've been trying for hours and can't figure out how to activate and switch anaconda environments in a Dockerfile during the build process Here's the initial code: FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu16.04 # Set user ENV SETUSER myuser RUN useradd -m $SETUSER USER $SETUSER WORKDIR /home/$SETUSER # Install Anaconda RUN wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh RUN bash Anaconda3-2019.03-Linux-x86_64.sh -b RUN rm Anaconda3-2019.03-Linux-x86_64.sh # Set path to