HOW TO: Install the CLTK successfully

CLTK v. 1.2.1 with Python v. 3.11 on Fedora 39 Workstation

My Environment:

Step by step

  1. Install Fedora 39 in VMWare Fusion, and install all updates.
  2. primus@fedora:~ $ sudo dnf update

    Or via Software program in GUI.

  3. Check python version:
  4. primus@fedora:~ $ python --version

    Python 3.12.1

  5. Check pip version:
  6. primus@fedora:~ $ pip --version

    pip 23.2.1 from /usr/lib/python3.12/site-packages/pip (python 3.12)

    pip had not been installed by default: I was prompted to install it (package name: python3-pip).

  7. As the default Python version in Fedora 39 is 3.12, we must install Python 3.11 manually:
  8. primus@fedora:~ $ sudo dnf install python3.11

    All of the above steps (1-4) are entered globally, meaning from my user home prompt: primus@fedora:~ $. In other words, not from inside the virtual environment, which we haven't created yet.

  9. Create a directory to house multiple virtual environments, should I want to create more at a later date.
  10. primus@fedora:~ $ mkdir PyEnvirons

  11. Create the virtual environment for CLTK:
  12. primus@fedora:~ $ cd PyEnvirons

    primus@fedora:~/PyEnvirons $ python3.11 -m venv cltk-venv

    The second command creates a directory called "cltk-venv" in ~/PyEnvirons and populates it with Python3.11 and related files. Notice the command "python3.11" rather than "python". This forces the use of v. 3.11, which is the most recent version CLTK supports. The command "python" uses the default, most current Python version 3.12.1.

  13. From the ~/PyEnvirons directory, activate the virtual environment:
  14. primus@fedora:~/PyEnvirons $ source cltk-venv/bin/activate

    The prompt will change, and you will see "(cltk-venv)" before the usual prompt.


    Versions within the Python v. 3.9 virtual environment after activation:

    (cltk-venv) primus@fedora:~/PyEnvirons$ python --version

    Python 3.11.8

    (cltk-venv) primus@fedora:~/PyEnvirons$ pip --version

    pip 23.2.1 from /home/primus/PyEnvirons/cltk-venv/lib64/python3.11/site-packages/pip (python 3.11)


  15. Now that your virtual environment has been activated, install the CLTK there. Within your virtual environment, the "python" command uses Python v. 3.11.
  16. So, with (cltk-venv) before your usual prompt, type:

    (cltk-venv) primus@fedora:~/PyEnvirons $ pip install cltk==1.2.1 to install CLTK

I played around with the commands on https://docs.cltk.org/en/latest/quickstart.html to test the installation.

Getting Out

To exit out of python: >>> exit()

To exit out of the virtual environment:

(cltk-venv) primus@fedora:~/PyEnvirons $ deactivate





Notes to self:

cltk-1.2.1-py3-none-any.whl

CLTK Packages Successfully Installed

MarkupSafe-2.1.5

PyYAML-6.0.1

$annotated-types-0.6.0

$blis-0.7.11

$boltons-21.0.0

$catalogue-2.0.10

$certifi-2024.2.2

$charset-normalizer-3.3.2

$click-8.1.7

$cloudpathlib-0.16.0

$cltk-1.2.1

$confection-0.1.4

$cymem-2.0.8

$emoji-2.10.1

$filelock-3.13.1

$fsspec-2024.2.0

$gensim-4.3.2

$gitdb-4.0.11

$gitpython-3.1.42

$greek-accentuation-1.2.0

$idna-3.6

$jinja2-3.1.3

$joblib-1.3.2

$langcodes-3.3.0

$mpmath-1.3.0

$murmurhash-1.0.10

$networkx-3.2.1

$nltk-3.8.1

$numpy-1.26.4

$nvidia-cublas-cu12-12.1.3.1

$nvidia-cuda-cupti-cu12-12.1.105

$nvidia-cuda-nvrtc-cu12-12.1.105

$nvidia-cuda-runtime-cu12-12.1.105

$nvidia-cudnn-cu12-8.9.2.26

$nvidia-cufft-cu12-11.0.2.54

$nvidia-curand-cu12-10.3.2.106

$nvidia-cusolver-cu12-11.4.5.107

$nvidia-cusparse-cu12-12.1.0.106

$nvidia-nccl-cu12-2.19.3

$nvidia-nvjitlink-cu12-12.3.101

$nvidia-nvtx-cu12-12.1.105

$packaging-23.2

$preshed-3.0.9

$protobuf-4.25.3

$pydantic-2.6.1

$pydantic-core-2.16.2

$rapidfuzz-3.6.1

$regex-2023.12.25

$requests-2.31.0

$scikit-learn-1.4.1.post1

$scipy-1.12.0

$smart-open-6.4.0

$smmap-5.0.1

$spacy-3.7.2

$spacy-legacy-3.0.12

$spacy-loggers-1.0.5

$srsly-2.4.8

$stanza-1.7.0

$stringcase-1.2.0

$sympy-1.12

$thinc-8.2.3

$threadpoolctl-3.3.0

$toml-0.10.2

$torch-2.2.0

$tqdm-4.66.2

$triton-2.2.0

$typer-0.9.0

$typing-extensions-4.9.0

$urllib3-2.2.0

$wasabi-1.1.2

$weasel-0.3.4