Pointing bash to a python installed on windows

后端 未结 3 565
长情又很酷
长情又很酷 2021-02-04 11:05

I am using Windows 10 and have Python installed. The new update brought bash to windows, but when I call python from inside bash, it refers to the Python installation which came

3条回答
  •  别跟我提以往
    2021-02-04 11:42

    I do not have Windows 10 installed, but I use Babun and I had the same problem. As I read aliases work well in Windows 10 shell so simply add alias in your .bashrc pointing to your Python installation directory:

    alias python /mnt/c/Python27/python
    

提交回复
热议问题