Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

hjjjbh

117 views
ubuntu2204
Kernel: Python 3 (system-wide)

The code below was generated by GPT-3.5 using this prompt:

A cell that install all the package use in open ai and anthropic llm

!pip install openai
Defaulting to user installation because normal site-packages is not writeable WARNING: Ignoring invalid distribution -andas (/usr/local/lib/python3.10/dist-packages) Requirement already satisfied: openai in /usr/local/lib/python3.10/dist-packages (1.13.3) Requirement already satisfied: anyio<5,>=3.5.0 in /usr/lib/python3/dist-packages (from openai) (3.5.0) Requirement already satisfied: distro<2,>=1.7.0 in /usr/lib/python3/dist-packages (from openai) (1.7.0) Requirement already satisfied: httpx<1,>=0.23.0 in /usr/local/lib/python3.10/dist-packages (from openai) (0.27.0) Requirement already satisfied: pydantic<3,>=1.9.0 in /usr/local/lib/python3.10/dist-packages (from openai) (2.4.2) Requirement already satisfied: sniffio in /usr/lib/python3/dist-packages (from openai) (1.2.0) Requirement already satisfied: tqdm>4 in /usr/local/lib/python3.10/dist-packages (from openai) (4.66.2) Requirement already satisfied: typing-extensions<5,>=4.7 in /usr/local/lib/python3.10/dist-packages (from openai) (4.10.0) Requirement already satisfied: certifi in /usr/local/lib/python3.10/dist-packages (from httpx<1,>=0.23.0->openai) (2022.6.15) Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.10/dist-packages (from httpx<1,>=0.23.0->openai) (1.0.2) Requirement already satisfied: idna in /usr/local/lib/python3.10/dist-packages (from httpx<1,>=0.23.0->openai) (2.8) Requirement already satisfied: h11<0.15,>=0.13 in /usr/lib/python3/dist-packages (from httpcore==1.*->httpx<1,>=0.23.0->openai) (0.13.0) Requirement already satisfied: annotated-types>=0.4.0 in /usr/local/lib/python3.10/dist-packages (from pydantic<3,>=1.9.0->openai) (0.5.0) Requirement already satisfied: pydantic-core==2.10.1 in /usr/local/lib/python3.10/dist-packages (from pydantic<3,>=1.9.0->openai) (2.10.1) WARNING: Ignoring invalid distribution -andas (/usr/local/lib/python3.10/dist-packages)
!pip install anthropic
Defaulting to user installation because normal site-packages is not writeable WARNING: Ignoring invalid distribution -andas (/usr/local/lib/python3.10/dist-packages) Collecting anthropic Downloading anthropic-0.25.7-py3-none-any.whl.metadata (18 kB) Requirement already satisfied: anyio<5,>=3.5.0 in /usr/lib/python3/dist-packages (from anthropic) (3.5.0) Requirement already satisfied: distro<2,>=1.7.0 in /usr/lib/python3/dist-packages (from anthropic) (1.7.0) Requirement already satisfied: httpx<1,>=0.23.0 in /usr/local/lib/python3.10/dist-packages (from anthropic) (0.27.0) Requirement already satisfied: pydantic<3,>=1.9.0 in /usr/local/lib/python3.10/dist-packages (from anthropic) (2.4.2) Requirement already satisfied: sniffio in /usr/lib/python3/dist-packages (from anthropic) (1.2.0) Requirement already satisfied: tokenizers>=0.13.0 in /usr/local/lib/python3.10/dist-packages (from anthropic) (0.13.2) Requirement already satisfied: typing-extensions<5,>=4.7 in /usr/local/lib/python3.10/dist-packages (from anthropic) (4.10.0) Requirement already satisfied: certifi in /usr/local/lib/python3.10/dist-packages (from httpx<1,>=0.23.0->anthropic) (2022.6.15) Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.10/dist-packages (from httpx<1,>=0.23.0->anthropic) (1.0.2) Requirement already satisfied: idna in /usr/local/lib/python3.10/dist-packages (from httpx<1,>=0.23.0->anthropic) (2.8) Requirement already satisfied: h11<0.15,>=0.13 in /usr/lib/python3/dist-packages (from httpcore==1.*->httpx<1,>=0.23.0->anthropic) (0.13.0) Requirement already satisfied: annotated-types>=0.4.0 in /usr/local/lib/python3.10/dist-packages (from pydantic<3,>=1.9.0->anthropic) (0.5.0) Requirement already satisfied: pydantic-core==2.10.1 in /usr/local/lib/python3.10/dist-packages (from pydantic<3,>=1.9.0->anthropic) (2.10.1) Downloading anthropic-0.25.7-py3-none-any.whl (870 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 870.8/870.8 kB 18.0 MB/s eta 0:00:00 0:00:01 WARNING: Ignoring invalid distribution -andas (/usr/local/lib/python3.10/dist-packages) Installing collected packages: anthropic Successfully installed anthropic-0.25.7