How to view the python installation location of the virtual environment installed by Anaconda on MAC

Thinking practice 2022-01-15 04:12:38 阅读数:163

view python installation location virtual

1. For example, I use conda activate pytorch Into the environment

Then I want to see the current environment python route , Input which python That's all right. .

2. Want to see conda Install all virtual environments under the python The path of , Input conda env list That's all right. .

(pytorch) jiangmaowei@localhost / % which python
/Users/jiangmaowei/opt/anaconda3/envs/pytorch/bin/python
(pytorch) jiangmaowei@localhost / % conda env list
# conda environments:
#
base /Users/jiangmaowei/opt/anaconda3
pytorch * /Users/jiangmaowei/opt/anaconda3/envs/pytorch

Reference material :

How to view Mac All of the ( Mainly local and Anaconda) python Installation position _Robin_Pi The blog of -CSDN Blog _mac see anaconda route

版权声明:本文为[Thinking practice]所创,转载请带上原文链接,感谢。 https://pythonmana.com/2021/12/202112122349443504.html