Skip to content

[BUG] Error: No such command 'project' after installing colossalai-platform using pip #18

@lshmouse

Description

@lshmouse

Error: No such command 'project' after installing colossalai-platform using pip

~$ pip install colossalai-platform 
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6.
  from cryptography.utils import int_from_bytes
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: colossalai-platform in ./.local/lib/python3.6/site-packages (0.0.1)
Requirement already satisfied: click in ./.local/lib/python3.6/site-packages (from colossalai-platform) (8.0.4)
Requirement already satisfied: importlib-metadata in ./.local/lib/python3.6/site-packages (from click->colossalai-platform) (4.8.3)
Requirement already satisfied: zipp>=0.5 in ./.local/lib/python3.6/site-packages (from importlib-metadata->click->colossalai-platform) (3.6.0)
Requirement already satisfied: typing-extensions>=3.6.4 in ./.local/lib/python3.6/site-packages (from importlib-metadata->click->colossalai-platform) (3.10.0.2)
$ cap --help
Usage: cap [OPTIONS] COMMAND [ARGS]...

Options:
  -h, --help  Show this message and exit.

Commands:
  template  Manage your templates for training and inference
~$ cap project init train-reset-v0.0.1
Usage: cap [OPTIONS] COMMAND [ARGS]...
Try 'cap -h' for help.

Error: No such command 'project'.

Following error encountered when install colossalai-platform cli from git repo

~$ pip install git+https://github.com/hpcaitech/ColossalAI-Platform-CLI@main
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6.
  from cryptography.utils import int_from_bytes
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/hpcaitech/ColossalAI-Platform-CLI@main
  Cloning https://github.com/hpcaitech/ColossalAI-Platform-CLI (to revision main) to /tmp/pip-req-build-66npfy2a
  Running command git clone --filter=blob:none -q https://github.com/hpcaitech/ColossalAI-Platform-CLI /tmp/pip-req-build-66npfy2a
  Resolved https://github.com/hpcaitech/ColossalAI-Platform-CLI to commit 4c0625e111cafac33c3b92711cf24df8ef61ad4c
  Preparing metadata (setup.py) ... done
Requirement already satisfied: requests>=2 in ./.local/lib/python3.6/site-packages (from colossalai-platform==0.0.1) (2.27.1)
ERROR: Could not find a version that satisfies the requirement click~=8.1.6 (from colossalai-platform) (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.5.1, 0.6, 0.7, 1.0, 1.1, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1, 5.0, 5.1, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 6.7.dev0, 6.7, 7.0, 7.1, 7.1.1, 7.1.2, 8.0.0a1, 8.0.0rc1, 8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4)
ERROR: No matching distribution found for click~=8.1.6
~$ python --version
Python 3.6.9

Should I upgrade the python version?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions