question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip install / MacOS

See original GitHub issue

Describe the bug pip install looks like it’s successful (except error “cannon uninstall ‘PyYAML’”

Collecting cltk
  Using cached cltk-1.0.21-py3-none-any.whl (843 kB)
Collecting boltons<21.0.0,>=20.0.0
  Using cached boltons-20.2.1-py2.py3-none-any.whl (170 kB)
Requirement already satisfied: spacy<3.0.0,>=2.3.5 in /opt/anaconda3/lib/python3.8/site-packages (from cltk) (2.3.7)
Requirement already satisfied: greek-accentuation<2.0.0,>=1.2.0 in /opt/anaconda3/lib/python3.8/site-packages (from cltk) (1.2.0)
Requirement already satisfied: python-Levenshtein<0.13.0,>=0.12.0 in /opt/anaconda3/lib/python3.8/site-packages (from cltk) (0.12.2)
Processing /Users/markroberts/Library/Caches/pip/wheels/93/61/2a/c54711a91c418ba06ba195b1d78ff24fcaad8592f2a694ac94/fasttext-0.9.2-cp38-cp38-macosx_10_16_x86_64.whl
Collecting scikit-learn<0.25.0,>=0.24.2
  Using cached scikit_learn-0.24.2-cp38-cp38-macosx_10_13_x86_64.whl (7.2 MB)
Requirement already satisfied: stringcase<2.0,>=1.2 in /opt/anaconda3/lib/python3.8/site-packages (from cltk) (1.2.0)
Requirement already satisfied: tqdm<5.0.0,>=4.41.1 in /opt/anaconda3/lib/python3.8/site-packages (from cltk) (4.50.2)
Collecting PyYAML<6.0.0,>=5.4.1
  Using cached PyYAML-5.4.1-cp38-cp38-macosx_10_9_x86_64.whl (253 kB)
Requirement already satisfied: stanza<2.0.0,>=1.3.0 in /opt/anaconda3/lib/python3.8/site-packages (from cltk) (1.3.0)
Requirement already satisfied: nltk<4.0,>=3.5 in /opt/anaconda3/lib/python3.8/site-packages (from cltk) (3.5)
Requirement already satisfied: gitpython<4.0,>=3.0 in /opt/anaconda3/lib/python3.8/site-packages (from cltk) (3.1.24)
Requirement already satisfied: requests<3.0.0,>=2.22.0 in /opt/anaconda3/lib/python3.8/site-packages (from cltk) (2.24.0)
Requirement already satisfied: gensim<4.0.0,>=3.8.1 in /opt/anaconda3/lib/python3.8/site-packages (from cltk) (3.8.3)
Requirement already satisfied: srsly<1.1.0,>=1.0.2 in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (1.0.5)
Requirement already satisfied: setuptools in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (50.3.1.post20201107)
Requirement already satisfied: preshed<3.1.0,>=3.0.2 in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (3.0.6)
Requirement already satisfied: cymem<2.1.0,>=2.0.2 in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (2.0.6)
Requirement already satisfied: wasabi<1.1.0,>=0.4.0 in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (0.8.2)
Requirement already satisfied: catalogue<1.1.0,>=0.0.7 in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (1.0.0)
Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (1.0.6)
Requirement already satisfied: blis<0.8.0,>=0.4.0 in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (0.7.5)
Requirement already satisfied: thinc<7.5.0,>=7.4.1 in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (7.4.5)
Requirement already satisfied: plac<1.2.0,>=0.9.6 in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (1.1.3)
Requirement already satisfied: numpy>=1.15.0 in /opt/anaconda3/lib/python3.8/site-packages (from spacy<3.0.0,>=2.3.5->cltk) (1.19.2)
Requirement already satisfied: pybind11>=2.2 in /opt/anaconda3/lib/python3.8/site-packages (from fasttext<0.10.0,>=0.9.1->cltk) (2.8.1)
Requirement already satisfied: joblib>=0.11 in /opt/anaconda3/lib/python3.8/site-packages (from scikit-learn<0.25.0,>=0.24.2->cltk) (0.17.0)
Requirement already satisfied: scipy>=0.19.1 in /opt/anaconda3/lib/python3.8/site-packages (from scikit-learn<0.25.0,>=0.24.2->cltk) (1.5.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in /opt/anaconda3/lib/python3.8/site-packages (from scikit-learn<0.25.0,>=0.24.2->cltk) (2.1.0)
Requirement already satisfied: emoji in /opt/anaconda3/lib/python3.8/site-packages (from stanza<2.0.0,>=1.3.0->cltk) (1.6.1)
Requirement already satisfied: torch>=1.3.0 in /opt/anaconda3/lib/python3.8/site-packages (from stanza<2.0.0,>=1.3.0->cltk) (1.10.0)
Requirement already satisfied: six in /opt/anaconda3/lib/python3.8/site-packages (from stanza<2.0.0,>=1.3.0->cltk) (1.15.0)
Requirement already satisfied: protobuf in /opt/anaconda3/lib/python3.8/site-packages (from stanza<2.0.0,>=1.3.0->cltk) (3.19.1)
Requirement already satisfied: click in /opt/anaconda3/lib/python3.8/site-packages (from nltk<4.0,>=3.5->cltk) (7.1.2)
Requirement already satisfied: regex in /opt/anaconda3/lib/python3.8/site-packages (from nltk<4.0,>=3.5->cltk) (2020.10.15)
Requirement already satisfied: gitdb<5,>=4.0.1 in /opt/anaconda3/lib/python3.8/site-packages (from gitpython<4.0,>=3.0->cltk) (4.0.9)
Requirement already satisfied: typing-extensions>=3.7.4.3; python_version < "3.10" in /opt/anaconda3/lib/python3.8/site-packages (from gitpython<4.0,>=3.0->cltk) (3.7.4.3)
Requirement already satisfied: chardet<4,>=3.0.2 in /opt/anaconda3/lib/python3.8/site-packages (from requests<3.0.0,>=2.22.0->cltk) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /opt/anaconda3/lib/python3.8/site-packages (from requests<3.0.0,>=2.22.0->cltk) (1.25.11)
Requirement already satisfied: certifi>=2017.4.17 in /opt/anaconda3/lib/python3.8/site-packages (from requests<3.0.0,>=2.22.0->cltk) (2020.6.20)
Requirement already satisfied: idna<3,>=2.5 in /opt/anaconda3/lib/python3.8/site-packages (from requests<3.0.0,>=2.22.0->cltk) (2.10)
Requirement already satisfied: smart-open>=1.8.1 in /opt/anaconda3/lib/python3.8/site-packages (from gensim<4.0.0,>=3.8.1->cltk) (5.2.1)
Requirement already satisfied: smmap<6,>=3.0.1 in /opt/anaconda3/lib/python3.8/site-packages (from gitdb<5,>=4.0.1->gitpython<4.0,>=3.0->cltk) (5.0.0)
Installing collected packages: boltons, fasttext, scikit-learn, PyYAML, cltk
  Attempting uninstall: scikit-learn
    Found existing installation: scikit-learn 0.23.2
    Uninstalling scikit-learn-0.23.2:
      Successfully uninstalled scikit-learn-0.23.2
  Attempting uninstall: PyYAML
    Found existing installation: PyYAML 5.3.1
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

To Reproduce Steps to reproduce the behavior:

  1. Install Python version - 3.9.5
  2. Install CLTK version … whatever pip install installs
  3. In a script or REPL, run the following code … (include literal copy-paste)
  4. See error (include literal copy-paste)

Expected behavior A clear and concise description of what you expected to happen. Expecting to be able to load CLTK in a notebook. Get ModuleNotFound

Desktop (please complete the following information):

  • OS and version: [e.g. MacOS 10.15.6, Ubuntu 20.04] MacOS Monterrey (12.0.1)

Additional context Hoping to present CLTK in a NLP class at Syracuse. Hope I don’t have to say “couldn’t get it loaded… never mind”

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dodeketecommented, Dec 7, 2021

UPDATE - was able to create a venv and get CLTK to run. Wasn’t easy, but running. Thanks for the help!

0reactions
clemsciencescommented, Dec 8, 2021

It looks more like a pip problem than a CLTK one. I think we can close this issue. It may help other users in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install pip in macOS ? - GeeksforGeeks
Download and Install Pip on macOS. pip can be downloaded and installed usingthe command line by going through the following steps: · Verification ......
Read more >
How to Install Pip on Mac - phoenixNAP
Install Pip on macOS via get-pip.py · 1. Press Command + Space Bar and type in Terminal. Click the app icon to open...
Read more >
Installation - pip documentation v22.3.1
Python comes with an ensurepip module1, which can install pip in a Python environment. Linux. $ python -m ensurepip --upgrade ... Windows, Linux...
Read more >
How to Install PIP on a Mac - groovyPost
Open the Mac Terminal app via the Launchpad. · If PIP is missing, ensurepip will install PIP. Follow any additional on-screen instructions to ......
Read more >
How To Install PIP In Python On Mac - YouTube
In this video we talk about How To Install PIP In Python On Mac. Well as PIP is a part of the standard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found