ContinuumIO / anaconda-issues

Anaconda issue tracking
648 stars 224 forks source link

Windows Uninstaller for Anaconda deletes Users folder #11726

Open howardhshen opened 4 years ago

howardhshen commented 4 years ago

I was testing some installation setups for Anaconda, which required me to uninstall Anaconda and reinstall it. When I did this a few days ago, everything was fine, but when I did this today, the Anaconda uninstaller removed all the files in my Users folder, which included all my documents, pictures, downloads, etc. The main difference is that my last installation, I installed for "All Users" instead of the current one. However, when I tested this afterwards, both installation types resulted in the Users folder being wiped.

Actual Behavior

Use Windows Programs and Features menu to uninstall Anaconda. Anaconda is uninstalled. All files in Users folder also deleted. All folders and subfolders remain, but are empty.

Expected Behavior

Use Windows Programs and Features menu to uninstall Anaconda. Anaconda is uninstalled.

Steps to Reproduce

  1. Install Anaconda (either for All Users or Just Current One)
  2. Uninstall Anaconda via Windows Programs and Features menu.
  3. Check Users folder.
Anaconda or Miniconda version:

Anaconda3-2020.02-Windows-x86_64.exe

Operating System:

Windows 10

conda info
``` active environment : base active env location : C:\Users\Howard Shen\anaconda3 shell level : 1 user config file : C:\Users\Howard Shen\.condarc populated config files : conda version : 4.8.2 conda-build version : 3.18.11 python version : 3.7.6.final.0 virtual packages : base environment : C:\Users\Howard Shen\anaconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\Howard Shen\anaconda3\pkgs C:\Users\Howard Shen\.conda\pkgs C:\Users\Howard Shen\AppData\Local\conda\conda\pkgs envs directories : C:\Users\Howard Shen\anaconda3\envs C:\Users\Howard Shen\.conda\envs C:\Users\Howard Shen\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Windows/10 Windows/10.0.18362 administrator : False netrc file : None offline mode : False ```
conda list --show-channel-urls
``` # packages in environment at C:\Users\Howard Shen\anaconda3: # # Name Version Build Channel _ipyw_jlab_nb_ext_conf 0.1.0 py37_0 defaults alabaster 0.7.12 py37_0 defaults anaconda 2020.02 py37_0 defaults anaconda-client 1.7.2 py37_0 defaults anaconda-navigator 1.9.12 py37_0 defaults anaconda-project 0.8.4 py_0 defaults argh 0.26.2 py37_0 defaults asn1crypto 1.3.0 py37_0 defaults astroid 2.3.3 py37_0 defaults astropy 4.0 py37he774522_0 defaults atomicwrites 1.3.0 py37_1 defaults attrs 19.3.0 py_0 defaults autopep8 1.4.4 py_0 defaults babel 2.8.0 py_0 defaults backcall 0.1.0 py37_0 defaults backports 1.0 py_2 defaults backports.functools_lru_cache 1.6.1 py_0 defaults backports.shutil_get_terminal_size 1.0.0 py37_2 defaults backports.tempfile 1.0 py_1 defaults backports.weakref 1.0.post1 py_1 defaults bcrypt 3.1.7 py37he774522_0 defaults beautifulsoup4 4.8.2 py37_0 defaults bitarray 1.2.1 py37he774522_0 defaults bkcharts 0.2 py37_0 defaults blas 1.0 mkl defaults bleach 3.1.0 py37_0 defaults blosc 1.16.3 h7bd577a_0 defaults bokeh 1.4.0 py37_0 defaults boto 2.49.0 py37_0 defaults bottleneck 1.3.2 py37h2a96729_0 defaults bzip2 1.0.8 he774522_0 defaults ca-certificates 2020.1.1 0 defaults certifi 2019.11.28 py37_0 defaults cffi 1.14.0 py37h7a1dbc1_0 defaults chardet 3.0.4 py37_1003 defaults click 7.0 py37_0 defaults cloudpickle 1.3.0 py_0 defaults clyent 1.2.2 py37_1 defaults colorama 0.4.3 py_0 defaults comtypes 1.1.7 py37_0 defaults conda 4.8.2 py37_0 defaults conda-build 3.18.11 py37_0 defaults conda-env 2.6.0 1 defaults conda-package-handling 1.6.0 py37h62dcd97_0 defaults conda-verify 3.4.2 py_1 defaults console_shortcut 0.1.1 4 defaults contextlib2 0.6.0.post1 py_0 defaults cryptography 2.8 py37h7a1dbc1_0 defaults curl 7.68.0 h2a8f88b_0 defaults cycler 0.10.0 py37_0 defaults cython 0.29.15 py37ha925a31_0 defaults cytoolz 0.10.1 py37he774522_0 defaults dask 2.11.0 py_0 defaults dask-core 2.11.0 py_0 defaults decorator 4.4.1 py_0 defaults defusedxml 0.6.0 py_0 defaults diff-match-patch 20181111 py_0 defaults distributed 2.11.0 py37_0 defaults docutils 0.16 py37_0 defaults entrypoints 0.3 py37_0 defaults et_xmlfile 1.0.1 py37_0 defaults fastcache 1.1.0 py37he774522_0 defaults filelock 3.0.12 py_0 defaults flake8 3.7.9 py37_0 defaults flask 1.1.1 py_0 defaults freetype 2.9.1 ha9979f8_1 defaults fsspec 0.6.2 py_0 defaults future 0.18.2 py37_0 defaults get_terminal_size 1.0.0 h38e98db_0 defaults gevent 1.4.0 py37he774522_0 defaults glob2 0.7 py_0 defaults greenlet 0.4.15 py37hfa6e2cd_0 defaults h5py 2.10.0 py37h5e291fa_0 defaults hdf5 1.10.4 h7ebc959_0 defaults heapdict 1.0.1 py_0 defaults html5lib 1.0.1 py37_0 defaults hypothesis 5.5.4 py_0 defaults icc_rt 2019.0.0 h0cc432a_1 defaults icu 58.2 ha66f8fd_1 defaults idna 2.8 py37_0 defaults imageio 2.6.1 py37_0 defaults imagesize 1.2.0 py_0 defaults importlib_metadata 1.5.0 py37_0 defaults intel-openmp 2020.0 166 defaults intervaltree 3.0.2 py_0 defaults ipykernel 5.1.4 py37h39e3cac_0 defaults ipython 7.12.0 py37h5ca1d4c_0 defaults ipython_genutils 0.2.0 py37_0 defaults ipywidgets 7.5.1 py_0 defaults isort 4.3.21 py37_0 defaults itsdangerous 1.1.0 py37_0 defaults jdcal 1.4.1 py_0 defaults jedi 0.14.1 py37_0 defaults jinja2 2.11.1 py_0 defaults joblib 0.14.1 py_0 defaults jpeg 9b hb83a4c4_2 defaults json5 0.9.1 py_0 defaults jsonschema 3.2.0 py37_0 defaults jupyter 1.0.0 py37_7 defaults jupyter_client 5.3.4 py37_0 defaults jupyter_console 6.1.0 py_0 defaults jupyter_core 4.6.1 py37_0 defaults jupyterlab 1.2.6 pyhf63ae98_0 defaults jupyterlab_server 1.0.6 py_0 defaults keyring 21.1.0 py37_0 defaults kiwisolver 1.1.0 py37ha925a31_0 defaults krb5 1.17.1 hc04afaa_0 defaults lazy-object-proxy 1.4.3 py37he774522_0 defaults libarchive 3.3.3 h0643e63_5 defaults libcurl 7.68.0 h2a8f88b_0 defaults libiconv 1.15 h1df5818_7 defaults liblief 0.9.0 ha925a31_2 defaults libpng 1.6.37 h2a8f88b_0 defaults libsodium 1.0.16 h9d3ae62_0 defaults libspatialindex 1.9.3 h33f27b4_0 defaults libssh2 1.8.2 h7a1dbc1_0 defaults libtiff 4.1.0 h56a325e_0 defaults libxml2 2.9.9 h464c3ec_0 defaults libxslt 1.1.33 h579f668_0 defaults llvmlite 0.31.0 py37ha925a31_0 defaults locket 0.2.0 py37_1 defaults lxml 4.5.0 py37h1350720_0 defaults lz4-c 1.8.1.2 h2fa13f4_0 defaults lzo 2.10 h6df0209_2 defaults m2w64-gcc-libgfortran 5.3.0 6 defaults m2w64-gcc-libs 5.3.0 7 defaults m2w64-gcc-libs-core 5.3.0 7 defaults m2w64-gmp 6.1.0 2 defaults m2w64-libwinpthread-git 5.0.0.4634.697f757 2 defaults markupsafe 1.1.1 py37he774522_0 defaults matplotlib 3.1.3 py37_0 defaults matplotlib-base 3.1.3 py37h64f37c6_0 defaults mccabe 0.6.1 py37_1 defaults menuinst 1.4.16 py37he774522_0 defaults mistune 0.8.4 py37he774522_0 defaults mkl 2020.0 166 defaults mkl-service 2.3.0 py37hb782905_0 defaults mkl_fft 1.0.15 py37h14836fe_0 defaults mkl_random 1.1.0 py37h675688f_0 defaults mock 4.0.1 py_0 defaults more-itertools 8.2.0 py_0 defaults mpmath 1.1.0 py37_0 defaults msgpack-python 0.6.1 py37h74a9793_1 defaults msys2-conda-epoch 20160418 1 defaults multipledispatch 0.6.0 py37_0 defaults navigator-updater 0.2.1 py37_0 defaults nbconvert 5.6.1 py37_0 defaults nbformat 5.0.4 py_0 defaults networkx 2.4 py_0 defaults nltk 3.4.5 py37_0 defaults nose 1.3.7 py37_2 defaults notebook 6.0.3 py37_0 defaults numba 0.48.0 py37h47e9c7a_0 defaults numexpr 2.7.1 py37h25d0782_0 defaults numpy 1.18.1 py37h93ca92e_0 defaults numpy-base 1.18.1 py37hc3f5095_1 defaults numpydoc 0.9.2 py_0 defaults olefile 0.46 py37_0 defaults openpyxl 3.0.3 py_0 defaults openssl 1.1.1d he774522_4 defaults packaging 20.1 py_0 defaults pandas 1.0.1 py37h47e9c7a_0 defaults pandoc 2.2.3.2 0 defaults pandocfilters 1.4.2 py37_1 defaults paramiko 2.7.1 py_0 defaults parso 0.5.2 py_0 defaults partd 1.1.0 py_0 defaults path 13.1.0 py37_0 defaults path.py 12.4.0 0 defaults pathlib2 2.3.5 py37_0 defaults pathtools 0.1.2 py_1 defaults patsy 0.5.1 py37_0 defaults pep8 1.7.1 py37_0 defaults pexpect 4.8.0 py37_0 defaults pickleshare 0.7.5 py37_0 defaults pillow 7.0.0 py37hcc1f983_0 defaults pip 20.0.2 py37_1 defaults pkginfo 1.5.0.1 py37_0 defaults pluggy 0.13.1 py37_0 defaults ply 3.11 py37_0 defaults powershell_shortcut 0.0.1 3 defaults prometheus_client 0.7.1 py_0 defaults prompt_toolkit 3.0.3 py_0 defaults psutil 5.6.7 py37he774522_0 defaults py 1.8.1 py_0 defaults py-lief 0.9.0 py37ha925a31_2 defaults pycodestyle 2.5.0 py37_0 defaults pycosat 0.6.3 py37he774522_0 defaults pycparser 2.19 py37_0 defaults pycrypto 2.6.1 py37hfa6e2cd_9 defaults pycurl 7.43.0.5 py37h7a1dbc1_0 defaults pydocstyle 4.0.1 py_0 defaults pyflakes 2.1.1 py37_0 defaults pygments 2.5.2 py_0 defaults pylint 2.4.4 py37_0 defaults pynacl 1.3.0 py37h62dcd97_0 defaults pyodbc 4.0.30 py37ha925a31_0 defaults pyopenssl 19.1.0 py37_0 defaults pyparsing 2.4.6 py_0 defaults pyqt 5.9.2 py37h6538335_2 defaults pyreadline 2.1 py37_1 defaults pyrsistent 0.15.7 py37he774522_0 defaults pysocks 1.7.1 py37_0 defaults pytables 3.6.1 py37h1da0976_0 defaults pytest 5.3.5 py37_0 defaults pytest-arraydiff 0.3 py37h39e3cac_0 defaults pytest-astropy 0.8.0 py_0 defaults pytest-astropy-header 0.1.2 py_0 defaults pytest-doctestplus 0.5.0 py_0 defaults pytest-openfiles 0.4.0 py_0 defaults pytest-remotedata 0.3.2 py37_0 defaults python 3.7.6 h60c2a47_2 defaults python-dateutil 2.8.1 py_0 defaults python-jsonrpc-server 0.3.4 py_0 defaults python-language-server 0.31.7 py37_0 defaults python-libarchive-c 2.8 py37_13 defaults pytz 2019.3 py_0 defaults pywavelets 1.1.1 py37he774522_0 defaults pywin32 227 py37he774522_1 defaults pywin32-ctypes 0.2.0 py37_1000 defaults pywinpty 0.5.7 py37_0 defaults pyyaml 5.3 py37he774522_0 defaults pyzmq 18.1.1 py37ha925a31_0 defaults qdarkstyle 2.8 py_0 defaults qt 5.9.7 vc14h73c81de_0 defaults qtawesome 0.6.1 py_0 defaults qtconsole 4.6.0 py_1 defaults qtpy 1.9.0 py_0 defaults requests 2.22.0 py37_1 defaults rope 0.16.0 py_0 defaults rtree 0.9.3 py37h21ff451_0 defaults ruamel_yaml 0.15.87 py37he774522_0 defaults scikit-image 0.16.2 py37h47e9c7a_0 defaults scikit-learn 0.22.1 py37h6288b17_0 defaults scipy 1.4.1 py37h9439919_0 defaults seaborn 0.10.0 py_0 defaults send2trash 1.5.0 py37_0 defaults setuptools 45.2.0 py37_0 defaults simplegeneric 0.8.1 py37_2 defaults singledispatch 3.4.0.3 py37_0 defaults sip 4.19.8 py37h6538335_0 defaults six 1.14.0 py37_0 defaults snappy 1.1.7 h777316e_3 defaults snowballstemmer 2.0.0 py_0 defaults sortedcollections 1.1.2 py37_0 defaults sortedcontainers 2.1.0 py37_0 defaults soupsieve 1.9.5 py37_0 defaults sphinx 2.4.0 py_0 defaults sphinxcontrib 1.0 py37_1 defaults sphinxcontrib-applehelp 1.0.1 py_0 defaults sphinxcontrib-devhelp 1.0.1 py_0 defaults sphinxcontrib-htmlhelp 1.0.2 py_0 defaults sphinxcontrib-jsmath 1.0.1 py_0 defaults sphinxcontrib-qthelp 1.0.2 py_0 defaults sphinxcontrib-serializinghtml 1.1.3 py_0 defaults sphinxcontrib-websupport 1.2.0 py_0 defaults spyder 4.0.1 py37_0 defaults spyder-kernels 1.8.1 py37_0 defaults sqlalchemy 1.3.13 py37he774522_0 defaults sqlite 3.31.1 he774522_0 defaults statsmodels 0.11.0 py37he774522_0 defaults sympy 1.5.1 py37_0 defaults tbb 2020.0 h74a9793_0 defaults tblib 1.6.0 py_0 defaults terminado 0.8.3 py37_0 defaults testpath 0.4.4 py_0 defaults tk 8.6.8 hfa6e2cd_0 defaults toolz 0.10.0 py_0 defaults tornado 6.0.3 py37he774522_3 defaults tqdm 4.42.1 py_0 defaults traitlets 4.3.3 py37_0 defaults ujson 1.35 py37hfa6e2cd_0 defaults unicodecsv 0.14.1 py37_0 defaults urllib3 1.25.8 py37_0 defaults vc 14.1 h0510ff6_4 defaults vs2015_runtime 14.16.27012 hf0eaf9b_1 defaults watchdog 0.10.2 py37_0 defaults wcwidth 0.1.8 py_0 defaults webencodings 0.5.1 py37_1 defaults werkzeug 1.0.0 py_0 defaults wheel 0.34.2 py37_0 defaults widgetsnbextension 3.5.1 py37_0 defaults win_inet_pton 1.1.0 py37_0 defaults win_unicode_console 0.5 py37_0 defaults wincertstore 0.2 py37_0 defaults winpty 0.4.3 4 defaults wrapt 1.11.2 py37he774522_0 defaults xlrd 1.2.0 py37_0 defaults xlsxwriter 1.2.7 py_0 defaults xlwings 0.17.1 py37_0 defaults xlwt 1.3.0 py37_0 defaults xmltodict 0.12.0 py_0 defaults xz 5.2.4 h2fa13f4_4 defaults yaml 0.1.7 hc54c509_2 defaults yapf 0.28.0 py_0 defaults zeromq 4.3.1 h33f27b4_3 defaults zict 1.0.0 py_0 defaults zipp 2.2.0 py_0 defaults zlib 1.2.11 h62dcd97_3 defaults zstd 1.3.7 h508b16e_0 defaults ```
howardhshen commented 4 years ago

