我使用python v2.7.3和scipy v0.11.0与py2exe v0.6.10在64位计算机上使用来自Christoph Gohlke的 64位版本的软件包得到以下错误消息.如果有人能提供相关和有用的建议,我将非常感激.这是错误消息:
Traceback (most recent call last):
File "test2.py", line 4, in <module>
File "scipy\sparse\__init__.pyo", line 191, in <module>
File "scipy\sparse\csgraph\__init__.pyo", line 146, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyo", line 12, in <module>
File "scipy\sparse\csgraph\_shortest_path.pyo", line 10, in __load
File "_shortest_path.pyx", line 18, in init scipy.sparse.csgraph._shortest_path (scipy\sparse\csgraph\_shortest_path.c:14235)
ImportError: No module named _validation
Run Code Online (Sandbox Code Playgroud)
编译和运行可执行文件工作在旧的32位笔记本电脑(32位版本的所有东西),所以我想我可能不会包括我需要的一切.我新创建的test2.exe文件正确创建并显示相同的图形,如scipy的Getting Started页面所示.这是我的测试脚本:
# test2.py
# code is from the scipy web site example and works in Idle
from scipy import sparse
from scipy …Run Code Online (Sandbox Code Playgroud) 使用python 2.7.3和pandas 0.10.1,当我尝试使用**操作来计算功率时,我得到了一个弃用警告(数学,而不是热力学).在文档中,它介绍了对Series和DataFrame算术运算使用add,sub,mul和div.但是,我找不到任何涉及**的东西,如3**2 = 9.除了使用**我还能做什么,希望最好?