Amazon Web Services – Removing and then reinstalling Anaconda on an AWS Ubuntu Deep Learning EC2 instance and unable to enter in-depth learning environments

I just set up an Ubuntu Deep Learning AMI EC2 instance. I am a beginner on AWS / Packet Processing.

My goal is to use the instance to run a Python deep learning script. This script uses a variety of packages.

When installing some of these packages with conda, an error has occurred indicating inconsistencies in the environment for more than 100 packages. After several attempts to solve this problem, I thought that removing Anaconda and reinstalling it could do the trick. After that, I realized that I had perhaps further spoiled my instance. I can no longer use the predefined deep learning environments for which the AMI has been configured because they have been accessed using conda commands, which seems to have been removed (IMO).

I've tried repeating the commands, but I get an error stating that these environments no longer exist. A tutorial using these commands is mentioned here:

active source tensorflow_p36

I was expecting the above to enter the tensorflow_p36 environment. A sin:

(tensorflow_p36) ubuntu @ ip-172-31-45-96: ~ / scripts

However, this gives an error message:

impossible to find the environment: tensorflow_p36

I realize that the uninstallation of conda was a major rookie error that seems to have totally disabled my instance. If anyone has any ideas to get it back, it would be very appreciated!

thank you so much

python – Can we download Anaconda (Linux) on Raspberry Pi directly from the Anaconda website?

I have a Raspberry Pi 3B + with Raspbian, it is already installed on Python, but I've always used Anaconda with Spyder IDE. I am pretty new to Linux, can I directly access the Anaconda website and download the Linux distribution to install it? I just want to make sure I do not ruin anything. How would this affect the current installation of Python on the Pi?

Thank you

anaconda – You have this error when trying to launch Docker Quick Start Terminal on Mac. I can not understand the error

Traceback (last most recent call):
File "/anaconda3/lib/python3.7/site-packages/conda/cli/", line 138, in the main window
returns activator_main ()
File "/anaconda3/lib/python3.7/site-packages/conda/", line 955, in the main directory
print (activator.execute (), end = & # 39;)
File "/anaconda3/lib/python3.7/site-packages/conda/", line 180, in execution
returns getattr (self, self.command) ()
File "/anaconda3/lib/python3.7/site-packages/conda/", line 154, in activate
builder_result = self.build_activate (self.env_name_or_prefix)
"/Anaconda3/lib/python3.7/site-packages/conda/" file, line 285, in build_activate
return self._build_activate_stack (env_name_or_prefix, False)
File "/anaconda3/lib/python3.7/site-packages/conda/", line 307, in _build_activate_stack
returns self.build_reactivate ()
"/Anaconda3/lib/python3.7/site-packages/conda/" file, line 452, in build_reactivate
new_path = self.pathsep_join (self._replace_prefix_in_path (conda_prefix, conda_prefix))
"/Anaconda3/lib/python3.7/site-packages/conda/" file, line 569, in _replace_prefix_in_path
if path_list[last_idx + 1] == library_bin_dir:
IndexError: out of range list index

$ / anaconda3 / bin / conda shell.posix activates the base

Environmental variables:
CONDA_BACKUP_HOST = x86_64-apple-darwin13.4.0
CONDA_BUILD_SYSROOT = / Library / Developer / CommandLineTools / SDKs / MacOSX10.14.sdk
CONDA_EXE = / anaconda3 / bin / conda
CONDA_PREFIX = / anaconda3
CONDA_PYTHON_EXE = / anaconda3 / bin / python
CONDA_ROOT = / anaconda3
DOCKER_CERT_PATH = / Users / Ronnit / .docker / machine / machines / default
PATH = / anaconda3 / bin: / usr / local / bin: / usr / bin: / bin: / usr / sbin: / sbin: / anaconda3
/trash can

    Active environment: base
active env location: / anaconda3
shell level: 1
User configuration file: /Users/Ronnit/.condarc

completed configuration files: /Users/Ronnit/.condarc
final version: 4.6.14
conda-build version: 3.17.8
python version:
Basic environment: / anaconda3 (writable)
Channel URL:
package cache: / anaconda3 / pkgs
Directories envs: / anaconda3 / envs
platform: osx-64
user-agent: cond./ 4.6.14 request / 2.21.0 CPython / 3.7.3 Darwin / 18.5.0 OSX / 10.14.4
UID: GID: 501: 20
netrc file: none
offline mode: False

An unexpected error has occurred. Conda has prepared the report above.

If it is submitted, this report will be used by the main maintainers to improve
future versions of conda.
Do you want Conda to send this report to the main officials?

Waiting time reached. No report sent.

anaconda – jupyter notebook nb_conda automatically activate the packages

I was wondering if it would be possible to keep packets enabled in a conda environment in Jupyter.

Whenever I activate the environment, packages such as biopython must be selected to enable "import biopython" into the code.

It takes extra time each time.

nb_conda selects the image of the biopython package

selenium – ***** can not in ****** UBUNTU ******* but can in **** Anaconda **** or ***** Spyder ****** * *

If I write

def (t) driver:
import time
from the selenium import webdriver
from import by
from import WebDriverWait
from, import expected_conditions as CE
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.desired_capabilities, import DesiredCapabilities
from selenium.webdriver.firefox.options Import Options
since selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary (r / usr / bin / firefox / firefox / firefox & # 39;)
cap = DesiredCapabilities (). FIREFOX
cap["marionette"] = True
cap['binary'] = & # 39; / usr / bin / firefox & # 39;
path = "C: /Users/a.sakata/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc/LocalState/rootfs/usr/local/bin/geckodriver"
try again = 3
for i in the range (try again):
options = Options ()
options.headless = True
print ("first")
browser = webdriver.Firefox ()
print ("second")
with the exception of e:
time.sleep (i * 5)
browser.get (t)
return None
print (browser.page_source)
browser.quit ()

the result of Anaconda or Spyder was not a problem, but at UBUNTU, the result is

Message: Can not find a matching set of capabilities.

The geckodriver path for Windows is /path/to/geckodriver.exe
Linux is / path / to / geckodriver (not exe)

Why can not I reinstall

Can not create a virtual environment in Pycharm 2019.1 with anaconda 3

How to create a python virtual environment interpreter with Pycharm and Anaconda? The usual procedure does not work.

With the new Pycharm 2019.1 and Anaconda 3, I can not create a virtual environment as required by Jupyter notebooks. Pycharm 2019.1 can not find a version of pythonw.exe where it expects it to create a basic interpreter.

Following the usual procedure in Pycharm to create a virtual interpreter (and not a python interpreter of the environment)

File-> Settings-> Project Interpreter-> Add-> Virtual Page in pycharm

Lead to the window
Select new environment
Location –C: Users jackson PycharmProjects MyProject Venv
Python 3.7 Basic Interpreter c: users jackson AppData Local Continuum anaconda3 python.exe

Led to the following error

FileNotFoundError: [Errno 2] No file or directory of this type: C: Users jackson AppData Local Continuum anaconda3 lib venv scripts nt pythonw.exe & # 39;

The anaconda3 lib venv scripts

anaconda navigator can not navigate mac

I've already installed Anaconda, but I'm using this command in my terminal:
install -c menlo dlib
after dlib was installed, I could not open my Anaconda anymore.
I'm trying this commond in my terminal:
anaconda-navigator –reset
This shows:
Segmentation error: 11
I do not know what's going on and I do not know what that means. I've been looking for this error for a long time, but it's still not solved.
Help me, please!

Unusual anaconda import error

It all started when I tried to install Jupyter nbviewer. I will put a picture of the problem below:

Conda error

Now I can not use conda to install anything. I can not even open the Anaconda browser. Can any one offer his expertise in the matter?

anaconda – fatal error: Python.h: no file or directory of this type

I'm trying to install cocoapi but I do not have Python.h. I read that I had to install python-dev but I do not have sudo. Are there any others easy ways to get Python.h? Will I have Python.h if I install Anaconda?

(env_pytorch) haziq @ vita-workstation2: ~ / cocoapi / PythonAPI $ python3 install --user
currently being installed
launch bdist_egg
launch egg_info
write pycocotools.egg-info / PKG-INFO
write dependency_links to pycocotools.egg-info / dependency_links.txt
Writing requirements in pycocotools.egg-info / require.txt
write top-level names in pycocotools.egg-info / top_level.txt
read manifest file & pycocotools.egg-info / SOURCES.txt & # 39;
writing the manifest file pycocotools.egg-info / SOURCES.txt & # 39;
Installing the library code to build / bdist.linux-x86_64 / egg
run install_lib
running build_py
running build_ext
ignore the Cython extension & # 39; pycocotools / _mask.c & # 39; (up to date)
construction of the extension pycocotools._mask & # 39;
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror = format-security -Wdate-time -D_FORTIFY_SOURCE = 2 -fPIC -I / home / haziq / .local / lib / python3.7 / site-packages / numpy / core / include -I ../ common -I / usr / include / python3.7m-c ../common/maskApi.c -o build / temp.linux-x86_64-3.7 /../common/maskApi.o -Wno-cpp -Wno-in-function -std = c99
../common/maskApi.c: In the function & # 39; rleDecode & # 39 ;:
../common/maskApi.c:46:7: be careful: this clause "for" does not protect ... [-Wmisleading-indentation]
       for (k = 0; k <R[i].cnts[j]; k ++) * (M ++) = v; v =! v; }}
^ ~~
../common/maskApi.c:46:49: note: ... this statement, but this one is indented improperly as if it were kept by the "for"
for (k = 0; k <R[i].cnts[j]; k ++) * (M ++) = v; v =! v; }}
../common/maskApi.c: In the function & rt; rleFrPoly & # 39 ;:
../common/maskApi.c:166:3: beware: this clause "for" does not protect ... [-Wmisleading-indentation]
   for (j = 0; j <k; j ++) x[j]= (int) (scale * xy[j*2+0]+ 5); X[k]= x[0];
^ ~~
../common/maskApi.c:166:54: note: ... this statement, but this one is indented unduly as if it were kept by the "for"
for (j = 0; j <k; j ++) x[j]= (int) (scale * xy[j*2+0]+ 5); X[k]= x[0];
../common/maskApi.c:167:3: beware: this clause "for" does not protect ... [-Wmisleading-indentation]
   for (j = 0; j <k; j ++) y[j]= (int) (scale * xy[j*2+1]+ 5); there[k]= y[0];
^ ~~
../common/maskApi.c:167:54: note: ... this statement, but it is misleadingly indented as if it were kept by the "for"
for (j = 0; j2) x + = (long) cnts[m-2]; cnts[m++]= (uint) x;
^ ~
../common/maskApi.c:228:34: note: ... this statement, but it is misleadingly indented as if it were kept by the "if"
if (m> 2) x + = (long) cnts[m-2]; cnts[m++]= (uint) x;
^ ~~~
../common/maskApi.c: In the function & # 39; rleToBbox & # 39 ;:
../common/maskApi.c:141:31: Warning: 'xp' can be used uninitialized in this function [-Wmaybe-uninitialized]
       if (j% 2 == 0) xp = x; otherwise if (xp <x) {ys = 0; you = h-1; }
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror = format-security -Wdate-time -D_FORTIFY_SOURCE = 2 -fPIC -I / home / haziq / .local / lib / python3.7 / site-packages / numpy / core / include -I ../ common -I / usr / include / python3.7m -c pycocotools / _mask.c -o build / temp.linux -x86_64-3.7 / pycocotools / _mask.o -Wno-cpp -Wno-in-function -std = c99
pycocotools / _mask.c: 4: 10: fatal error: Python.h: no such file or directory
#include "Python.h"
^ ~~~~~~~~~~
compilation completed.
error: the command x86_64-linux-gnu-gcc & # 39; failed with exit status 1

python – Anaconda phyton syntax error

I have problems with a syntax error in jupyter anaconda 3, I use it to study python with the help of a video lesson, video lesson the instructor follows the 39, next exampleHe follows this example:but when i try to give this error: Fault:, have I tried other forms of indexing and failed, someone with more wisdom and experience to help me?