[PYTHON] When I start the virtual environment of conda, the prompt of bash collapses

When I started the virtual environment of conda, the prompt of bash collapsed.

Normal behavior

[user@hostname pwd]$
[user@hostname pwd]$ source activate test
(test)[user@hostname pwd]$

What happened

[user@hostname pwd]$
[user@hostname pwd]$ source activate test
(test)

The root cause is unknown, but it was because CONDA_PS1_BACKUP =" $ PS1 " was not read and was CONDA_PS1_BACKUP = when source activate was performed.

For the time being, describe the following in .bashrc and respond. export CONDA_PS1_BACKUP="[\u@\h \W]$ "

There was a discussion on github, but it was unclear how it was resolved. .. .. https://github.com/conda/conda/issues/4916

Recommended Posts

When I start the virtual environment of conda, the prompt of bash collapses
Operation memo of Conda virtual environment
About the virtual environment of python version 3.7
Precautions when installing packages in the conda environment
I want to use Linux commands at the command prompt! Use Linux commands at the command prompt instead of Git Bash
I want to be notified of the connection environment when the Raspberry Pi connects to the network
[Anaconda] Activate the virtual environment
The goodness of the touch screen disappeared when the tablet PC was made into a Manjaro i3 environment
When you want to use multiple versions of the same Python library (virtual environment using venv)
[Understanding in the figure] Management of Python virtual environment by Pipenv
PATH when using ANACONDA virtual environment with Pycharm (as of Mac 2020/10/03)
I studied with Kaggle Start Book on the subject of kaggle [Part 1]
[Windows + anaconda] Automatically activate the environment when the command prompt is started
What happens when I change the hyperparameters of SVM (RBF kernel)?
A story when a directory is buggy with the django-admin start project command in a virtual environment using Pipenv
Start of self-made OS 1. Environment construction
I investigated the mechanism of flask-login!
Environment construction memo of pyenv + conda
How to easily switch the virtual environment created by Conda on Jupyter
VS Code freezes & PC crashes when I start the server with go