Install Cybertensor
Before you can start developing, you must install Cybertensor and then create Cybertensor wallet.
Upgrade
If you already installed Cybertensor, make sure you upgrade to the latest version. Run the below command:
or
Install on macOS and Linux
You can install Cybertensor on your local machine in either of the following ways. Make sure you verify your installation after you install:
- Using
pip3 install. - From source.
Using pip3 install
From source
-
Clone the Cybertensor repo
-
We recommend you first activate a Python virtual environment
-
Install with
python3
Install on Windows
To install and run Cybertensor on Windows you must install WSL 2 (Windows Subsystem for Linux) on Windows and select Ubuntu Linux distribution.
After you installed the above, follow the same installation steps described above in Install on macOS and Linux.
:::danger Limited support on Windows While wallet transactions like delegating, transfer, registering, staking can be performed on a Windows machine using WSL 2, the mining and validating operations are not recommended and are not supported on Windows machines. :::
Verify the installation
You can verify your installation in either of the two ways as shown below:
Verify using the ctcli command
Using the Cybertensor Command Line Interface.
which will give you the below output:
usage: ctcli <command> <command args>
cybertensor cli <version number>
positional arguments:
...
You will see the version number you installed in place of <version number>.
Verify using Python interpreter
-
Launch the Python interpreter on your terminal.
-
Enter the following two lines in the Python interpreter.
The Python interpreter output will look like below:
3.11.6 , , or >>> >>> < >
You will see the version number you installed in place of <version number>.
Verify by listing axon information
You can also verify the Cybertensor installation by listing the axon information for the neurons. Enter the following lines in the Python interpreter.
>>>
>>> =
>>>
The Python interpreter output will look like below.