Preparing metadata (setup.py) … error error: subprocess-exited-with-error × python setup.py
项目背景
python版本3,7
量化zvt项目
创建python环境
conda create --name trade python=3.8
下载依赖
pip install -r requirement.txt
问题一
Preparing metadata (setup.py) … error error: subprocess-exited-with-error × python setup.py
解决方法
pip install setuptools==57.5.0
问题二
ImportError: DLL load failed while importing _psycopg: 找不到指定的模块。
解决方法
删除重装
问题三
AttributeError: module ‘os’ has no attribute ‘add_dll_directory’
解决方法
pip install psycopg2==2.8.4
问题四
ModuleNotFoundError: No module named ‘sqlalchemy_batch_inserts’
解决方法
pip install sqlalchemy_batch_inserts
问题五
AttributeError: type object ‘Base’ has no attribute ‘_decl_class_registry’
解决方法
pip install SQLAlchemy==1.3.24
作者:如果我是温帅帅