Output from the uninstaller:

Deleting Anaconda3 menus...
Processed C:\Users\Howard Shen\anaconda3\Menu\anaconda-navigator.json successfully.
Processed C:\Users\Howard Shen\anaconda3\Menu\console_shortcut.json successfully.
Processed C:\Users\Howard Shen\anaconda3\Menu\notebook.json successfully.
Processed C:\Users\Howard Shen\anaconda3\Menu\powershell_shortcut.json successfully.
Processed C:\Users\Howard Shen\anaconda3\Menu\spyder_shortcut.json successfully.
Execute: "C:\Users\Howard Shen\anaconda3\pythonw.exe" -E -s "C:\Users\Howard Shen\anaconda3\Lib\_nsis.py" pre_uninstall
Execute: "C:\Users\Howard Shen\anaconda3\pythonw.exe" -E -s "C:\Users\Howard Shen\anaconda3\Lib\_nsis.py" rmpath
Execute: "C:\Users\Howard Shen\anaconda3\pythonw.exe" -E -s "C:\Users\Howard Shen\anaconda3\Lib\_nsis.py" rmreg
Execute: "C:\Users\Howard Shen\anaconda3\pythonw.exe" -E -s "C:\Users\Howard Shen\anaconda3\Lib\_nsis.py" del "C:\Users\Howard Shen\anaconda3"
Delete file: C:\Users\Howard Shen\anaconda3\DLLs\_ctypes.pyd
Remove folder: C:\Users\Howard Shen\anaconda3\DLLs\
Delete file: C:\Users\Howard Shen\anaconda3\pkgs\python-3.7.6-h60c2a47_2\python3.dll
Delete file: C:\Users\Howard Shen\anaconda3\pkgs\python-3.7.6-h60c2a47_2\python37.dll
Delete file: C:\Users\Howard Shen\anaconda3\pkgs\python-3.7.6-h60c2a47_2\pythonw.exe
Remove folder: C:\Users\Howard Shen\anaconda3\pkgs\python-3.7.6-h60c2a47_2\
Delete file: C:\Users\Howard Shen\anaconda3\pkgs\vs2015_runtime-14.16.27012-hf0eaf9b_1\vcruntime140.dll
Remove folder: C:\Users\Howard Shen\anaconda3\pkgs\vs2015_runtime-14.16.27012-hf0eaf9b_1\
Remove folder: C:\Users\Howard Shen\anaconda3\pkgs\
Delete file: C:\Users\Howard Shen\anaconda3\python3.dll
Delete file: C:\Users\Howard Shen\anaconda3\python37.dll
Delete file: C:\Users\Howard Shen\anaconda3\pythonw.exe
Delete file: C:\Users\Howard Shen\anaconda3\vcruntime140.dll
Remove folder: C:\Users\Howard Shen\anaconda3\
Completed
csoja commented 4 years ago

