[英]First time to install python, and test in git bash
操作系统:Windows 10
这是第一次安装python。
我想在 git bash 上运行 python。
我以前没有使用过 python 或 git bash。
在便携式 git 文件夹中运行 git-bash.exe,
并检查python的版本,然后运行ib。
python --version ./ib
它说没有这样的文件或目录。 代码 ./ib 不起作用。 你可以教我吗?
如果您需要更多信息,可以问我!(任务/截图)
您需要将包含 python 可执行文件的目录添加到PATH
变量中。 一种方法是在主目录中编辑.bashrc
并添加类似于
export PATH=$PATH:/path/to/python
将/path/to/python
替换为python3
所在的目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.