vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 3
声望: 0

老板,我在家里电脑安装vnstation可以打开。公司电脑win7安装后打开没任何反应。。

装过D盘,装过C盘,其他的python也都卸载干净了,来来回回试了好多次就是不行。

请问怎么办。。。

Administrator
avatar
加入于:
帖子: 2135
声望: 96

cmd中运行python -m vnstation,看看有什么报错输出

Member
avatar
加入于:
帖子: 3
声望: 0

用Python的交易员 wrote:

cmd中运行python -m vnstation,看看有什么报错输出
用Python的交易员 wrote:
cmd中运行python -m vnstation,看看有什么报错输出


今天装了最新的2.0.8版本,cmd中运行python -m vnstation报错如下:

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>python -m vnstation
Traceback (most recent call last):
File "C:\vnstudio\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\vnstudio\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\vnstudio\lib\site-packages\vnstation__main.py", line 4, in <module >
cli()
File "C:\vnstudio\lib\site-packages\click\core.py", line 764, in
call__
return self.main(args, kwargs)
File "C:\vnstudio\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "C:\vnstudio\lib\site-packages\click\core.py", line 1114, in invoke
return Command.invoke(self, ctx)
File "C:\vnstudio\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "C:\vnstudio\lib\site-packages\click\core.py", line 555, in invoke
return callback(
args, **kwargs)
File "C:\vnstudio\lib\site-packages\click\decorators.py", line 17, in new_func

return f(get_current_context(), *args, **kwargs)

File "C:\vnstudio\lib\site-packages\vnstation\cli.py", line 15, in cli
run()
File "C:\vnstudio\lib\site-packages\click\core.py", line 764, in call
return self.main(args, kwargs)
File "C:\vnstudio\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "C:\vnstudio\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback,
ctx.params)
File "C:\vnstudio\lib\site-packages\click\core.py", line 555, in invoke
return callback(
args, **kwargs)
File "C:\vnstudio\lib\site-packages\vnstation\cli.py", line 20, in run
import vnstation.run
File "C:\vnstudio\lib\site-packages\vnstation\run.py", line 4, in <module>
from vnpy.trader.ui import QtGui, create_qapp
File "C:\vnstudio\lib\site-packages\vnpy\trader\ui__init.py", line 10, in <
module>
from .mainwindow import MainWindow
File "C:\vnstudio\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 13, in
<module>
from .widget import (
File "C:\vnstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 14, in <mo dule>
from ..engine import MainEngine
File "C:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 33, in <modul e>
from .setting import SETTINGS
File "C:\vnstudio\lib\site-packages\vnpy\trader\setting.py", line 7, in <modul e>
from .utility import load_json
File "C:\vnstudio\lib\site-packages\vnpy\trader\utility.py", line 13, in <modu le>
import numpy as np
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\num
py\
init.py", line 140, in <module>
from . import _distributor_init
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\num
py_distributor_init.py", line 26, in <module>
WinDLL(os.path.abspath(filename))
File "C:\vnstudio\lib\ctypes\
init.py", line 356, in init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 不是有效的 Win32 应用程序。

Member
avatar
加入于:
帖子: 3
声望: 0

我的系统是win7 , 64位操作系统

Administrator
avatar
加入于:
帖子: 2135
声望: 96

你的机器里有多个Python环境,冲突了,全部卸载干净,只装VNStudio

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3