Tag Archives: County

[Solved] An unexpected error has occurred. Conda has prepared the above report.

Problem Description:

Error when using CONDA to create a virtual environment:

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

Solution:

Method (1): delete the .Condarc file

Method (2): CONDA clean - I

Method (3): after closing your VPN, restart your computer and continue to install the virtual environment

RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /opt/conda/conda-bld/

problem

RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /opt/conda/conda-bld/

solve

This problem is likely to be your CUDA number is wrong
for example, the variables you set use GPUs 2 and 3, but in fact you only have two GPUs 0 and 1, which will lead to this error.

ClobberError: The package ‘xxx‘ cannot be installed due to a path collision for ‘xx‘ This path alre

Original link: https://stackoverflow.com/questions/51217876/conda-update-anaconda-fails-clobbererror?newreg=2c51dd84b04b42c49294714471612f07

The reason for this problem is that the versions of related packages such as CONDA and pip are too low to be updated automatically. Solution: enter the following command on the command line:

conda clean --all
conda update --all

Python environment error, bad interpreter: there is no file or directory

[xxxx@gs-server-7214 ~]$ /opt/anaconda3/bin/jupyter notebook
-bash: /opt/anaconda3/bin/jupyter: /opt/anaconda3/bin/python: Bad interpreter: No that file or directory
[xxxx@gs-server-7214 ~]$ /opt/anaconda3/bin/python3
Python 3.6.10 |Anaconda, Inc.| (default, May  8 2020, 02:54:21)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[1]+  Stop               /opt/anaconda3/bin/python3

    1. create a soft connection
    1. Jupiter has been installed through

/opt/anaconda3/bin/python3 - M PIP install Jupiter

    1. , and python can also be started under the full path, but the error is reported as above when starting Jupiter under the full path. The reason is that the default interpreter path of anaconda is/opt/anaconda3/bin/python, but there is no such file, Create a soft connection Python to point to the actual interpreter Python 3.6, as follows

- & gt</ Code> indicates soft connection </ OL>

[xxxx@gs-server-7214 bin]$ ll |grep python
-rwxrwxr-x 1 root root      237 10月 24 2019 ipython
-rwxrwxr-x 1 root root      237 10月 24 2019 ipython3
lrwxrwxrwx 1 root root        9 7月  16 16:31 python -> python3.6
lrwxrwxrwx 1 root root        9 8月  28 2020 python3 -> python3.6
-rwxrwxr-x 1 root root 11947112 5月   8 2020 python3.6
lrwxrwxrwx 1 root root       17 8月  28 2020 python3.6-config -> python3.6m-config
lrwxrwxrwx 1 root root        9 8月  28 2020 python3.6m -> python3.6
-rwxrwxr-x 1 root root     3477 8月  28 2020 python3.6m-config
lrwxrwxrwx 1 root root       17 8月  28 2020 python3-config -> python3.6m-config

2. Set the environment variable
and modify the . Bash in your user directory_ Profile file, add environment variable, export path =/opt/anaconda3/bin: $path , colon is separatorsource .bash_ Profile makes the environment variable effective, so you can start jupyter by directly entering jupyter notebook in your user directory.

“ValueError: check_hostname requires server_hostname“ when trying to update conda

After updating CONDA, an error is reported:
valueerror: check_ hostname requires server_ Hostname
this is the problem of scientific Internet port.
Solutions:
1. Check the port number of Science Internet.
2. Add the port number in the. Condarc file.
Check where. Condarc is under windows.
windows:C:\users\username\,linux:/home/username/
3、pip install urllib3==1.25.11。
The contents of condarc file are as follows:

ssl_verify: true
show_channel_urls: true
report_errors: false

Add a piece of code below and modify it as follows:

ssl_verify: true
show_channel_urls: true
report_errors: false
proxy_servers: {http: 127.0.0.1:8888, https: 127.0.0.1:8888}

note that if you change the following 8888 to your own port number, the estimation of each port is different.