Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miniconda install fails: Failed to link extracted packages to [install path] #13386

Open
5 of 8 tasks
morrisseyj opened this issue May 13, 2024 · 13 comments
Open
5 of 8 tasks
Labels

Comments

@morrisseyj
Copy link

Checklist

  • I added a descriptive title.
  • I searched through existing issues and couldn't find a solution or duplicate issue.
  • I searched on the web (e.g. Google) and didn't find any helpful information.
  • I searched the Anaconda documentation and didn't find any helpful information.

Impacted product

  • A conda package (built by Anaconda)
  • Anaconda Distribution (formerly Anaconda Individual Edition)
  • Miniconda
  • Anaconda.org

What happened?

This is a follow up post to issues I had installing Miniconda (from here: ).

Installing on Win 11, using the 3.11 installer, i get the following error dialogue: Failed to link extracted packages to [install path]. I have looked through this solution (#13182), which indicates you should create .conda or .condarc folders in your user profile. I tried this:

  1. .conda was already in C:\Users\[user]
  2. Tried deleting all its contents
  3. Tried creating .condarc in C:\Users\[user]
  4. Tried creating .condarc in C:\Users\[user]\AppData\Local\miniconda3 - can't do this as the install complains if this folder exists prior to install.

None of this worked. Following the instructions from the prior thread (#13381 (comment)) i abort rather than ignoring the issue. Notably, the installer just seems to hang after this, saying the "Setup was not completed successfully.", but not removing the directory: C:\Users\[user]\AppData\Local\miniconda3. Eventually i hit cancel.

I am looking to install for "Just Me". I am not setting python 3.11 as my default.

Image of the error is attached.

Screenshot 2024-05-13 084045

Expected behavior or outcome

Miniconda installer completes and Miniconda installs. If i abort the install, the dialogue completes and files installed to this point are removed.

Conda info

No installation complete so i can't run this.

Conda config

NA

Conda list

NA

Additional information

No response

@marcoesters
Copy link

Can you re-run the installer and click on "Show details", copy the contents of the log you see, and post them here?

You can go ahead and just remove the miniconda3 directory prior to installing.

I noticed that you are installing into into AppData\Local\miniconda3. Another thing to try is to keep the default path, i.e., C:\Users\[user]\miniconda3.

@morrisseyj
Copy link
Author

@marcoesters Thanks again for the follow-up.

Tried installing to C:\Users\[user]\miniconda3 (though i note that the path i was using previously was being populated by the installer by default).

Below is a copy of the install info:

Output folder: C:\Users\jmorrissey\miniconda3\Lib
Extract: _nsis.py
Extract: _system_path.py
Output folder: C:\Users\jmorrissey\miniconda3\conda-meta
Extract: history
Output folder: C:\Users\jmorrissey\miniconda3
Extract: _conda.exe
Extract: pre_uninstall.bat
Output folder: C:\Users\jmorrissey\miniconda3
Output folder: C:\Users\jmorrissey\miniconda3\pkgs
Extract: urls
Extract: urls.txt
Extract: post_install.bat
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\cache
Extract: 3e39a7aa.json
Extract: 4ea078d6.json
Extract: 59ba4880.json
Extract: 5ca77eed.json
Extract: 920c960f.json
Extract: c4a505b4.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\anaconda-anon-usage-0.4.4-py312hfc23b7f_100\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\archspec-0.2.3-pyhd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\boltons-23.0.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\brotli-python-1.0.9-py312hd77b12b_7\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\bzip2-1.0.8-h2bbff1b_5\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\ca-certificates-2024.3.11-haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\certifi-2024.2.2-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\cffi-1.16.0-py312h2bbff1b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\charset-normalizer-2.0.4-pyhd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\colorama-0.4.6-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\conda-24.3.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\conda-content-trust-0.2.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\conda-libmamba-solver-24.1.0-pyhd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\conda-package-handling-2.2.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\conda-package-streaming-0.9.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\console_shortcut_miniconda-0.1.1-haa95532_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\cryptography-42.0.5-py312h89fc84f_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\distro-1.8.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\expat-2.5.0-hd77b12b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\fmt-9.1.0-h6d14046_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\idna-3.4-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\jsonpatch-1.33-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\jsonpointer-2.1-pyhd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\libarchive-3.6.2-hb62f4d4_2\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\libcurl-8.5.0-h86230a5_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\libffi-3.4.4-hd77b12b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\libiconv-1.16-h2bbff1b_2\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\libmamba-1.5.8-h99b1521_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\libmambapy-1.5.8-py312h77c03ed_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\libsolv-0.7.24-h23ce68f_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\libssh2-1.10.0-he2ea4bf_2\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\libxml2-2.10.4-h0ad7f3c_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\lz4-c-1.9.4-h2bbff1b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\menuinst-2.0.2-py312hd77b12b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\openssl-3.0.13-h2bbff1b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\packaging-23.2-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\pcre2-10.42-h0ff8eda_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\pip-23.3.1-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\platformdirs-3.10.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\pluggy-1.0.0-py312haa95532_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\powershell_shortcut_miniconda-0.0.1-haa95532_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\pybind11-abi-4-hd3eb1b0_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\pycosat-0.6.6-py312h2bbff1b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\pycparser-2.21-pyhd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\pysocks-1.7.1-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\python-3.12.2-h1d929f7_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\reproc-14.2.4-hd77b12b_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\reproc-cpp-14.2.4-hd77b12b_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\requests-2.31.0-py312haa95532_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\ruamel.yaml-0.17.21-py312h2bbff1b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\setuptools-68.2.2-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\sqlite-3.41.2-h2bbff1b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\tk-8.6.12-h2bbff1b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\tqdm-4.65.0-py312hfc267ef_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\truststore-0.8.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\tzdata-2024a-h04d1e81_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\urllib3-2.1.0-py312haa95532_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\vc-14.2-h21ff451_1\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\vs2015_runtime-14.27.29016-h5e58377_2\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\wheel-0.41.2-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\win_inet_pton-1.1.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\xz-5.4.6-h8cc25b3_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\yaml-cpp-0.8.0-hd77b12b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\zlib-1.2.13-h8cc25b3_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\zstandard-0.19.0-py312h2bbff1b_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs\zstd-1.5.5-hd43e919_0\info
Extract: repodata_record.json
Output folder: C:\Users\jmorrissey\miniconda3\pkgs
Extract: python-3.12.2-h1d929f7_0.conda
Extract: ca-certificates-2024.3.11-haa95532_0.conda
Extract: pybind11-abi-4-hd3eb1b0_1.conda
Extract: tzdata-2024a-h04d1e81_0.conda
Extract: vs2015_runtime-14.27.29016-h5e58377_2.conda
Extract: vc-14.2-h21ff451_1.conda
Extract: bzip2-1.0.8-h2bbff1b_5.conda
Extract: expat-2.5.0-hd77b12b_0.conda
Extract: fmt-9.1.0-h6d14046_0.conda
Extract: libffi-3.4.4-hd77b12b_0.conda
Extract: libiconv-1.16-h2bbff1b_2.conda
Extract: lz4-c-1.9.4-h2bbff1b_0.conda
Extract: openssl-3.0.13-h2bbff1b_0.conda
Extract: reproc-14.2.4-hd77b12b_1.conda
Extract: sqlite-3.41.2-h2bbff1b_0.conda
Extract: tk-8.6.12-h2bbff1b_0.conda
Extract: xz-5.4.6-h8cc25b3_0.conda
Extract: yaml-cpp-0.8.0-hd77b12b_0.conda
Extract: zlib-1.2.13-h8cc25b3_0.conda
Extract: libssh2-1.10.0-he2ea4bf_2.conda
Extract: libxml2-2.10.4-h0ad7f3c_1.conda
Extract: pcre2-10.42-h0ff8eda_0.conda
Extract: reproc-cpp-14.2.4-hd77b12b_1.conda
Extract: zstd-1.5.5-hd43e919_0.conda
Extract: libarchive-3.6.2-hb62f4d4_2.conda
Extract: libcurl-8.5.0-h86230a5_0.conda
Extract: libsolv-0.7.24-h23ce68f_0.conda
Extract: menuinst-2.0.2-py312hd77b12b_0.conda
Extract: anaconda-anon-usage-0.4.4-py312hfc23b7f_100.conda
Extract: archspec-0.2.3-pyhd3eb1b0_0.conda
Extract: boltons-23.0.0-py312haa95532_0.conda
Extract: brotli-python-1.0.9-py312hd77b12b_7.conda
Extract: certifi-2024.2.2-py312haa95532_0.conda
Extract: charset-normalizer-2.0.4-pyhd3eb1b0_0.conda
Extract: colorama-0.4.6-py312haa95532_0.conda
Extract: console_shortcut_miniconda-0.1.1-haa95532_1.conda
Extract: distro-1.8.0-py312haa95532_0.conda
Extract: idna-3.4-py312haa95532_0.conda
Extract: libmamba-1.5.8-h99b1521_1.conda
Extract: packaging-23.2-py312haa95532_0.conda
Extract: platformdirs-3.10.0-py312haa95532_0.conda
Extract: pluggy-1.0.0-py312haa95532_1.conda
Extract: powershell_shortcut_miniconda-0.0.1-haa95532_1.conda
Extract: pycosat-0.6.6-py312h2bbff1b_0.conda
Extract: ruamel.yaml-0.17.21-py312h2bbff1b_0.conda
Extract: setuptools-68.2.2-py312haa95532_0.conda
Extract: truststore-0.8.0-py312haa95532_0.conda
Extract: wheel-0.41.2-py312haa95532_0.conda
Extract: win_inet_pton-1.1.0-py312haa95532_0.conda
Extract: libmambapy-1.5.8-py312h77c03ed_1.conda
Extract: pip-23.3.1-py312haa95532_0.conda
Extract: pysocks-1.7.1-py312haa95532_0.conda
Extract: tqdm-4.65.0-py312hfc267ef_0.conda
Extract: urllib3-2.1.0-py312haa95532_1.conda
Extract: requests-2.31.0-py312haa95532_1.conda
Extract: conda-libmamba-solver-24.1.0-pyhd3eb1b0_0.conda
Extract: jsonpointer-2.1-pyhd3eb1b0_0.conda
Extract: jsonpatch-1.33-py312haa95532_0.conda
Extract: pycparser-2.21-pyhd3eb1b0_0.conda
Extract: cffi-1.16.0-py312h2bbff1b_0.conda
Extract: cryptography-42.0.5-py312h89fc84f_0.conda
Extract: zstandard-0.19.0-py312h2bbff1b_0.conda
Extract: conda-content-trust-0.2.0-py312haa95532_0.conda
Extract: conda-package-streaming-0.9.0-py312haa95532_0.conda
Extract: conda-package-handling-2.2.0-py312haa95532_0.conda
Extract: conda-24.3.0-py312haa95532_0.conda
Setting up the base environment ...
Output folder: C:\Users\jmorrissey\miniconda3\pkgs
Extract: env.txt
Output folder: C:\Users\jmorrissey\miniconda3\conda-meta
Extract: history
Installing packages for base, creating shortcuts if necessary...

Downloading and Extracting Packages: ...working... done

Downloading and Extracting Packages: ...working... done
Preparing transaction: ...working... done
Executing transaction: ...working... done
Rolling back transaction: ...working... done

[WinError 5] Access is denied
()

::error:: Failed to link extracted packages to C:\Users\jmorrissey\miniconda3!

@marcoesters
Copy link

Tried installing to C:\Users[user]\miniconda3 (though i note that the path i was using previously was being populated by the installer by default).

That is good information, I will keep that in mind. It tells me that the installer thinks you are part of a Windows domain. If that's the case, there may be some restriction by your administrator.

I assume from the output that the %USERPROFILE%\miniconda3 directory contains a _conda.exe file. Can you open a command prompt run:

%USERPROFILE%\miniconda3\_conda.exe create -y -p %USERPROFILE%\conda_testenv conda

This will try to create an isolated conda environment inside C:\Users\[user]\conda_testenv - and hopefully give us a more descriptive error to look at.

@morrisseyj
Copy link
Author

Yes, the installer has it correct. I am on a windows domain. I have managed to get admin privileges, however, and when i run the installer as administrator i still get the error: [WinError 5] Access is denied

Looking in C:\Users\[user]\miniconda3 - following an aborted install to that location - I see _conda.exe. Running C:\Users\[user]>miniconda3\_conda.exe -y -p [user]\conda_testenv conda in the command prompt, yields the following:

usage: _conda.exe [-h] [-v] [--no-plugins] [-V] COMMAND ...
_conda.exe: error: argument COMMAND: invalid choice: 'jmorrissey\\conda_testenv' (choose from 'activate', 'deactivate', 'clean', 'compare', 'config', 'create', 'env', 'info', 'init', 'install', 'list', 'notices', 'package', 'remove', 'uninstall', 'rename', 'run', 'search', 'update', 'upgrade', 'doctor', 'repoquery')

So it looks like its working. Let me know what i should try next.

Thanks again for the help.

@marcoesters
Copy link

marcoesters commented May 14, 2024

It looks like you're missing the create in the command. You can just copy and paste the command I wrote - it should work as is. %USERPROFILE% resolves to C:\Users\[user].

@morrisseyj
Copy link
Author

My apologies. Running the command yields:

Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\jmorrissey\conda_testenv

  added / updated specs:
    - conda


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    archspec-0.2.3             |     pyhd3eb1b0_0          47 KB
    boltons-23.0.0             |  py312haa95532_0         469 KB
    brotli-python-1.0.9        |  py312hd77b12b_8         346 KB
    bzip2-1.0.8                |       h2bbff1b_6          90 KB
    ca-certificates-2024.3.11  |       haa95532_0         128 KB
    certifi-2024.2.2           |  py312haa95532_0         161 KB
    cffi-1.16.0                |  py312h2bbff1b_1         306 KB
    charset-normalizer-2.0.4   |     pyhd3eb1b0_0          35 KB
    colorama-0.4.6             |  py312haa95532_0          53 KB
    conda-24.5.0               |  py312haa95532_0         1.2 MB
    conda-libmamba-solver-24.1.0|     pyhd3eb1b0_0          39 KB
    conda-package-handling-2.2.0|  py312haa95532_1         302 KB
    conda-package-streaming-0.9.0|  py312haa95532_0          32 KB
    distro-1.9.0               |  py312haa95532_0          61 KB
    expat-2.6.2                |       hd77b12b_0         260 KB
    fmt-9.1.0                  |       h6d14046_1         200 KB
    frozendict-2.4.2           |  py312haa95532_0          38 KB
    idna-3.7                   |  py312haa95532_0         133 KB
    jsonpatch-1.33             |  py312haa95532_1          61 KB
    jsonpointer-2.1            |     pyhd3eb1b0_0           9 KB
    libarchive-3.6.2           |       hb62f4d4_3         1.8 MB
    libcurl-8.7.1              |       h86230a5_0         359 KB
    libffi-3.4.4               |       hd77b12b_1         122 KB
    libiconv-1.16              |       h2bbff1b_3         685 KB
    libmamba-1.5.8             |       h99b1521_2         3.9 MB
    libmambapy-1.5.8           |  py312h77c03ed_2         388 KB
    libsolv-0.7.24             |       h23ce68f_1         465 KB
    libssh2-1.11.0             |       h291bd65_0         285 KB
    libxml2-2.10.4             |       h0ad7f3c_2         2.9 MB
    lz4-c-1.9.4                |       h2bbff1b_1         152 KB
    menuinst-2.0.2             |  py312hd77b12b_1         135 KB
    openssl-3.0.13             |       h2bbff1b_1         7.5 MB
    packaging-23.2             |  py312haa95532_0         171 KB
    pcre2-10.42                |       h0ff8eda_1         728 KB
    pip-24.0                   |  py312haa95532_0         3.5 MB
    platformdirs-3.10.0        |  py312haa95532_0          37 KB
    pluggy-1.0.0               |  py312haa95532_1          32 KB
    pybind11-abi-5             |       hd3eb1b0_0          14 KB
    pycosat-0.6.6              |  py312h2bbff1b_1          89 KB
    pycparser-2.21             |     pyhd3eb1b0_0          94 KB
    pysocks-1.7.1              |  py312haa95532_0          34 KB
    python-3.12.3              |       h1d929f7_1        16.3 MB
    reproc-14.2.4              |       hd77b12b_2          40 KB
    reproc-cpp-14.2.4          |       hd77b12b_2          34 KB
    requests-2.31.0            |  py312haa95532_1         122 KB
    ruamel.yaml-0.17.21        |  py312h2bbff1b_0         236 KB
    setuptools-69.5.1          |  py312haa95532_0         1.3 MB
    sqlite-3.45.3              |       h2bbff1b_0         973 KB
    tk-8.6.14                  |       h0416ee5_0         3.5 MB
    tqdm-4.66.2                |  py312hfc267ef_0         188 KB
    truststore-0.8.0           |  py312haa95532_0          44 KB
    tzdata-2024a               |       h04d1e81_0         116 KB
    urllib3-2.2.1              |  py312haa95532_0         225 KB
    vc-14.2                    |       h21ff451_1           8 KB
    vs2015_runtime-14.27.29016 |       h5e58377_2        1007 KB
    wheel-0.43.0               |  py312haa95532_0         167 KB
    win_inet_pton-1.1.0        |  py312haa95532_0          10 KB
    xz-5.4.6                   |       h8cc25b3_1         609 KB
    yaml-cpp-0.8.0             |       hd77b12b_1         2.1 MB
    zlib-1.2.13                |       h8cc25b3_1         131 KB
    zstandard-0.22.0           |  py312h3469f8a_0         355 KB
    zstd-1.5.5                 |       hd43e919_2         720 KB
    ------------------------------------------------------------
                                           Total:        55.2 MB

The following NEW packages will be INSTALLED:

  archspec           pkgs/main/noarch::archspec-0.2.3-pyhd3eb1b0_0
  boltons            pkgs/main/win-64::boltons-23.0.0-py312haa95532_0
  brotli-python      pkgs/main/win-64::brotli-python-1.0.9-py312hd77b12b_8
  bzip2              pkgs/main/win-64::bzip2-1.0.8-h2bbff1b_6
  ca-certificates    pkgs/main/win-64::ca-certificates-2024.3.11-haa95532_0
  certifi            pkgs/main/win-64::certifi-2024.2.2-py312haa95532_0
  cffi               pkgs/main/win-64::cffi-1.16.0-py312h2bbff1b_1
  charset-normalizer pkgs/main/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0
  colorama           pkgs/main/win-64::colorama-0.4.6-py312haa95532_0
  conda              pkgs/main/win-64::conda-24.5.0-py312haa95532_0
  conda-libmamba-so~ pkgs/main/noarch::conda-libmamba-solver-24.1.0-pyhd3eb1b0_0
  conda-package-han~ pkgs/main/win-64::conda-package-handling-2.2.0-py312haa95532_1
  conda-package-str~ pkgs/main/win-64::conda-package-streaming-0.9.0-py312haa95532_0
  distro             pkgs/main/win-64::distro-1.9.0-py312haa95532_0
  expat              pkgs/main/win-64::expat-2.6.2-hd77b12b_0
  fmt                pkgs/main/win-64::fmt-9.1.0-h6d14046_1
  frozendict         pkgs/main/win-64::frozendict-2.4.2-py312haa95532_0
  idna               pkgs/main/win-64::idna-3.7-py312haa95532_0
  jsonpatch          pkgs/main/win-64::jsonpatch-1.33-py312haa95532_1
  jsonpointer        pkgs/main/noarch::jsonpointer-2.1-pyhd3eb1b0_0
  libarchive         pkgs/main/win-64::libarchive-3.6.2-hb62f4d4_3
  libcurl            pkgs/main/win-64::libcurl-8.7.1-h86230a5_0
  libffi             pkgs/main/win-64::libffi-3.4.4-hd77b12b_1
  libiconv           pkgs/main/win-64::libiconv-1.16-h2bbff1b_3
  libmamba           pkgs/main/win-64::libmamba-1.5.8-h99b1521_2
  libmambapy         pkgs/main/win-64::libmambapy-1.5.8-py312h77c03ed_2
  libsolv            pkgs/main/win-64::libsolv-0.7.24-h23ce68f_1
  libssh2            pkgs/main/win-64::libssh2-1.11.0-h291bd65_0
  libxml2            pkgs/main/win-64::libxml2-2.10.4-h0ad7f3c_2
  lz4-c              pkgs/main/win-64::lz4-c-1.9.4-h2bbff1b_1
  menuinst           pkgs/main/win-64::menuinst-2.0.2-py312hd77b12b_1
  openssl            pkgs/main/win-64::openssl-3.0.13-h2bbff1b_1
  packaging          pkgs/main/win-64::packaging-23.2-py312haa95532_0
  pcre2              pkgs/main/win-64::pcre2-10.42-h0ff8eda_1
  pip                pkgs/main/win-64::pip-24.0-py312haa95532_0
  platformdirs       pkgs/main/win-64::platformdirs-3.10.0-py312haa95532_0
  pluggy             pkgs/main/win-64::pluggy-1.0.0-py312haa95532_1
  pybind11-abi       pkgs/main/noarch::pybind11-abi-5-hd3eb1b0_0
  pycosat            pkgs/main/win-64::pycosat-0.6.6-py312h2bbff1b_1
  pycparser          pkgs/main/noarch::pycparser-2.21-pyhd3eb1b0_0
  pysocks            pkgs/main/win-64::pysocks-1.7.1-py312haa95532_0
  python             pkgs/main/win-64::python-3.12.3-h1d929f7_1
  reproc             pkgs/main/win-64::reproc-14.2.4-hd77b12b_2
  reproc-cpp         pkgs/main/win-64::reproc-cpp-14.2.4-hd77b12b_2
  requests           pkgs/main/win-64::requests-2.31.0-py312haa95532_1
  ruamel.yaml        pkgs/main/win-64::ruamel.yaml-0.17.21-py312h2bbff1b_0
  setuptools         pkgs/main/win-64::setuptools-69.5.1-py312haa95532_0
  sqlite             pkgs/main/win-64::sqlite-3.45.3-h2bbff1b_0
  tk                 pkgs/main/win-64::tk-8.6.14-h0416ee5_0
  tqdm               pkgs/main/win-64::tqdm-4.66.2-py312hfc267ef_0
  truststore         pkgs/main/win-64::truststore-0.8.0-py312haa95532_0
  tzdata             pkgs/main/noarch::tzdata-2024a-h04d1e81_0
  urllib3            pkgs/main/win-64::urllib3-2.2.1-py312haa95532_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/win-64::wheel-0.43.0-py312haa95532_0
  win_inet_pton      pkgs/main/win-64::win_inet_pton-1.1.0-py312haa95532_0
  xz                 pkgs/main/win-64::xz-5.4.6-h8cc25b3_1
  yaml-cpp           pkgs/main/win-64::yaml-cpp-0.8.0-hd77b12b_1
  zlib               pkgs/main/win-64::zlib-1.2.13-h8cc25b3_1
  zstandard          pkgs/main/win-64::zstandard-0.22.0-py312h3469f8a_0
  zstd               pkgs/main/win-64::zstd-1.5.5-hd43e919_2



Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Rolling back transaction: done

[WinError 5] Access is denied
()

@marcoesters
Copy link

Do you have any anti-virus software or something similar on your computer? If so, which one?

You clearly have the correct permissions to write into %USERPROFILE% - otherwise the %USERPROFILE%\miniconda3 wouldn't exist.

@morrisseyj
Copy link
Author

Yes, we have something running - but that is managed by IT. Its a combination of Carbon Black and Windows Defender.

Is there any way to work out what file or permission is being blocked so i can take it to Carbon Black for troubleshooting?

@marcoesters
Copy link

I don't know anything about Carbon Black, unfortunately, but I assume that there are logs with Carbon Black. You may want to ask your IT team to see if they can access them for you or if there are local logs somewhere.

Some of these programs are known to trip over conda occasionally, so it's a real possibility that Carbon Black prevents the installation from proceeding.

@pspmoe
Copy link

pspmoe commented Jul 16, 2024

I don't know anything about Carbon Black, unfortunately, but I assume that there are logs with Carbon Black. You may want to ask your IT team to see if they can access them for you or if there are local logs somewhere.不幸的是,我对炭黑一无所知,但我假设有带有炭黑的原木。您可能需要询问您的 IT 团队,看看他们是否可以为您访问它们,或者某处是否有本地日志。

Some of these programs are known to trip over conda occasionally, so it's a real possibility that Carbon Black prevents the installation from proceeding.据了解,其中一些程序偶尔会发生 conda 错误,因此 Carbon Black 很可能会阻止安装继续进行。

I had the same problem. I only had Windows Defender on my computer, and it was turned off.

It doesn't seem to be an issue with the antivirus software.

Output folder: C:\ProgramData\miniconda3\Lib
Extract: _nsis.py
Extract: _system_path.py
Output folder: C:\ProgramData\miniconda3\conda-meta
Extract: history
Output folder: C:\ProgramData\miniconda3
Extract: _conda.exe
Extract: pre_uninstall.bat
Output folder: C:\ProgramData\miniconda3\pkgs
Extract: urls
Extract: urls.txt
Extract: post_install.bat
Output folder: C:\ProgramData\miniconda3\pkgs\cache
Extract: 3e39a7aa.json
Extract: 4ea078d6.json
Extract: 59ba4880.json
Extract: 5ca77eed.json
Extract: 920c960f.json
Extract: c4a505b4.json
Output folder: C:\ProgramData\miniconda3\pkgs
Output folder: C:\ProgramData\miniconda3\pkgs\anaconda-anon-usage-0.4.4-py312hfc23b7f_100\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\archspec-0.2.3-pyhd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\boltons-23.0.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\brotli-python-1.0.9-py312hd77b12b_8\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\bzip2-1.0.8-h2bbff1b_6\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\ca-certificates-2024.3.11-haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\certifi-2024.6.2-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\cffi-1.16.0-py312h2bbff1b_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\charset-normalizer-2.0.4-pyhd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\colorama-0.4.6-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\conda-24.5.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\conda-content-trust-0.2.0-py312haa95532_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\conda-libmamba-solver-24.1.0-pyhd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\conda-package-handling-2.3.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\conda-package-streaming-0.10.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\console_shortcut_miniconda-0.1.1-haa95532_2\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\cryptography-42.0.5-py312h89fc84f_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\distro-1.9.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\expat-2.6.2-hd77b12b_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\fmt-9.1.0-h6d14046_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\frozendict-2.4.2-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\idna-3.7-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\jsonpatch-1.33-py312haa95532_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\jsonpointer-2.1-pyhd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\libarchive-3.6.2-hb62f4d4_3\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\libcurl-8.7.1-h86230a5_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\libffi-3.4.4-hd77b12b_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\libiconv-1.16-h2bbff1b_3\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\libmamba-1.5.8-h99b1521_2\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\libmambapy-1.5.8-py312h77c03ed_2\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\libsolv-0.7.24-h23ce68f_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\libssh2-1.11.0-h291bd65_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\libxml2-2.10.4-h0ad7f3c_2\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\lz4-c-1.9.4-h2bbff1b_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\menuinst-2.1.1-py312h5da7b33_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\openssl-3.0.14-h827c3e9_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\packaging-23.2-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\pcre2-10.42-h0ff8eda_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\pip-24.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\platformdirs-3.10.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\pluggy-1.0.0-py312haa95532_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\powershell_shortcut_miniconda-0.0.1-haa95532_2\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\pybind11-abi-5-hd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\pycosat-0.6.6-py312h2bbff1b_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\pycparser-2.21-pyhd3eb1b0_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\pysocks-1.7.1-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\python-3.12.4-h14ffc60_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\reproc-14.2.4-hd77b12b_2\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\reproc-cpp-14.2.4-hd77b12b_2\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\requests-2.32.2-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\ruamel.yaml-0.17.21-py312h2bbff1b_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\setuptools-69.5.1-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\sqlite-3.45.3-h2bbff1b_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\tk-8.6.14-h0416ee5_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\tqdm-4.66.4-py312hfc267ef_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\truststore-0.8.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\tzdata-2024a-h04d1e81_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\urllib3-2.2.2-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\vc-14.2-h2eaa2aa_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\vs2015_runtime-14.29.30133-h43f2093_3\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\wheel-0.43.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\win_inet_pton-1.1.0-py312haa95532_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\xz-5.4.6-h8cc25b3_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\yaml-cpp-0.8.0-hd77b12b_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\zlib-1.2.13-h8cc25b3_1\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\zstandard-0.22.0-py312h3469f8a_0\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs\zstd-1.5.5-hd43e919_2\info
Extract: repodata_record.json
Output folder: C:\ProgramData\miniconda3\pkgs
Extract: python-3.12.4-h14ffc60_1.conda
Extract: ca-certificates-2024.3.11-haa95532_0.conda
Extract: pybind11-abi-5-hd3eb1b0_0.conda
Extract: tzdata-2024a-h04d1e81_0.conda
Extract: vs2015_runtime-14.29.30133-h43f2093_3.conda
Extract: vc-14.2-h2eaa2aa_1.conda
Extract: bzip2-1.0.8-h2bbff1b_6.conda
Extract: expat-2.6.2-hd77b12b_0.conda
Extract: fmt-9.1.0-h6d14046_1.conda
Extract: libffi-3.4.4-hd77b12b_1.conda
Extract: libiconv-1.16-h2bbff1b_3.conda
Extract: lz4-c-1.9.4-h2bbff1b_1.conda
Extract: openssl-3.0.14-h827c3e9_0.conda
Extract: reproc-14.2.4-hd77b12b_2.conda
Extract: sqlite-3.45.3-h2bbff1b_0.conda
Extract: xz-5.4.6-h8cc25b3_1.conda
Extract: yaml-cpp-0.8.0-hd77b12b_1.conda
Extract: zlib-1.2.13-h8cc25b3_1.conda
Extract: libssh2-1.11.0-h291bd65_0.conda
Extract: libxml2-2.10.4-h0ad7f3c_2.conda
Extract: pcre2-10.42-h0ff8eda_1.conda
Extract: reproc-cpp-14.2.4-hd77b12b_2.conda
Extract: tk-8.6.14-h0416ee5_0.conda
Extract: zstd-1.5.5-hd43e919_2.conda
Extract: libarchive-3.6.2-hb62f4d4_3.conda
Extract: libcurl-8.7.1-h86230a5_0.conda
Extract: libsolv-0.7.24-h23ce68f_1.conda
Extract: libmamba-1.5.8-h99b1521_2.conda
Extract: menuinst-2.1.1-py312h5da7b33_0.conda
Extract: anaconda-anon-usage-0.4.4-py312hfc23b7f_100.conda
Extract: archspec-0.2.3-pyhd3eb1b0_0.conda
Extract: boltons-23.0.0-py312haa95532_0.conda
Extract: brotli-python-1.0.9-py312hd77b12b_8.conda
Extract: certifi-2024.6.2-py312haa95532_0.conda
Extract: charset-normalizer-2.0.4-pyhd3eb1b0_0.conda
Extract: colorama-0.4.6-py312haa95532_0.conda
Extract: console_shortcut_miniconda-0.1.1-haa95532_2.conda
Extract: distro-1.9.0-py312haa95532_0.conda
Extract: frozendict-2.4.2-py312haa95532_0.conda
Extract: idna-3.7-py312haa95532_0.conda
Extract: libmambapy-1.5.8-py312h77c03ed_2.conda
Extract: packaging-23.2-py312haa95532_0.conda
Extract: platformdirs-3.10.0-py312haa95532_0.conda
Extract: pluggy-1.0.0-py312haa95532_1.conda
Extract: powershell_shortcut_miniconda-0.0.1-haa95532_2.conda
Extract: pycosat-0.6.6-py312h2bbff1b_1.conda
Extract: ruamel.yaml-0.17.21-py312h2bbff1b_0.conda
Extract: setuptools-69.5.1-py312haa95532_0.conda
Extract: truststore-0.8.0-py312haa95532_0.conda
Extract: wheel-0.43.0-py312haa95532_0.conda
Extract: win_inet_pton-1.1.0-py312haa95532_0.conda
Extract: pip-24.0-py312haa95532_0.conda
Extract: pysocks-1.7.1-py312haa95532_0.conda
Extract: tqdm-4.66.4-py312hfc267ef_0.conda
Extract: urllib3-2.2.2-py312haa95532_0.conda
Extract: requests-2.32.2-py312haa95532_0.conda
Extract: conda-libmamba-solver-24.1.0-pyhd3eb1b0_0.conda
Extract: jsonpointer-2.1-pyhd3eb1b0_0.conda
Extract: jsonpatch-1.33-py312haa95532_1.conda
Extract: pycparser-2.21-pyhd3eb1b0_0.conda
Extract: cffi-1.16.0-py312h2bbff1b_1.conda
Extract: cryptography-42.0.5-py312h89fc84f_1.conda
Extract: zstandard-0.22.0-py312h3469f8a_0.conda
Extract: conda-content-trust-0.2.0-py312haa95532_1.conda
Extract: conda-package-streaming-0.10.0-py312haa95532_0.conda
Extract: conda-package-handling-2.3.0-py312haa95532_0.conda
Extract: conda-24.5.0-py312haa95532_0.conda
Setting up the base environment ...
Output folder: C:\ProgramData\miniconda3\pkgs
Extract: env.txt
Output folder: C:\ProgramData\miniconda3\conda-meta
Extract: history
Installing packages for base, creating shortcuts if necessary...
OPENSSL_Uplink(00007FF8AB099C88,08): no OPENSSL_Applink
::error:: Failed to link extracted packages to C:\ProgramData\miniconda3!
PowerShell 7.4.3
PS C:\ProgramData\miniconda3> .\_conda create -y -p %USERPROFILE%\conda_testenv conda
OPENSSL_Uplink(00007FF89B2B9C88,08): no OPENSSL_Applink

@marcoesters
Copy link

Hi @zhangzih4n, this is a very different error. I opened a new issue: #13408

@DeezAICode
Copy link

I was having the same issue after I turn on ransomware protection on my drove instead of the folders in the drive. Windows blocked it. Perhaps you might want to check the ransomware settings. Once I turned it off, everything was fine

@ShawWangWX
Copy link

Same issues when dealing with both anaconda and miniconda installation. It may help:

  1. remove conda from the environment path
  2. do not click to add the conda to your environment during the installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants