Python错误:“LookupError:未注册编解码器搜索函数:找不到编码”

2024-10-01 15:40:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我在Windows7中运行的是Entough Canope python发行版,不能在命令行中运行正在工作的pythonpython'带来了:

Python 2.7.3 |CUSTOM| (default, Aug  8 2013, 05:30:12) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

但是任何python命令都会产生:

^{pr2}$

知道为什么会这样吗?我可以很好地运行ipython,但我担心不能运行基本python会妨碍其他功能,比如安装新包。感谢帮助。在


Tags: 命令行defaultontypecustombithelpamd64
1条回答
网友
1楼 · 发布于 2024-10-01 15:40:53

您是否将Canopy用户Python作为默认Python?我猜你没有。这样做将从命令行调用cabing的用户python可执行文件,x=5应该可以工作。另一种实现相同效果的方法是从Windows开始菜单打开一个“Canopy命令提示符”窗口:这只会使Canopy成为该会话的默认python。要访问它,Start > All programs > Enthought Canopy > Canopy Command Prompt

不管怎样,当您从终端启动Canopy的python时,您应该看到:

C:\Users\jrocher\> python
Enthought Canopy Python 2.7.3 | 32-bit | (default, Dec  2 2013, 16:14:17) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

相关问题 更多 >

    热门问题