LoginSignup
47
31

More than 3 years have passed since last update.

anacondaでconda createを実行しようとすると「 Solving environment: failed 」と出て実行できなかった

Last updated at Posted at 2019-01-23

環境

Windows10 64bit
anaconda3(2018.12)

解決法

anacondaディレクトリ内の\Library\binをpathに追加するだけ

至るまでの経緯

anacondaをインストールして機械学習用の環境を構築しようと思い、他記事を参考にcreateコマンドを打ってみた所以下のエラーが発生


>conda create -n deep python=3.5 anaconda
Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/pro/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/pro/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))

エラー文でググってみると、sslを無効にすれば出来ただとかcondaをアップデートしろだとか出てきたが行っても解決せず
(condaに至ってはupdateコマンド打っても同様のエラー発生で実行できない)

困り果てながら探していると以下のコメントを発見
https://github.com/conda/conda/issues/6064#issuecomment-453147166

言われるがままにpathへ追加した後コマンドを打ち込むと成功


>conda create -n deep python=3.5 anaconda
Solving environment: done

## Package Plan ##

  environment location: C:\Users\[ユーザ名]\Anaconda3\envs\deep

  added / updated specs:
    - anaconda
    - python=3.5


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    pylint-1.8.4               |           py35_0         779 KB
…以下略

わぁいやったぁ

47
31
5

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
47
31