问题
I am new to python. I am installing Anaconda 3 2020.02 (64-bit) on my windows 7 laptop. It get stuck at file name as anaconda-2020.02-py37_tar.bz2 I tried multiple time but it's happening everytime
回答1:
I had faced the same issue as well on my Windows 10 desktop. All I see is lots of idle conda processes in Task Manager and the installer stuck on anaconda-2020.02-py37_0.tar.bz2. Extracting the anaconda-2020.02-py37_0.tar.bz2 file with 7zip while the installer was stuck did not help.
I solved the problem by running the installer on a separate Windows 10 machine which does not have trouble running the installer. I then moved the Anaconda3
installation folder to my problematic machine.
Now this does not normally work and anaconda highly recommends installing by running the installer instead of transplanting the folder. But we can hack it to work (as far as I have tested) by doing the following:
1) Using a program, search through every text file (.cmake, .txt, .sh, ..py, .pc, .prl, .conf) for string instances of the old full path to Anaconda3
on the original installation directory and replace them with the full path to the new Anaconda3
installation directory.
Some paths may use double backslash \\
, single backslash \
, forward slash /
or even a mix of them. Be careful to handle all these cases.
2) Some numpy related text files may contain paths to C:\Program Files(x86)\IntelSWTools\compilers_and_libraries_2020.X.XXX\...
. Be sure to change this path to the available intel accelerated libraries on the new machine.
Additionally, copy over the start menu program shortcuts (found in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3(64 bit)
) to the same location on the new machine. Right click on each shortcut file to change the target path.
If the transplanting worked, on the problematic machine you should be able to launch Anaconda prompt from the Start Menu, launch spyder, and subsequently run numpy functions.
This is a hackish solution. But until we can find the root cause of the installation issue this is the only way I can install Anaconda-2020.02. I am waiting to see if there are better ways to fix this problem.
来源:https://stackoverflow.com/questions/60915224/anaconda-installation-get-stuck-at-extract-anaconda-2020-02-py37-0-tar-bz2