我在为Anaconda设置时遇到麻烦。我想使用Anaconda为R安装keras。但是当我尝试安装TensorFlow(使用Anaconda)时,它说发生了冲突。我发现这是因为TensorFlow不支持我的python版本(3.7)。
所以我试图更改Anaconda使用的python版本。
我用这个:
conda install python=3.5.0
但是发生错误
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/free/win-64/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
我尝试将我的conda ssl_verify变量设置为false,因为我在这里找到了 https://github.com/conda/conda/issues/6007
我重新启动计算机,然后什么都没改变。
所以我尝试安装最新版本的SSL。但是什么也没有改变。
我不认为这是我的网络配置,因为我尝试使用移动数据和wifi,但是它没有任何改变。
C:\ProgramData\Anaconda3\Scripts>conda config --show
add_anaconda_token: True
add_pip_as_python_dependency: True
aggressive_update_packages:
- ca-certificates
- certifi
- openssl
allow_non_channel_urls: True
allow_softlinks: True
always_copy: False
always_softlink: False
always_yes: None
anaconda_upload: None
auto_update_conda: True
changeps1: True
channel_alias: https://conda.anaconda.org
channel_priority: True
channels:
- defaults
client_ssl_cert: None
client_ssl_cert_key: None
clobber: False
create_default_packages: []
custom_channels:
pkgs/main: https://repo.anaconda.com
pkgs/free: https://repo.anaconda.com
pkgs/r: https://repo.anaconda.com
pkgs/pro: https://repo.anaconda.com
pkgs/msys2: https://repo.anaconda.com
C:/Users/Sylvain/conda-bld: file://
custom_multichannels:
defaults: ["https://repo.anaconda.com/pkgs/main", "https://repo.anaconda.com/pkgs/free", "https://repo.anaconda.com/pkgs/r", "https://repo.anaconda.com/pkgs/pro", "https://repo.anaconda.com/pkgs/msys2"]
local: ["file:///C:/Users/Sylvain/conda-bld"]
default_channels:
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/free
- https://repo.anaconda.com/pkgs/r
- https://repo.anaconda.com/pkgs/pro
- https://repo.anaconda.com/pkgs/msys2
disallowed_packages: []
download_only: False
envs_dirs:
- C:\Users\Sylvain\AppData\Local\conda\conda\envs
- C:\ProgramData\Anaconda3\envs
- C:\Users\Sylvain\.conda\envs
extra_safety_checks: False
force: False
json: False
local_repodata_ttl: 1
max_shlvl: 2
migrated_channel_aliases: []
no_dependencies: False
non_admin_enabled: True
notify_outdated_conda: True
offline: False
override_channels_enabled: True
path_conflict: clobber
pinned_packages: []
pkgs_dirs:
- C:\ProgramData\Anaconda3\pkgs
- C:\Users\Sylvain\AppData\Local\conda\conda\pkgs
proxy_servers: {}
quiet: False
remote_connect_timeout_secs: 9.15
remote_max_retries: 3
remote_read_timeout_secs: 60.0
report_errors: None
rollback_enabled: True
safety_checks: warn
shortcuts: True
show_channel_urls: None
ssl_verify: False
track_features: []
use_index_cache: False
use_pip: True
verbosity: 0
whitelist_channels: []
谢谢!
答案 0 :(得分:0)
已修复:
我将Anaconda降级为3.5,这与Anaconda 2018和Windows 10冲突。 也许不是最好的方法,但是斋戒一个!