user@user-B85M-D2V:~$ conda create --name tf python=3.6
Solving environment: failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 819, in __call__
return func(*args, **kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 78, in _main
exit_code = do_call(args, p)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 77, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/cli/main_create.py", line 11, in execute
install(args, parser, 'create')
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 235, in install
force_reinstall=context.force,
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 518, in solve_for_transaction
force_remove, force_reinstall)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 451, in solve_for_diff
final_precs = self.solve_final_state(deps_modifier, prune, ignore_pinned, force_remove)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 180, in solve_final_state
index, r = self._prepare(prepared_specs)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 592, in _prepare
self.subdirs, prepared_specs)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 215, in get_reduced_index
new_records = query_all(spec)
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/index.py", line 184, in query_all
return tuple(concat(future.result() for future in as_completed(futures)))
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 95, in query
self.load()
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 149, in load
_internal_state = self._load()
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 227, in _load
mod_etag_headers.get('_mod'))
File "/home/user/anaconda3/lib/python3.7/site-packages/conda/core/subdir_data.py", line 437, in fetch_repodata_remote_request
timeout=timeout)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 412, in send
conn = self.get_connection(request.url, proxies)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 309, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "/home/user/anaconda3/lib/python3.7/site-packages/requests/adapters.py", line 189, in proxy_manager_for
**proxy_kwargs
File "/home/user/anaconda3/lib/python3.7/site-packages/urllib3/contrib/socks.py", line 173, in __init__
"Unable to determine SOCKS version from %s" % proxy_url
ValueError: Unable to determine SOCKS version from socks://127.0.0.1:1080/
`$ /home/user/anaconda3/bin/conda create --name tf python=3.6`
environment variables:
ALL_PROXY=
CIO_TEST=
CONDA_DEFAULT_ENV=base
CONDA_EXE=/home/user/anaconda3/bin/conda
CONDA_PREFIX=/home/user/anaconda3
CONDA_PROMPT_MODIFIER=
CONDA_PYTHON_EXE=/home/user/anaconda3/bin/python
CONDA_ROOT=/home/user/anaconda3
CONDA_SHLVL=1
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
NO_PROXY=
PATH=/home/user/anaconda3/bin:/home/user/bin:/home/user/.local/bin:/usr/loc
al/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/l
ocal/games:/snap/bin:/usr/local/cuda-9.0/bin
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
all_proxy=
no_proxy=
socks_proxy=
active environment : base
active env location : /home/user/anaconda3
shell level : 1
user config file : /home/user/.condarc
populated config files :
conda version : 4.5.12
conda-build version : 3.17.6
python version : 3.7.1.final.0
base environment : /home/user/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /home/user/anaconda3/pkgs
/home/user/.conda/pkgs
envs directories : /home/user/anaconda3/envs
/home/user/.conda/envs
platform : linux-64
user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Linux/4.15.0-48-generic ubuntu/16.04 glibc/2.23
UID:GID : 1000:1000
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]:
No report sent. To permanently opt-out, use
$ conda config --set report_errors false
如上所示,无论怎么都是出现这个错误,结果发现是挂了(V–P--n)的原因,关了软件,并且关闭网路代理,并应用到这个系统就好了。