-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ImportError: cannot import name 'tarfile' from 'backports' and RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment. #4747
Comments
Hi @nguyenphucnamgiang could you please install the latest version of |
thank you for your reply! But this returns the same error
|
Umm, is it a deadlock? You cannot install Can you try the following:
If that does not work, you might have to start a fresh virtual environment 😢. |
I don't even have backports.tarfile in my base environment
unfortunately, my goal is to update the base environment, so I need to fix this |
Umm, I can see that you have a file I suppose you can try:
OR
|
The specific mechanics of the problem are described #4508 (comment). |
I suppose that you can also try to install |
it was unexpected, pip finally added an tarfile folder and fixed that import error, I can launch anaconda navigator, but the other setuptools remove error stays the same
|
conda can list setuptools but then I try to update it, it cannot be found, is this normal behaviour?
|
You mean the error How come if |
I am not a specialist in conda, so I don't know how to answer that question. |
This issue seems to be the same as #4508, so it may be worth exploring the options discussed there. |
Ah ok, thank you. that clarified the problem. In this case, it seems like something to be discussed with |
thank you @abravalheri, I will move to conda now |
Thank you. I will close the issue now as a duplicate of #4508. |
Installing via pip helped me to solve the issue, I tried some steps from above without success:
|
setuptools version
setuptools==75.2.0
Python version
Python 3.11.5
Environment information
Conda base environment
Description
I tried to update anaconda navigator using
conda update -n base conda
, but it then ran into this errorI tried debugging but I cannot find anything helpful. After that, I opened anaconda navigator but It didn't work, I then used
anaconda-navigator
in anaconda prompt then find thisI search many issues ImportError: cannot import name 'tarfile' from 'backports' #5,
[BUG] 71.0.0 fails with backports.tarfile on Python 3.8 when other backports imported #4476,
Reset the backports module when enabling vendored packages. #4486,
Setup: Fix package installation woes with setuptools/backports.tarfile, and PyInstaller #201,
[BUG] 71.0.0 fails PyInstaller builds #4477,
[BUG] 71.0.4 and 71.1.0 fail with ImportError: cannot import name 'tarfile' from 'backports' #4509
the common solution is to change version but what should i downgrade to
The text was updated successfully, but these errors were encountered: