conda

conda environment in google colab [google-colaboratory]

ぐ巨炮叔叔 提交于 2020-07-17 09:58:25
问题 I am trying to create a conda environmet in google colab notebook. I succesfully installed conda with the following comannd !wget -c https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh !chmod +x Anaconda3-5.1.0-Linux-x86_64.sh !bash ./Anaconda3-5.1.0-Linux-x86_64.sh -b -f -p /usr/local Default python which is using by system is now Python 3.6.4 :: Anaconda, Inc. I am trying to create an environment in conda by conda env create -f environment.yml Every package got successfully

How do i install tensorflow 2.2 in windows?

时光怂恿深爱的人放手 提交于 2020-07-08 02:56:11
问题 I have conda 4.8.3 and Python 3.7.4 on Windows 8.1. I have tf 2.0.0 installed in a conda environment. How do I upgrade to 2.2.x? Or, how do I just install 2.2.x in a conda environment? Edit 1: pip install --upgrade tensorflow says: Requirement already up-to-date: tensorflow in d:\anaconda3\envs\tf2\lib\site-packages (2.1.0) but tf version is still 2.0. Edit 2: conda install tensorflow==2.2.0 says: PackagesNotFoundError: The following packages are not available from current channels:

Setting the Python path for local project in VS Code without using the settings.json file

若如初见. 提交于 2020-07-07 04:36:32
问题 This answer from a Visual Studio Code developer says that it is reasonable to keep a Visual Studio Code project's settings.json file in a project's git repository to enforce code standards across different development environments. One down-side though is that when I select the Python interpreter path at the bottom of the screen (so the linter can find the installed packages), the following entry gets added to the settings.json file: "python.pythonPath": "/path/to/conda/envs/my-env-name/bin

Setting the Python path for local project in VS Code without using the settings.json file

倖福魔咒の 提交于 2020-07-07 04:36:00
问题 This answer from a Visual Studio Code developer says that it is reasonable to keep a Visual Studio Code project's settings.json file in a project's git repository to enforce code standards across different development environments. One down-side though is that when I select the Python interpreter path at the bottom of the screen (so the linter can find the installed packages), the following entry gets added to the settings.json file: "python.pythonPath": "/path/to/conda/envs/my-env-name/bin

Using pyinstaller with anaconda environment

折月煮酒 提交于 2020-07-05 11:40:08
问题 I have a very simple application made on python(v 3.6) , and I wanted to freeze it using pyinstaller.I have made the app using an environment created with anaconda, and I installed there the packages I needed(youtube_dl). I need help on how to use pyinstaller for my app(Main.py) using the environment I created with all its packages inside it. If I run "pyinstaller Main.py" I get this error: Traceback (most recent call last): File "Main.py", line 7, in <module> File "/Library/Frameworks/Python

conda why create new environment for install

白昼怎懂夜的黑 提交于 2020-07-05 04:18:48
问题 I was suggested to conda create a new environment for installing tensorflow First question, in general: Why do environment exist in conda or in Python ? (Why) is it preferable to install a new library in a new environment ? Here, in practice: After install conda shell says $conda activate test will activate the test environment. Does it mean i can't access the lib in Spyder unless i activate test in conda shell ? Do i need to restart python shell to see the lib ? I can't access the lib ( no

Activate conda environment in docker

一曲冷凌霜 提交于 2020-07-05 04:09:33
问题 I need to activate environment in docker and run a command in this environment. I create the environment, but then I try to activate this environment and run the command in this way: CMD [ "source activate mro_env && ipython kernel install --user --name=mro_env" ] but when I ran docker I get an error: [FATAL tini (8)] exec source activate mro_env && ipython kernel install --user --name=mro_env failed: No such file or directory This is the whole Dockerfile: FROM continuumio/miniconda3 ADD /src

Can I add a channel to a specific conda environment?

北城以北 提交于 2020-07-04 08:34:23
问题 I want to add a conda channel to a specific conda environment but when I use conda config --add channels glotzer that channel is now available from all my conda environments. In addition to testing an install from another environment, the ~/.condarc file has the following: channels: - glotzer - defaults How would I configure conda so the channel is only available from a specific environment? I did find in the channel documentation that for conda >= 4.1.0, putting channels at the bottom of the

Can I add a channel to a specific conda environment?

风格不统一 提交于 2020-07-04 08:33:26
问题 I want to add a conda channel to a specific conda environment but when I use conda config --add channels glotzer that channel is now available from all my conda environments. In addition to testing an install from another environment, the ~/.condarc file has the following: channels: - glotzer - defaults How would I configure conda so the channel is only available from a specific environment? I did find in the channel documentation that for conda >= 4.1.0, putting channels at the bottom of the

How to still using anaconda Python3 after activate a conda environment?

核能气质少年 提交于 2020-06-29 04:54:49
问题 I'm using MAC OS and installed python2, then miniconda python2, and then Anaconda python3. Now normally in terminal my python version would be python3, but if I activate a conda environment "test", then the default python will be python2. I believe the reason is the $PATH is changed, at "base" env (when terminal started), the starting part is "/anaconda3/bin:/anaconda3/condabin" , and after "conda activate env" , it changed to "/anaconda3/envs/test/bin:/anaconda3/condabin" which do not have