开发者

Running IPython after changing the filename of python.exe

开发者 https://www.devze.com 2023-04-12 10:36 出处:网络
If I rename the python interpreter from C:\\Python27\\python.exe to C:\\Python27\\python27.exe and run it, it will not complain.

If I rename the python interpreter from C:\Python27\python.exe to C:\Python27\python27.exe and run it, it will not complain.

But if I 开发者_开发技巧now try to run C:\Python27\Scripts\ipython.exe, it will fail to start because now the python interpreter has a different filename.

My question is: how do I configure IPython (ms windows) to start up a python interpreter which has a different filename than python.exe?


Try to find Python in windows registry and changes path to python. After that try to reinstall ipython.


I do not know if there is a config file where you can change, but you may have to recompile Ipython and change the interpreter variables. But why do you need to rename it to python27.exe when it already is in a python27 folder?


instead of renaming python.exe, make sure the path to the python you want to run is before the path to other pythons


Found a solution: python27.exe c:\Python27\Scripts\ipython-script.py

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号