Pointing bash to a python installed on windows

后端 未结 3 563
长情又很酷
长情又很酷 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

    You have at least four options:

    1. Specify the complete absolute path to the python executable you want to use.
    2. Define an alias in your .bashrc file
    3. Modify the PATH variable in your .bashrc file to include the location of the python version you wish to use.
    4. Create a symlink in a directory which is already in your PATH.

提交回复
热议问题