Python windows安装catalyst

PIP安装

ImportError: cannot import name ‘run_algorithm’ from ‘catalyst’
ModuleNotFoundError: No module named ‘catalyst.api’

pip install catalyst安装是不对的

先卸载pip uninstall catalyst

安装教程:
Install — Catalyst 0.5.21 documentation
https://www.enigma.co/catalyst/install.html

安装:
pip install enigma-catalyst matplotlib
太多错误了 建议用conda的方法

错误:

subprocess.CalledProcessError: Command ‘[‘C:\ProgramData\Anaconda3\envs\Bitcoin\python.exe’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-de
ps’, ‘-w’, ‘C:\Users\Public\Documents\iSkysoft\CreatorTemp\tmp_fnta6iw’, ‘–quiet’, ‘Cython>=0.27.3’]’ returned non-zero exit status 1.

要先安装依赖
按照文档:

Windows Requirements
In Windows, you will first need to install the Microsoft Visual C++ Compiler, which is different depending on the version of Python that you plan to use:
Python 3.5, 3.6: Visual C++ 2015 Build Tools, which installs Visual C++ version 14.0. This is the recommended version
Python 2.7: Microsoft Visual C++ Compiler for Python 2.7, which installs version Visual C++ version 9.0

要安装Visual C++ version 14.0

The latest supported Visual C++ downloads
https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0

一直提示错误 安装:pip3 install cython

安装完依赖还有错误:

ERROR: Cannot install enigma-catalyst0.3, enigma-catalyst0.3.1, enigma-catalyst0.3.10, enigma-catalyst0.3.2, enigma-catalyst0.3.3, enigma-catalyst0.3.4, enigma-catalyst0.3.5, enigma-catalyst0.3.6, enigma-catalyst0.3.7, enigma-catalyst0.3.8, enigma-catalyst0.3.9, enigma-catalyst0.4.0, enigma-catalyst0.4.2, enigma-catalyst0.4.3, enigma-catalyst0.4.4, enigma-catalyst0.4.6, enigma-catalyst0.4.7, enigma-catalyst0.5.1, enigma-catalyst0.5.10, enigma-catalyst0.5.11, enigma-catalyst0.5.12, enigma-catalyst0.5.13, enigma-catalyst0.5.14, enigma-catalyst0.5.15, enigma-catalyst0.5.16, enigma-catalyst0.5.17, enigma-catalyst0.5.18, enigma-catalyst0.5.19, enigma-catalyst0.5.2, enigma-catalyst0.5.20, enigma-catalyst0.5.21, enigma-catalyst0.5.3, enigma-catalyst0.5.4, enigma-catalyst0.5.5, enigma-catalyst0.5.6, enigma-catalyst0.5.7, enigma-catalyst0.5.8 and enigma-catalyst0.5.9 because these package versions have conflicting dependencies.
错误2指定版本:
pip install enigma-catalyst==0.5.21 matplotlib
错误3
参照: python3安装库时关于 ImportError: cannot import name ‘Feature’ from 'setuptools’报错解决
https://blog.csdn.net/pengshengege/article/details/105113561
pip install --upgrade pip setuptools==45.2.0

bcolz==1.2.1

distutils.errors.DistutilsError: Command ‘[‘C:\ProgramData\Anaconda3\envs\bitcoin\python.exe’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘C:\Users\Public\Documents\iSkysoft\CreatorTemp\tmpjbgua77b’, ‘–quiet’, ‘setuptools-scm>1.5.4’]’ returned non-zero exit status 1.
下载 https://pypi.org/simple/setuptools-scm/
pip install setuptools_scm-5.0.1-py2.py3-none-any.whl

conda安装

下载

Windows: Download the file python3.6-environment-windows.yml (recommended) or python2.7-environment.yml

Windows Python 3.6:

conda env create -f python3.6-environment-windows.yml

Windows Python 2.7:

conda env create -f python2.7-environment.yml

激活环境activate catalyst

查看版本catalyst --version

若要删除:conda env remove --name catalyst

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

nickdlk

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值