Python错误:";LookupError:未注册编解码器搜索功能:can';“找不到编码”;

Python错误:";LookupError:未注册编解码器搜索功能:can';“找不到编码”;,python,canopy,Python,Canopy,我正在Windows7中运行Enthough Canope python发行版,无法在命令行中运行运行python。”python’提出: 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命令都会产生:

我正在Windows7中运行Enthough Canope python发行版,无法在命令行中运行运行python。”python’提出:

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命令都会产生:

>>> x = 5
LookupError: no codec search functions registered: can't find encoding

知道为什么会这样吗?我可以很好地运行ipython,但我担心无法运行基本python会妨碍安装新软件包等其他功能。感谢您的帮助。

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

无论如何,当您从终端启动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.
>>>

谢谢你让我走上了正轨。我的路径设置到了错误的文件夹:我添加了
。\enthund\corporation\App
(其中确实包含python可执行文件,但不是正确的),但它应该是
。\enthund\corporation\System\Scripts
Geotheory,不,您描述的系统路径仍然不正确!在你有“系统”的地方,它应该是“用户”。请参阅本文: