Reputation: 1609
please I need your help here!
My system crashes each time i run a python command in terminal. When i run something like python app.py
, my Mac will crash and bounce, and reset.
In Terminal,
When i run python -V
, it returns Python 3.7.6
,
When i run python3 -V
, it returns Python 3.8.5
When i run which python
, it returns /opt/miniconda3/bin/python
.
A moment ago, i was trying to build a standalone app, and turned on virtualenv. However no matter how hard i tried, i failed. Then i deleted the virtualenv folder in the app folder.
Perhaps during the development processes, in Visual Studio Code, i accidentally "linked" the virtualenv with the python interpreter 3.7 (/opt/miniconda3/bin/python), which was set as the default python system long ago (i can't even recall when and how). After the virtualenv folder deletion, i remember the interpreter had the word "cached" in the front of the python version. Somehow i turned on and off this and that, and restarted the app, i have get rid of the word "cached". But the system still crashes .
My Mac crashes now every time i run a python command in Terminal. Please help!
i even have tried update conda update conda
, it says no such directory,
ofcoruse i then tried update miniconda, same answer.
Upvotes: 1
Views: 817
Reputation: 3842
You should remove it from your path.
To do so, check for the miniconda3 entry in the file named ~/.bashrc
, ~/.bash_profile
, and /etc/profile
file and comment out the line:
export PATH=/opt/miniconda3/bin:$PATH
by preceding it with the #
character.
Upvotes: 2