My default python is 2.7, but have to do this project in python3.5
I installed pycorenlp
through this command line: pip3 install pycorenlp
.
And it is showing I have already installed it:
Requirement already satisfied (use --upgrade to upgrade): pycorenlp in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
Requirement already satisfied (use --upgrade to upgrade): requests in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from pycorenlp)
However, when I type python3.5
through terminal to enter into python environment, then type from pycorenlp import StanfordCoreNLP
, it is showing error:
ImportError: No module named pycorenlp
I have also tried the solutions here but for python3.5, such as using sudo
, chmod
, none of them worked.
Do you know how to solve this problem? I have to run the code through the terminal, and have to use pycorenlp
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…