'No default toolchain configured after installing rustup

I installed Rust using rustup, but when I try to enter a Rust command like cargo or rustc in my console, the following error appears:

error: no default toolchain configured

Is this a known issue?



Solution 1:[1]

The problem is due to my connection and my proxy which didn't allow rustc, cargo, and others to be downloaded.

I thought that the all the executables were all-in-one but apparently not.

Solution 2:[2]

In my case, I had multirust installed and the following worked for me:

multirust install stable
multirust default stable

Solution 3:[3]

I installed rust with root, but my IDE doesn't run as root, so I installed rust without root, all worked well.

Solution 4:[4]

I don't know how performant this would be, but this appears to work:

import vaex

# Example data that you provided
df = vaex.from_dict({'lower': ['123456789', '222222222222222222222222', '33333333333333333333333333333333'],
                     'topdigram': ['12', '22', '33']
                    })

# Create a custom function that does the replacing
# This is needed since the value you want to replace changes from row to row
def my_replace(x, old, new='x'):
    return x.replace(old, new)

# Use apply (ideally you want to avoid apply, but I don't know how in this case) At least you get multiprocessing by default with the vaex apply!
df['new_string'] = df.apply(my_replace, arguments=(df.lower, df.topdigram))
print(df)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Shepmaster
Solution 2 anothernode
Solution 3 Kaki
Solution 4 Joco