We are not able to reproduce the issue on windows 10x64 bit for the Anaconda3 installer. It is tested on the following installations:

The output from the uninstaller in the second comment also does not indicate that it deleted everything in the home folder - everything is under the \anaconda3\ directory.

Can you provide any additional insight or log information?

howardhshen commented 3 years ago

Sorry to leave this issue open for so long; I didn't have a chance to test until now as I didn't want to risk losing all my files again.

I tested this again today, using the installer for the 2020.11 version, and the problem appears to be unique to my device.

The only other notable difference that I know of between the two devices is that the path on the first has a space ("C:\Users\Howard Shen\anaconda3"), and the path on the second does not ("C:\Users\chowd\anaconda3")

cenkersisman commented 1 year ago

When I tried to uninstall Anaconda, it attempted to delete the user folder instead of the Anaconda folder under the user directory. It also marked them for deletion during the reboot phase. It was a complete nightmare. When I restarted, I couldn't log into my machine, and all my documents and application settings were erased. The recovery application called Recuva didn't work either. Please fix this bug immediately or remove the uninstall application to prevent others from experiencing the same issue. WhatsApp Görsel 2023-05-31 saat 19 13 22

marcoesters commented 1 year ago

Thank you for reporting this! I am trying to replicate the problem and made some progress, but I need some additional information.

  1. Which Windows version are you using?
  2. How was Anaconda installed? Which directory was Anaconda installed into?
  3. How was the uninstaller executed? If it was executed in Windows Explorer, where was it located?
  4. Did you see any errors pop up during the uninstallation? For example, that it failed to run "pre_uninstall" or similar?
