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

Cannot Install on Windows #1574

Closed
terencen opened this issue Jan 2, 2017 · 27 comments
Closed

Cannot Install on Windows #1574

terencen opened this issue Jan 2, 2017 · 27 comments

Comments

@terencen
Copy link

terencen commented Jan 2, 2017

I'm having issues installing NLTK on a Windows 7 64-bit machine with Python 3.5 32-bit installed. I'm using the executable located here : https://pypi.python.org/pypi/nltk

However, I am prompted with an error after running the executable that reads:

"Python version -32 required, which was not found in the registry".

I've tried this installation against Windows 7 systems with Python 2.7, 3.4, 3.5 & 3.6 installed and they all fail with the same error. The 32-bit entry for Python exists in the Current User and Local Machine hives, however, the installation does not process.

Please help, thanks.

@stevenbird
Copy link
Member

cf #1079

@terencen
Copy link
Author

terencen commented Jan 2, 2017

This isn't quite the same issue I think; I'm running the 32-bit version of Python on a 64-bit OS. So the 32-bit installer of NLTK should work based on the requirements.. but it's not seeing the registry entries.

@alvations
Copy link
Contributor

@terencen in the Python interpreter, what is your output for:

>>> import struct
>>> print (struct.calcsize("P") * 8)

And what is your output for

>>> import platform
>>> platform.architecture()

@terencen
Copy link
Author

terencen commented Jan 3, 2017

print (struct.calcsize("P") * 8)
32

platform.architecture()
('32bit','WindowsPE')

@maitetaboada
Copy link

maitetaboada commented Jan 4, 2017

I'm having the same issue. Both terencen and I are trying to install (on different machines), but have the same issue.
Output for my Windows 10 machine is the same as terencen's:

Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import struct
>>> print (struct.calcsize("P") * 8)
32
>>> import platform
>>> platform.architecture()
('32bit', 'WindowsPE')
>>> 

@ruchiHub
Copy link

ruchiHub commented Jan 9, 2017

Similar error and outputs...Any suggestions?

@ruchiHub
Copy link

ok finally it did work:) Please ensure version compatibility. If you have downloaded python 3.5(32 bit) ...all installations/add on should be 32 bits...
http://web.cs.wpi.edu/~cs1004/a16/Resources/Windows/SettingUpPython_Windows.pdf
Good Luck!

@maitetaboada
Copy link

Thanks. I managed it with pip:

python -m pip install nltk

The executable doesn't work.

@sauras1304
Copy link

Thanks! Worked like a charm with pip

@stevenbird
Copy link
Member

Thanks @maitetaboada, @ruchiHub.
Have you resolved this issue @terencen?

@medhavi06
Copy link

Thank you so much @maitetaboada.

@kmstock
Copy link

kmstock commented Apr 5, 2017

Hi, I'm having the same problem, same output as terencen. Python 3.5 (also tried other versions), 64 bit computer but 32 bit python. I download the nltk executable, when I run it, following an introductory screen, it gives me: "Python version -32 required, which was not found in the registry".

Any help would be much appreciated.

@maitetaboada
Copy link

Hi, kmstock. It worked for me with the pip install. See above.

@kmstock
Copy link

kmstock commented Apr 5, 2017

Hi Maiteaboada, Thanks for that. I had tried your command yesterday without success, but with fresh eyes and a bit of other research, it seems to have worked. Many thanks!

@kebiro
Copy link

kebiro commented Aug 8, 2017

@maitetaboada
Thanks a lot!

@tiemoon
Copy link

tiemoon commented Sep 19, 2017

You can try using pip. As @maitetaboada mentioned. Her help worked for me

@johnGachihi
Copy link

Thanks @maitetaboada

@cfehr247
Copy link

Installed Python 3.5.0 32 bit on Windows, it did not create any registry entries - I manually added it to get NLTK installer to see it, but then there was an unhandled exception during the installation of "parameter count mismatch". Pip installation works fine, the executable installer should either be fixed or just removed since Pip install already is fine.

@bjpl
Copy link

bjpl commented Nov 11, 2017

Hi, I'm new to python. How do I go about the pip installation exactly? Thanks!

I'm running the right version, I think... Not sure what I am doing wrong. Any guidance would be appreciated.

Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

>>> python -m pip install nltk
SyntaxError: invalid syntax
>>> import struct
>>> print (struct.calcsize("P") * 8)
32
>>> import platform
>>> platform.architecture()
('32bit', 'WindowsPE')
>>> 

@hendro93
Copy link

@bjpl hello there

You should use 'pip' in command prompt, not in python. See example below:

C:\User\bjpl> python -m pip install nltk

hope this help u!

@bjpl
Copy link

bjpl commented Nov 11, 2017

Thanks @hendro93
I had to use py instead of python, but now eveything seems to be working!

@caitvanhoff
Copy link

Thanks @bjpl!! I was so close to giving up and then I used py instead of python and it worked!

@kparisa05
Copy link

Thanks maitetaboada. your solution worked for me.

@SepidehGoli
Copy link

Executables don't work at all! Try pip as maitetaboada said.

@Syntax3r
Copy link

Syntax3r commented Aug 3, 2018

do any one know how to add nltk library in ironpython? i try all solution almost :|

@VinayVashishta
Copy link

Thank you so much @maitetaboada.

@ghost
Copy link

ghost commented Dec 18, 2019

I tried pip too. python or py doesnt work either. It says
File "", line 1
py -m pip install nltk
^
SyntaxError: invalid syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests