Anaconda

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

OpenSSL.SSL.Error: [('SSL routines', 'ssl3_read_n', 'unexpected eof while reading')] when updating / searching / installing conda packages

浪尽此生 提交于 2020-06-29 05:26:56
问题 Whenever I try to perform any operation that requires connecting to any conda channels, e.g. update --all , I get the following error, always in the first step: OpenSSL.SSL.Error: [('SSL routines', 'ssl3_read_n', 'unexpected eof while reading')] The workaround is uninstalling and then installing the entire Anaconda distribution. After that any conda command works as expected for the rest of the day. BUT the next day I start getting the above error again. I know it's not due to any networking

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

problems updating packages in anaconda navigator

怎甘沉沦 提交于 2020-06-29 04:27:10
问题 I cannot update packages in anaconda navigator. Procedure: 1. Update index 2. mark packages, that I want to update 3. click apply After a while the window remains empty and nothing happens (see figure). I already deleted anaconda completely from my computer and installed it again. The problem remains. I tried to update packages from the command line: conda update --all and it seem to work. But when I checked my anaconda navigator for updatable packages, it shows me 194 updatable packages in

Code Runner does not work for Python in VsCode

喜你入骨 提交于 2020-06-29 03:49:13
问题 I can run python files in cmd promt and Vscode terminal (cmd prompt). When I try to run any programme with Code runner ( "code-runner.runInTerminal": false ), I get the following error: [Running] python "c:\Users\MY PATH INCLUDING WHITESPACE\hello_world.py" Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 Here are the user settings (settings.json) I have tried: "code-runner.executorMap": { "python": "python", }, "code-runner

Jupyter Notebook's RISE Missing Slideshow Button

孤街醉人 提交于 2020-06-28 07:53:00
问题 I followed the instructions on installing RISE for Jupyter notebook with Anaconda (conda) but the "Enter/Exit RISE Slideshow" button never showed in the toolbar. I followed the recommendations on solving the problem in the two closed RISE issues (#137, #275), but with no luck. I updated Jupyter to the latest version, started a new notebook, hard refreshed the browser page, reinstalled Rise and still no button. I also saw this SO question, which is different from my case since I never saw the

Jupyter Notebook's RISE Missing Slideshow Button

前提是你 提交于 2020-06-28 07:52:14
问题 I followed the instructions on installing RISE for Jupyter notebook with Anaconda (conda) but the "Enter/Exit RISE Slideshow" button never showed in the toolbar. I followed the recommendations on solving the problem in the two closed RISE issues (#137, #275), but with no luck. I updated Jupyter to the latest version, started a new notebook, hard refreshed the browser page, reinstalled Rise and still no button. I also saw this SO question, which is different from my case since I never saw the

Ubuntu - Anaconda 2020.02 - Namespace Gtk not available

孤人 提交于 2020-06-28 05:22:15
问题 This is on Ubuntu 16.04 LTS. I've run into the same issue as this question: ValueError: Namespace Gtk not available I've done the following to set things up for gtk3 conda install -c conda-forge pygobject sudo apt-get install libgtk-3-dev sudo apt install python3-gi gobject-introspection gir1.2-gtk-3.0 However, the simple test program at: https://python-gtk-3-tutorial.readthedocs.io/en/latest/introduction.html fails, with the same error: Python 3.7.7 (default, Mar 26 2020, 15:48:22) [GCC 7.3

Cx-Freeze : Showwarning AttributeError: 'NoneType' object has no attribute 'write'

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-27 14:57:42
问题 Scripts works fine on source file with using Anaconda alongside with Python 3.4. When i cxfreeze (v 4.3.4) it with following setup file: from cx_Freeze import setup, Executable setup(executables=[Executable("main.py", base="Win32GUI")], version='0.2') I got following error on the server: DBOps.py", line 54, in executemany "C:\Users\user\Anaconda3\lib\site-packages\MySQLdb\cursors.py", line 286, in executemany File "FileC:\Users\user\Anaconda3\lib\site-packages\MySQLdb\cursors.py", line 127,