通过首先创建控制盘来安装python模块
我只是下载了一些文件来用python构建一个API——关于该API的简短图腾表明,为了将其安装为一个模块,必须执行以下操作:通过首先创建控制盘来安装python模块,python,setup.py,Python,Setup.py,我只是下载了一些文件来用python构建一个API——关于该API的简短图腾表明,为了将其安装为一个模块,必须执行以下操作: * you can use this to build a wheel python3 setup.py bdist_wheel * you can use this to install the wheel python3 -m pip install --user --upgrade dist/ibapi-9.73.1-py3-none-any.whl 这看起
* you can use this to build a wheel
python3 setup.py bdist_wheel
* you can use this to install the wheel
python3 -m pip install --user --upgrade dist/ibapi-9.73.1-py3-none-any.whl
这看起来很简单,但我与python的这一方面完全不同,有点不知所措。。。我试图在包含API的文件夹中运行命令python3 setup.py bdist_wheel
,并首先进入python 3环境(通过键入source activate python3
),我使用的是anaconda。两者都返回错误setup.py找不到
有人知道这两个命令应该在哪里运行才能正确安装模块吗?您应该为模块编写安装脚本
查看您可以按照以下步骤操作:
cd C:\TWS-API\source\pythonclient
python setup.py bdist\u wheel
cd C:\Python36\Scripts
python-mpip安装--升级“C:\twsapi\source\pythonclient\dist\ibapi-9.73.2-py3-none-any.whl”
注意:将python和API版本更改为您正在使用的版本。您是否能够构建wheel文件?我正在尝试执行相同的操作,但收到一条返回消息,说bdist_wheel不作为命令存在。