sloria / TextBlob

Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more.
https://textblob.readthedocs.io/
MIT License
9.08k stars 1.13k forks source link

Error installing textblob on pycharm #349

Open nadahashmi opened 3 years ago

nadahashmi commented 3 years ago

hi, I've tried to install textblob in numerous ways, but continue to get this error:

Collecting textblob Using cached textblob-0.15.3-py2.py3-none-any.whl (636 kB) Collecting nltk>=3.1 Using cached nltk-3.5.zip (1.4 MB) Requirement already satisfied: click in /Users/nhashmi/Twitter/lib/python3.8/site-packages (from nltk>=3.1->textblob) (7.1.2) Requirement already satisfied: joblib in /Users/nhashmi/Twitter/lib/python3.8/site-packages (from nltk>=3.1->textblob) (0.17.0) Collecting regex Using cached regex-2020.10.23.tar.gz (690 kB) Collecting tqdm Using cached tqdm-4.51.0-py2.py3-none-any.whl (70 kB) Using legacy 'setup.py install' for nltk, since package 'wheel' is not installed. Using legacy 'setup.py install' for regex, since package 'wheel' is not installed. Installing collected packages: regex, tqdm, nltk, textblob Running setup.py install for regex: started Running setup.py install for regex: finished with status 'error'

DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333. ERROR: Command errored out with exit status 1: command: /Users/nhashmi/Twitter/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/70/z4mp0z_j61j67rr3j8h46234w3wkkr/T/pycharm-packaging/regex/setup.py'"'"'; file='"'"'/private/var/folders/70/z4mp0z_j61j67rr3j8h46234w3wkkr/T/pycharm-packaging/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/70/z4mp0z_j61j67rr3j8h46234w3wkkr/T/pip-record-7j_ymwp4/install-record.txt --single-version-externally-managed --compile --install-headers /Users/nhashmi/Twitter/include/site/python3.8/regex cwd: /private/var/folders/70/z4mp0z_j61j67rr3j8h46234w3wkkr/T/pycharm-packaging/regex/ Complete output (19 lines): running install running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.8 creating build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/init.py -> build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/regex.py -> build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/_regex_core.py -> build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/test_regex.py -> build/lib.macosx-10.9-x86_64-3.8/regex warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'regex._regex' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/regex_3
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/nhashmi/Twitter/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c regex_3/_regex.c -o build/temp.macosx-10.9-x86_64-3.8/regex_3/_regex.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command 'gcc' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /Users/nhashmi/Twitter/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/70/z4mp0z_j61j67rr3j8h46234w3wkkr/T/pycharm-packaging/regex/setup.py'"'"'; file='"'"'/private/var/folders/70/z4mp0z_j61j67rr3j8h46234w3wkkr/T/pycharm-packaging/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/70/z4mp0z_j61j67rr3j8h46234w3wkkr/T/pip-record-7j_ymwp4/install-record.txt --single-version-externally-managed --compile --install-headers /Users/nhashmi/Twitter/include/site/python3.8/regex Check the logs for full command output.