0

When I try to install Colab (via. pip), I get the following error:

`(.venv) PS F:\PythonProject\Übeersetzung_KI> pip install colab
Collecting colab
  Using cached colab-1.13.5.tar.gz (567 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      error in colab setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)
          pytz>=2011n
              ~~~~~~^
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.`

I tried to reinstall Jupyter and Pycharm, but the error persists.

EDIT: I fixed the problem by install "Desktop development with C++" workload in Visual Studio.

8
  • The pytz>=2011n seems to be the problematic part. There may be a typo or formatting error in the package's dependency specification 2011n ?? Commented Mar 25, 2024 at 17:11
  • @user70 do you know how to fix ist? Commented Mar 25, 2024 at 17:16
  • unfortunatelly not, I'm not familiar with colab environment :( Commented Mar 25, 2024 at 17:23
  • 1
    stackoverflow.com/a/77704895/7976758 Are you sure you want to install pypi.org/project/colab and not pypi.org/project/google-colab ? Are you sure you want to install google-colab from PyPI and not from GitHub? stackoverflow.com/a/77829634/7976758 Commented Mar 25, 2024 at 18:21
  • stackoverflow.com/a/58669921/7976758 For the generic error "error in setup command: install_requires must be a string or list of strings" the solution is pip install --upgrade pip setuptools . See stackoverflow.com/… Commented Mar 25, 2024 at 18:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.