Anacondaで仮想環境が作れず困っております。
初めての質問で恐縮ですが、ご助力のほどよろしくお願いします。
実現したいこと
anacondaで仮想環境を作ろうとして、
Anaconda Prompt上で、以下のコマンドを実行しました。
conda create -n (仮想環境名) python=3.9
発生している問題・エラーメッセージ
**Proceed ([y]/n)? **が表示されたところでyを入力したところ、
以下のようなエラーが発生しています。
InvalidArchiveError("Error with archive C:\\Users\\(名前)\\.conda\\pkgs\\openssl-1.1.1q-h2bbff1b_0\\.cph_tmp64pjcjgd\\info-openssl-1.1.1q-h2bbff1b_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\(名前)\\.conda\\pkgs\\openssl-1.1.1q-h2bbff1b_0\\.cph_tmp64pjcjgd\\info-openssl-1.1.1q-h2bbff1b_0.tar.zst'") InvalidArchiveError("Error with archive C:\\Users\\(名前)\\.conda\\pkgs\\setuptools-63.4.1-py39haa95532_0\\.cph_tmpkgm5k4xw\\info-setuptools-63.4.1-py39haa95532_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\(名前)\\.conda\\pkgs\\setuptools-63.4.1-py39haa95532_0\\.cph_tmpkgm5k4xw\\info-setuptools-63.4.1-py39haa95532_0.tar.zst'") InvalidArchiveError("Error with archive C:\\Users\\(名前)\\.conda\\pkgs\\python-3.9.13-h6244533_1\\.cph_tmp7327g6la\\info-python-3.9.13-h6244533_1.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\(名前)\\.conda\\pkgs\\python-3.9.13-h6244533_1\\.cph_tmp7327g6la\\info-python-3.9.13-h6244533_1.tar.zst'") InvalidArchiveError("Error with archive C:\\Users\\(名前)\\.conda\\pkgs\\ca-certificates-2022.07.19-haa95532_0\\.cph_tmpghn5qsid\\info-ca-certificates-2022.07.19-haa95532_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\(名前)\\.conda\\pkgs\\ca-certificates-2022.07.19-haa95532_0\\.cph_tmpghn5qsid\\info-ca-certificates-2022.07.19-haa95532_0.tar.zst'") InvalidArchiveError("Error with archive C:\\Users\\(名前)\\.conda\\pkgs\\pip-22.2.2-py39haa95532_0\\.cph_tmpx763c0zj\\info-pip-22.2.2-py39haa95532_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\(名前)\\.conda\\pkgs\\pip-22.2.2-py39haa95532_0\\.cph_tmpx763c0zj\\info-pip-22.2.2-py39haa95532_0.tar.zst'") InvalidArchiveError("Error with archive C:\\Users\\(名前)\\.conda\\pkgs\\certifi-2022.9.14-py39haa95532_0\\.cph_tmpyfyt1oee\\info-certifi-2022.9.14-py39haa95532_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\(名前)\\.conda\\pkgs\\certifi-2022.9.14-py39haa95532_0\\.cph_tmpyfyt1oee\\info-certifi-2022.9.14-py39haa95532_0.tar.zst'") InvalidArchiveError("Error with archive C:\\Users\\(名前)\\.conda\\pkgs\\tzdata-2022c-h04d1e81_0\\.cph_tmpcjzy6i24\\info-tzdata-2022c-h04d1e81_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\(名前)\\.conda\\pkgs\\tzdata-2022c-h04d1e81_0\\.cph_tmpcjzy6i24\\info-tzdata-2022c-h04d1e81_0.tar.zst'") InvalidArchiveError("Error with archive C:\\Users\\(名前)\\.conda\\pkgs\\sqlite-3.39.3-h2bbff1b_0\\.cph_tmp32u_lgi1\\info-sqlite-3.39.3-h2bbff1b_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\(名前)\\.conda\\pkgs\\sqlite-3.39.3-h2bbff1b_0\\.cph_tmp32u_lgi1\\info-sqlite-3.39.3-h2bbff1b_0.tar.zst'")
試したこと
・C:\Users\(名前)\.conda配下のファイルを手動で削除した。
・Anaconda Promptでconda delete -allを実行してライブラリを削除した。
・環境変数でPythonの環境を変更し、C直下のフォルダを優先するようにした。
conda config --show envs_dirsの結果は以下の通り
(base) >conda config --show envs_dirs envs_dirs: - C:\anaconda3\envs - C:\Users\(名前)\.conda\envs - C:\Users\(名前)\AppData\Local\conda\conda\envs
補足情報(FW/ツールのバージョンなど)
・anacondaとpythonのバージョンは以下の通りです。
・anaconda3
・Python3.9
・C:\Users\(名前)の(名前)は日本語です。
・(追記)OSはWindows10です。
・**Proceed ([y]/n)? **が表示される前は以下の通りです。
Collecting package metadata (current_repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.12.0 latest version: 22.9.0 Please update conda by running $ conda update -n base -c defaults conda ## Package Plan ## environment location: C:\Users\(名前)\.conda\envs\(環境名) added / updated specs: - python=3.9 The following packages will be downloaded: package | build ---------------------------|----------------- ca-certificates-2022.07.19 | haa95532_0 123 KB certifi-2022.9.14 | py39haa95532_0 155 KB openssl-1.1.1q | h2bbff1b_0 4.8 MB pip-22.2.2 | py39haa95532_0 2.3 MB python-3.9.13 | h6244533_1 17.1 MB setuptools-63.4.1 | py39haa95532_0 1.0 MB sqlite-3.39.3 | h2bbff1b_0 804 KB tzdata-2022c | h04d1e81_0 107 KB ------------------------------------------------------------ Total: 26.4 MB The following NEW packages will be INSTALLED: ca-certificates pkgs/main/win-64::ca-certificates-2022.07.19-haa95532_0 certifi pkgs/main/win-64::certifi-2022.9.14-py39haa95532_0 openssl pkgs/main/win-64::openssl-1.1.1q-h2bbff1b_0 pip pkgs/main/win-64::pip-22.2.2-py39haa95532_0 python pkgs/main/win-64::python-3.9.13-h6244533_1 setuptools pkgs/main/win-64::setuptools-63.4.1-py39haa95532_0 sqlite pkgs/main/win-64::sqlite-3.39.3-h2bbff1b_0 tzdata pkgs/main/noarch::tzdata-2022c-h04d1e81_0 vc pkgs/main/win-64::vc-14.2-h21ff451_1 vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2 wheel pkgs/main/noarch::wheel-0.37.1-pyhd3eb1b0_0 wincertstore pkgs/main/win-64::wincertstore-0.2-py39haa95532_2

回答2件
あなたの回答
tips
プレビュー