Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anaconda Python installation error

I get the following error during Python 2.7 64-bit windows installation. I previously installed python 3.5 64-bit and it worked fine. But during python 2.7 installation i get this error:

Traceback (most recent call last):
File "C:\Anaconda2\Lib\_nsis.py", line 164, in <module> main()
File "C:\Anaconda2\Lib\_nsis.py", line 150, in main
  mk_menus(remove=False)
File "C:\Anaconda2\Lib\_nsis.py", line 94, in mk_menus
  err("Traceback:\n%s\n" % traceback.format_exc(20))
IOError: [Errno 9] Bad file descriptor

Kindly help me out.

like image 641
el323 Avatar asked Jan 14 '16 01:01

el323


People also ask

Why Anaconda is not installing?

Anaconda installs and updates can silently fail due to conflicts with 3rd party antivirus (for me it's WebRoot ) programs. An indicator of Anaconda antivirus conflicts is missing .exe and . bat files, and sometimes requests to reboot. The fix is to shutdown the antivirus program and reinstall Anaconda .

Should I uninstall Python before installing Anaconda?

Even if you already have a system Python, another Python installation from a source such as the macOS Homebrew package manager and globally installed packages from pip such as pandas and NumPy, you do not need to uninstall, remove, or change any of them before using conda.


2 Answers

I had the same problem today. I did the following to get this fixed:

First, open a DOS prompt and admin rights. Then, go to your Anaconda2\Scripts folder. Then, type in:

conda update conda

and allow all updates. One of the updates should be menuinst.

Then, change to the Anaconda2\Lib directory, and type in the following command:

..\python _nsis.py mkmenus

Wait for this to complete, then check your Start menu for the new shortcuts.

Steve

like image 70
SteveY Avatar answered Oct 11 '22 15:10

SteveY


It may be caused by file writing privilege. Or, you can only install it for the local/current user instead of all users.

like image 36
user5425156 Avatar answered Oct 11 '22 17:10

user5425156