I have to re-install Anaconda with wget every time before I can use the conda command.

Asked 2 years ago, Updated 2 years ago, 112 views

You can install Anaconda with wget by logging in to the AWS terminal, but if you lose connectivity with packet_write_wait: Connection to xxx port 22: Brokenpipe, you must install Anaconda to use the conda command.

Why should I install it every time?What is the reason for this?

execution command

wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda3-4.0.0-Linux-x86_64.sh

python aws anaconda

2022-09-30 21:28

1 Answers

I think it's because PATH doesn't go through.Try running conda after executing the following command:

export PATH=~/anaconda3/bin:$PATH

To use Anaconda, you must run the command every time.If that's troublesome, try registering with ~/.bashrc.

Also, when you install Anaconda, you will see a screen where you select the option "Do you wish the installer to prepend the Anaconda 3 install location to PATH in your /home ///.bashrc?" when you type yes, it will automatically register with ~/.bashrc.

For Linux, the option is No by default.Unlike Windows, the reason for the No is probably due to the problem of using Python installed on the Linux side or using commands installed on ~/anaconda3/bin in priority over operating system.


2022-09-30 21:28

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.