Please ensure your drivetrain is clean and without any oil before you're going to install your new chain.
May consider to install a new cassette or at least carefully clean all drivetrain parts.
Also consider you need to re-wax your chain. Approximately it will last 300 - 500km, according to your usage (wet, dry, muddy)
The chain needs to run approximately 30mins on your bike (indoor or outdoor) until it runs smoothly. Avoid riding these first minutes on your brand new carpet as there will be pieces of wax coming of the chain.
Always ensure proper installation and regular maintenance for optimal performance and safety.