cenkersisman commented 1 year ago

Hi, here are the answers:

  1. Windows 11 Home 22H2
  2. c:\users\cenke\anaconda3 3.It was downloaded from Chrome and the executed file was Anaconda3-2023.03-1-Windows-x86_64.exe 4.No there was no errors.
marcoesters commented 1 year ago

Could you elaborate on how you uninstalled Anaconda? Did you use "Add or remove programs" or executed the Uninstaller (Uninstall-Anaconda3.exe) from Windows Explorer?

If it's the Windows Explorer, where was the Uninstaller file located?

cenkersisman commented 1 year ago

I executed the uninstaller from windows Explorer.

5 Haz 2023 Pzt 17:26 tarihinde Marco Esters @.***> şunu yazdı:

Could you elaborate on how you uninstalled Anaconda? Did you use "Add or remove programs" or executed the Uninstaller from Windows Explorer?

If it's the Windows Explorer, where was the Uninstaller file located?

— Reply to this email directly, view it on GitHub https://github.com/ContinuumIO/anaconda-issues/issues/11726#issuecomment-1576910584, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZROKPWT6MRFVMNGXU3USDXJXUB3ANCNFSM4ME6466Q . You are receiving this because you commented.Message ID: @.***>

marcoesters commented 1 year ago

