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

conda upgrade failed - ERROR conda.core.link:_execute_actions #6078

Closed
varoudis opened this issue Oct 5, 2017 · 15 comments
Closed

conda upgrade failed - ERROR conda.core.link:_execute_actions #6078

varoudis opened this issue Oct 5, 2017 · 15 comments
Labels
locked [bot] locked due to inactivity

Comments

@varoudis
Copy link

varoudis commented Oct 5, 2017

Hi,

conda upgrade --all with conda-forge added in the list fails on windows 64bit (both 2.7 and 3.6 py tested)

On Mac everything is ok on exaclty same install scenario.

Any ideas?
Thanks

DEBUG menuinst_win32:init(185): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}',
prefix: 'C:\ProgramData\Anaconda3', env_name: 'None', mode: 'None', used_mode:
'system'
DEBUG menuinst_win32:init(185): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}',
prefix: 'C:\ProgramData\Anaconda3', env_name: 'None', mode: 'None', used_mode:
'system'
DEBUG menuinst_win32:init(185): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}',
prefix: 'C:\ProgramData\Anaconda3', env_name: 'None', mode: 'None', used_mode:
'system'
ERROR conda.core.link:_execute_actions(337): An error occurred while installing
package 'conda-forge::wheel-0.30.0-py_1'.
CondaError: Cannot link a source that does not exist. C:\ProgramData\Anaconda3\S
cripts\conda.exe
Attempting to roll back.

DEBUG menuinst_win32:init(185): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}',
prefix: 'C:\ProgramData\Anaconda3', env_name: 'None', mode: 'None', used_mode:
'system'

@kalefranz
Copy link
Contributor

Try conda clean --all and see if you keep having the issue...

@varoudis
Copy link
Author

varoudis commented Oct 5, 2017

same error. no change at all.

@kalefranz
Copy link
Contributor

What is the output of conda info?

@varoudis
Copy link
Author

varoudis commented Oct 5, 2017

(C:\ProgramData\Anaconda3) C:\Users\varoudis\Documents>conda info
Current conda install:

           platform : win-64
      conda version : 4.3.27
   conda is private : False
  conda-env version : 4.3.27
conda-build version : 3.0.23
     python version : 3.6.2.final.0
   requests version : 2.18.4
   root environment : C:\ProgramData\Anaconda3  (writable)
default environment : C:\ProgramData\Anaconda3
   envs directories : C:\ProgramData\Anaconda3\envs
                      C:\Users\varoudis\AppData\Local\conda\conda\envs
                      C:\Users\varoudis\.conda\envs
      package cache : C:\ProgramData\Anaconda3\pkgs
                      C:\Users\varoudis\AppData\Local\conda\conda\pkgs
       channel URLs : https://conda.anaconda.org/conda-forge/win-64
                      https://conda.anaconda.org/conda-forge/noarch
                      https://repo.continuum.io/pkgs/main/win-64
                      https://repo.continuum.io/pkgs/main/noarch
                      https://repo.continuum.io/pkgs/free/win-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/r/win-64
                      https://repo.continuum.io/pkgs/r/noarch
                      https://repo.continuum.io/pkgs/pro/win-64
                      https://repo.continuum.io/pkgs/pro/noarch
                      https://repo.continuum.io/pkgs/msys2/win-64
                      https://repo.continuum.io/pkgs/msys2/noarch
        config file : C:\Users\varoudis\.condarc
         netrc file : None
       offline mode : False
         user-agent : conda/4.3.27 requests/2.18.4 CPython/3.6.2 Windows/7 W

indows/6.1.7601
administrator : True

(C:\ProgramData\Anaconda3) C:\Users\varoudis\Documents>�

This is a clean new install. I downloaded the latest anaconda for windows yesterday.

@kalefranz
Copy link
Contributor

Probably need to just manually delete C:\ProgramData\Anaconda3\pkgs and C:\Users\varoudis\AppData\Local\conda\conda\pkgs.

@varoudis
Copy link
Author

varoudis commented Oct 6, 2017

same error. nothing new. :(

@AlexM9200
Copy link

I'm getting this same error on Windows 10. Any help would be appreciated.

@ErinKenna
Copy link

I had the same issue on Windows 10 with miniconda (win-64, conda 4.3.27, python 3.6.3.final.0).
This worked for me using an admin prompt (install was not as admin).
conda clean --all
conda update conda
conda update --all

@varoudis
Copy link
Author

even though I got some of the same errors, I didnt get the critical wheel error!
I think this did it.
thanks @ErinKenna

jupyter-1.0.0- 100% |###############################| Time: 0:00:00 586.33 kB/s
DEBUG menuinst_win32:init(185): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}',
prefix: 'C:\ProgramData\Anaconda3', env_name: 'None', mode: 'None', used_mode:
'system'
DEBUG menuinst_win32:init(185): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}',
prefix: 'C:\ProgramData\Anaconda3', env_name: 'None', mode: 'None', used_mode:
'system'
DEBUG menuinst_win32:init(185): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}',
prefix: 'C:\ProgramData\Anaconda3', env_name: 'None', mode: 'None', used_mode:
'system'
DEBUG menuinst_win32:init(185): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}',
prefix: 'C:\ProgramData\Anaconda3', env_name: 'None', mode: 'None', used_mode:
'system'

(C:\ProgramData\Anaconda3) C:\Users\varoudis\Documents>

@hieyong
Copy link

hieyong commented Apr 18, 2018

When I use the prompt commander as an administrator, it seems that this terrible problem is solved. But I am not sure if it is perfect.

@anjalinagel12
Copy link

ERROR conda.core.link:_execute(502): An error occurred while uninstalling package 'defaults::nltk-3.2.5-py36h1190bce_0'.

Getting this error. Anyone knows how to solve it?

@marvinntale
Copy link

this worked for me
conda clean --all
conda update conda
conda update --all

@MadhushreeB
Copy link

this worked for me
conda clean --all
conda update conda
conda update --all

1 similar comment
@cuixing158
Copy link

this worked for me
conda clean --all
conda update conda
conda update --all

@github-actions
Copy link

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Aug 26, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

No branches or pull requests

9 participants