0

I am trying to run a python script with exec in PHP.

if I run it on anaconda it works properly.

But with exec or cmd the library nltk give an error:

[nltk_data] Error loading stopwords: <urlopen error unknown url type: https>

py = 3.7

Andrea
  • 91
  • 1
  • 1
  • 8

1 Answers1

0

exec(open("./filename").read())

follow this thread it might be helpfull:

What is an alternative to execfile in Python 3?

Amir Kedem
  • 68
  • 1
  • 9