And I assume the uninstaller was located inside c:\users\cenke\anaconda3?

I have so far only been able to reproduce this bug by moving the uninstaller outside this directory, but that produces additional errors that come with an "abort/retry/ignore" message box.

cenkersisman commented 1 year ago

Hello, A similar issue occured today. I use Anaconda Navigator 2.5.0. Operating system is Windows 11 When I tried to remove an environment located at different folder i.e. c:\python\programs\anaconda3 from Environments tab of the navigator, it deleted the anaconda3 folder and removed programs folder and python folder as well. Hopefuly there was no files other than anaconda3 in python folder. But it frustrates me a lot. It deletes all back folders..

B0w33n commented 9 months ago

Sorry to leave this issue open for so long; I didn't have a chance to test until now as I didn't want to risk losing all my files again.

I tested this again today, using the installer for the 2020.11 version, and the problem appears to be unique to my device.

  • I tried 4 times on the original device (a Lenovo T480), and each time, it deleted the files in my Users folder but left the file structure intact. If I had a file open in another program, the file would not be deleted, but everything else would be. I can 100% replicate the error on this device, and can actually see the files disappear in Windows Explorer while the uninstaller is running. The files are deleted either very late in the last "Execute:" step, or occurs in one of the following steps (those steps are very quick and it's hard to pin when the deletion occurs.
  • I also tried installing and uninstalling the 2020.11 version on a second computer (Dell Inspiron 5577, Windows 10), and could not replicate the problem. I installed and uninstalled twice just to make sure.

The only other notable difference that I know of between the two devices is that the path on the first has a space ("C:\Users\Howard Shen\anaconda3"), and the path on the second does not ("C:\Users\chowd\anaconda3")

Thanks for reminding a lot. I tried many ways to uninstall Anaconda3 in many ways including control panel and program management but failed. Then i through Lenovo PC Management to uninstall it and it worked. I think it might be the issue about the device.