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.
指定版本:
pip install enigma-catalyst==0.5.21 matplotlib
参照: 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