avatar

Catalog
sudo python 和 python

https://www.cnblogs.com/ber619/p/13434236.html

sudo python 中 python版本使用问题,可以用重建到anaconda版本python的软连接方式解决:

python
1
2
3
sudo cp /usr/bin/python /usr/bin/python_bak
sudo rm /usr/bin/python
sudo ln -s /home/fry/anaconda3/envs/reId/bin/python /usr/bin/python

修改完成后再输入sudo python可以看到当前使用的是anaconda中的python3.6.

Author: 星星泡饭
Link: https://luoyou.art/2021/02/26/python/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Donate
  • 微信
    微信
  • 支付寶
    支付寶

Comment