![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python问题解决
Joey1943
追过金融,上了统计
展开
-
Mac安装量化交易常用包talib
错误说明:直接使用pip3 install ta-lib命令报错,一大片红色的,太多了,错误提示就不贴了。解决办法:参考这位兄弟的:https://blog.csdn.net/weixin_34226706/article/details/93212994使用homebrew,前提是你已经安装了homebrewbrew install ta-lib使用pip3(Python 3.X版本)进行安装。pip3 install ta-libDone!...原创 2020-09-23 21:49:57 · 1174 阅读 · 0 评论 -
报错解决:Cannot uninstall ‘XXX‘. It is a distutils installed project and thus we cannot accurately...
错误说明:安装tushare包时报错:Cannot uninstall 'lxml'. 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.解决办法:手动删除包所在目录下lxml-3.6.4-py3.5.egg-info文件,然后重新安装包。...原创 2020-09-23 21:35:17 · 528 阅读 · 0 评论 -
Python自定义包导入报错:is not defined.
文章目录问题描述解决办法问题描述导入自定义包lsqlin,将包放在Anaconda安装目录下~/opt/Anaconda3/anaconda/lib/python3.5/site-packages,使用以下命令导入包:from lsqlin import *调用函数时报错:'lsqlin' is not defined.说明包未成功导入。解决办法之前lsqlin包中的__init.py__是一个空文件,后来在文件中加入:__all__=['lsqlin']再重新导入包,代码运行成功原创 2020-09-23 14:20:24 · 2193 阅读 · 0 评论 -
Mac conda管理Python版本
文章目录Conda管理多版本Python创建Python环境(以Python 3.6版本为例)激活环境关闭环境Conda常用命令查看当前虚拟环境查看已经安装的包列表报错Conda管理多版本Python创建Python环境(以Python 3.6版本为例)Mac系统自带python2,现已安装Python 3.5环境,再增加Python 3.6。conda create -n python36 python=3.6激活环境conda activate python36关闭环境conda de原创 2020-09-04 19:36:23 · 1051 阅读 · 0 评论 -
Mac安装Xgboost报错集锦
问题背景使用import xgboost导包报错:XGBoostError: XGBoost Library (libxgboost.dylib) could not be loaded.Likely causes: * OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libomp.dylib for Mac OSX, libgomp.so for Linux and other UNIX-li原创 2020-08-24 22:12:27 · 1630 阅读 · 0 评论 -
Mac安装pip3
Mac安装pip3背景正题 - Mac安装pip3背景今天更新pip版本的时候,因为权限问题,卸载pip后没有正确安装,权限报错如下:ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'RECORD'Consider using the `--user` option or check the permissions.先解决这个问题,因为试了后面的解决方法之后,因原创 2020-08-24 16:25:36 · 913 阅读 · 0 评论