Jump to content

[Inactive] Ricky NLTK and heapq installation request (python libraries)


arabich

Recommended Posts

Greetings, 

 

I am new to heliohost, using Ricky, and I'm working on a project that required 2 python libraries that wasn't available on heliohost.

This is the version that works for me without getting a 500 error

#!/usr/bin/python

I'm not sure which version is running with that definition, but it's the only one working.

I really need the NLTK version after 2017 (NLTK 3.3 or above) and heapq package to complete my code please if it's capable on the server. 

If it's not possible, I would really appreciate it if you could help me to install it directly with the pip! 

 

PS: I tried to install it using various ways, one of it was (got 500 error): 

#!/usr/bin/python
import cgi
from subprocess import call
from sys import executable
import pip
call([executable,'-m', 'pip', 'install','--trusted-host=pypi.org', '--trusted-host=files.pythonhosted.org', 'nltk']) 

Thank you very very much for your work!!

Please keep the awesome work

Edited by arabich
Link to comment
Share on other sites

NLTK requires Python versions 3.5, 3.6, 3.7, or 3.8

#!/usr/bin/python

This is python 2.7 which does not support nltk. Would you like me to install nltk on python 3.6? You'll have to switch to the shebang #!/usr/bin/python3.6
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...