Ike Lee 2019-06-04 01:58 采纳率: 0%
浏览 5489
已结题

为什么在使用catalyst 时候一直有提示错误ImportError: cannot import name 'run_algorithm'?

如题:
以下为我的环境:
py 3.6
aiodns==1.1.1
aiohttp==3.5.4
alabaster==0.7.12
alembic==0.9.7
appnope==0.1.0
asn1crypto==0.24.0
astroid==2.2.5
async-timeout==3.0.1
attrdict==2.0.1
attrs==19.1.0
Babel==2.6.0
backcall==0.1.0
bcolz==1.2.1
bleach==3.1.0
boto3==1.5.27
botocore==1.8.50
Bottleneck==1.2.1
cchardet==2.1.1
ccxt==1.17.94
certifi==2019.3.9
cffi==1.12.3
chardet==3.0.4
click==6.7
cloudpickle==1.0.0
contextlib2==0.5.5
cryptography==2.6.1
cycler==0.10.0
cyordereddict==1.0.0
Cython==0.27.3
cytoolz==0.9.0.1
decorator==4.4.0
defusedxml==0.6.0
docutils==0.14
empyrical==0.2.2
enigma-catalyst==0.5.21
entrypoints==0.3
eth-abi==1.3.0
eth-account==0.2.3
eth-hash==0.2.0
eth-keyfile==0.5.1
eth-keys==0.2.2
eth-rlp==0.1.2
eth-typing==2.1.0
eth-utils==1.6.0
hexbytes==0.1.0
idna==2.8
idna-ssl==1.1.0
imagesize==1.1.0
inflection==0.3.1
intervaltree==2.1.0
ipykernel==5.1.0
ipython==7.5.0
ipython-genutils==0.2.0
isort==4.3.19
jedi==0.13.3
Jinja2==2.10.1
jmespath==0.9.4
jsonschema==3.0.1
jupyter-client==5.2.4
jupyter-core==4.4.0
keyring==18.0.0
kiwisolver==1.1.0
lazy-object-proxy==1.4.1
Logbook==0.12.5
lru-dict==1.1.6
lxml==4.3.3
Mako==1.0.7
MarkupSafe==1.1.1
matplotlib==3.1.0
mccabe==0.6.1
mistune==0.8.4
mkl-fft==1.0.12
mkl-random==1.0.2
more-itertools==7.0.0
multidict==4.5.2
multipledispatch==0.4.9
nbconvert==5.5.0
nbformat==4.4.0
networkx==2.1
numexpr==2.6.4
numpy==1.16.0
numpydoc==0.9.1
packaging==19.0
pandas==0.24.2
pandas-datareader==0.6.0
pandocfilters==1.4.2
parsimonious==0.8.1
parso==0.4.0
patsy==0.5.1
pexpect==4.7.0
pickleshare==0.7.5
prompt-toolkit==2.0.9
psutil==5.6.2
ptyprocess==0.6.0
pycares==3.0.0
pycodestyle==2.5.0
pycparser==2.19
pycryptodome==3.8.2
pyflakes==2.1.1
Pygments==2.4.0
pylint==2.3.1
pyOpenSSL==19.0.0
pyparsing==2.4.0
pyrsistent==0.14.11
PySocks==1.7.0
python-dateutil==2.8.0
python-editor==1.0.4
pytz==2019.1
pyzmq==18.0.0
QtAwesome==0.5.7
qtconsole==4.5.1
QtPy==1.7.1
Quandl==3.4.5
redo==2.0.1
requests==2.21.0
requests-file==1.4.3
requests-ftp==0.3.1
requests-toolbelt==0.8.0
rlp==1.1.0
rope==0.14.0
s3transfer==0.1.13
scipy==1.2.1
six==1.12.0
snowballstemmer==1.2.1
sortedcontainers==1.5.9
Sphinx==2.0.1
sphinxcontrib-applehelp==1.0.1
sphinxcontrib-devhelp==1.0.1
sphinxcontrib-htmlhelp==1.0.2
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.2
sphinxcontrib-serializinghtml==1.1.3
spyder==3.3.4
spyder-kernels==0.4.4
SQLAlchemy==1.2.2
statsmodels==0.9.0
tables==3.4.2
testpath==0.4.2
toolz==0.9.0
tornado==6.0.2
traitlets==4.3.2
typed-ast==1.3.4
typing-extensions==3.7.2
urllib3==1.24.3
wcwidth==0.1.7
web3==4.4.1
webencodings==0.5.1
websockets==5.0.1
wrapt==1.11.1
wurlitzer==1.0.2
yarl==1.1.0
在运行catalyst 的时候会提示:
runfile('/Users/mac/Desktop/UPF/Master Thesis/py/crypocurrency/trading.py', wdir='/Users/mac/Desktop/UPF/Master Thesis/py/crypocurrency')
Traceback (most recent call last):

File "", line 1, in
runfile('/Users/mac/Desktop/UPF/Master Thesis/py/crypocurrency/trading.py', wdir='/Users/mac/Desktop/UPF/Master Thesis/py/crypocurrency')

File "/Users/mac/miniconda3/envs/catalyst/lib/python3.6/site-packages/spyder_kernels/customize/spydercustomize.py", line 827, in runfile
execfile(filename, namespace)

File "/Users/mac/miniconda3/envs/catalyst/lib/python3.6/site-packages/spyder_kernels/customize/spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "/Users/mac/Desktop/UPF/Master Thesis/py/crypocurrency/trading.py", line 6, in
from catalyst import run_algorithm

File "/Users/mac/Desktop/UPF/Master Thesis/py/crypocurrency/catalyst.py", line 1, in
from catalyst import run_algorithm

ImportError: cannot import name 'run_algorithm'

我在网上找了很久的解决方案但是都没有一个能解决到的。
会不会是因为在安装catalyst的时候就已经出了这个问题所导致的?
以下为我在安装的时候发生的错误。
请各位大神帮帮忙!
ERROR: Cannot uninstall 'certifi'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Note: you may need to restart the kernel to use updated packages.

  • 写回答

1条回答

  • dabocaiqq 2019-06-04 09:36
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 Pwm双极模式H桥驱动控制电机
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题