Just started to learn python when using the Ipython interpreter, very useful, and later found that Bpython more powerful, Linux system installed basically no problem, but installation in Windows is not easy ah. Using Google search, found bpython-curses This command can run, referring to the URL of the https://github.com/bpython/bpython/issues/ 509 description of the official window installation: https://docs.bpython-interpreter.org/windows.html
I'll tidy up the correct installation method below.
1. Install Bpython First
C:\users\administrator>pip Install Bpython
2. Test the Bpython, tipsNo module named '_curses'
C:\users\administrator>Bpythontraceback (most recent): File"E:\Program files\python36\lib\runpy.py", line 193,inch_run_module_as_main"__main__", Mod_spec) File"E:\Program files\python36\lib\runpy.py", line 85,inch_run_codeexec(Code, run_globals) File"E:\Program files\python36\scripts\bpython.exe\__main__.py", Line 5,inch<Module>File"E:\Program files\python36\lib\site-packages\bpython\curtsies.py", line 9, inch<module>Importcurtsies File"E:\Program files\python36\lib\site-packages\curtsies\__init__.py", Line4,inch<module> from. windowImportFullscreenwindow, Cursorawarewindow File"E:\Program files\python36\lib\site-packages\curtsies\window.py", line 11, inch<module>ImportBlessings File"E:\Program files\python36\lib\site-packages\blessings\__init__.py", Line5,inch<module>ImportCurses File"E:\Program files\python36\lib\curses\__init__.py", Line 13,inch<module> from_cursesImport*Modulenotfounderror:no module named'_curses'
3. Install the Cursers package
# go to this site to find the corresponding version of curses download down, http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses, this package temporarily pip can not download it, need to manually download and then use PIP installation C:\users\administrator>pip Install E:\TMP\CURSES-2.2-CP36-CP36M-WIN_AMD64.WHL
4. Test Bpython, TipsNo module named 'fcntl'
C:\users\administrator>Bpythontraceback (most recent): File"E:\Program files\python36\lib\runpy.py", line 193,inch_run_module_as_main"__main__", Mod_spec) File"E:\Program files\python36\lib\runpy.py", line 85,inch_run_codeexec(Code, run_globals) File"E:\Program files\python36\scripts\bpython.exe\__main__.py", Line 5,inch<Module>File"E:\Program files\python36\lib\site-packages\bpython\curtsies.py", line 9, inch<module>Importcurtsies File"E:\Program files\python36\lib\site-packages\curtsies\__init__.py", Line4,inch<module> from. windowImportFullscreenwindow, Cursorawarewindow File"E:\Program files\python36\lib\site-packages\curtsies\window.py", line 11, inch<module>ImportBlessings File"E:\Program files\python36\lib\site-packages\blessings\__init__.py", Line7,inch<module> fromFcntlImportIoctlmodulenotfounderror:no module named'Fcntl'
5. Modify the location of the startup Bpython
The installation location of my Bpyton is in E:\Program files\python36\scripts, we do not start Bpython start bpython-curses try.
C:\users\administrator>bpython-curses #可以运行了.
6. Command Rename under
Go to our E:\Program files\python36\scripts directory, bpython.exe,bpython-curses.exe backup first, then delete Bpython.exe, Modify Bpython-curses.exe to Bpython.exe
7. In the test, if not, you first shut down the terminal, re-open the test.
Can use the Bpython happily.
installation process for Windows Bpython