草庐IT

dart_error

全部标签

python - pyinstaller numpy "Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll"

我是Python应用程序的新手。我正在尝试使用pyinstaller构建我的pythonGUI应用程序。我的应用程序依赖于以下软件包:PyQt4、numpy、pyqtgraph、h5py。我正在使用WinPython-32bit-3.4.4.1。我使用此命令构建应用程序:pyinstaller--hidden-import=h5py.defs--hidden-import=h5py.utils--hidden-import=h5py.h5ac--hidden-import=h5py._proxyVOGE.py我使用pyinstaller创建的dist目录中的exe文件启动我的应用程序,

python - findspark.init() 索引错误 : list index out of range error

在Python3.5Jupyter环境中运行以下命令时,出现以下错误。关于造成它的原因有什么想法吗?importfindsparkfindspark.init()错误:IndexErrorTraceback(mostrecentcalllast)in()1importfindspark---->2findspark.init()34importpyspark/.../anaconda/envs/pyspark/lib/python3.5/site-packages/findspark.pyininit(spark_home,python_path,edit_rc,edit_profil

Collecting package metadata (repodata.json): failedCondaSSLError: Encountered an SSL error. 一招解决

Collectingpackagemetadata(repodata.json):failedCondaSSLError:EncounteredanSSLerror.Mostlikelyacertificateverificationissue.先找到你的anaconda安装的位置,按照D:\Anaconda\Library\bin这个路径,复制bin文件下的这两个文件粘贴到D:\Anaconda\DLLs里面接着重启电脑就OK了

python - Unicode解码错误: 'utf-8' codec can't decode byte error

我正在尝试从urllib获取响应并对其进行解码为可读格式。文本为希伯来语,还包含{和/等字符首页编码为:#-*-coding:utf-8-*-原始字符串是:b'\xff\xfe{\x00\x00\r\x00\n\x00"\x00i\x00d\x00"\x00\x00:\x00\x00"\x001\x004\x000\x004\x008\x003\x000\x000\x006\x004\x006\x009\x006\x00"\x00,\x00\r\x00\n\x00"\x00t\x00i\x00t\x00l\x00e\x00"\x00\x00:\x00\x00"\x00\xe4\x05\

python - 无法使用 pip : error: command 'cc' failed with exit status 1 安装折扣

尝试在osx10.9Mavericks上安装discount包时,我遇到了很多问题。我正在使用django框架。我的步骤是(激活virtualenv时):pipinstalldiscount然后我得到:...1errorgenerated.error:command'cc'failedwithexitstatus1----------------------------------------Cleaningup...Command/Users/KaeserMic/Sites/2013/Duotones/naturkostbar/env/bin/python-c"importsetup

python - mat 不是数值元组 : openCV error

我已经写下了显示错误的代码,但我没有得到它:请帮助:它的显示垫不是数字元组:importcvimportcv2capture=cv2.VideoCapture("j.3gp")while(1):_,frame1=capture.read()grayImage1=cv2.cvtColor(frame1,cv2.COLOR_BGR2GRAY)_,frame2=capture.read()grayImage2=cv2.cvtColor(frame2,cv2.COLOR_BGR2GRAY)differenceImage=cv2.absdiff(grayImage1,grayImage2)thr

python bson.errors.InvalidDocument : Cannot encode object: datetime. 日期 (2015, 3, 1)

我有以下功能:#thisisinamodulecalled'dbw_lib'defdateTimeOuput(start_days_back,end_days_back):start_delta=datetime.timedelta(days=start_days_back)end_delta=datetime.timedelta(days=end_days_back)start_date=datetime.date.today()-start_deltaend_date=datetime.date.today()-end_deltareturnstart_date,end_dated

python - Pep8 E501 : line too long error

我从这段代码中得到错误E501:linetoolong:header,response=client.request('https://api.twitter.com/1.1/statuses/user_timeline.json?include_entities=true&screen_name='+username+'&count=1')但如果我这样写或另一种方式:header,response=client.request('\https://api.twitter.com/1.1/statuses/user_timeline.\json?include_entities=tru

python - 通过 virtualenv 使用脚本时出现 fatal error - python.exe 周围的额外引号

我是Python的新手,最近在Windows上安装了Python2.7.6x86。我正在尝试通过virtualenv创建一个环境。我安装了Python,然后全局安装了pip和virtualenv。然后我CD到我想在其中创建环境的目录并运行virtualenvenv。然后我用env\scripts\activate激活它。现在,当我尝试通过virtualenv(pip、easy_install等)运行任何脚本时,我收到以下错误:Fatalerrorinlauncher:Unabletocreateprocessusing'""[dir]\env\Scripts\python.exe"""

python - gevent 库 : "Import Error: no module named greenlet"

大家好,我下载了一个需要geventpython库的脚本,每次运行该脚本时,它都会显示:File"shodan.py",line7,infromgeventimportmonkeyFile"C:\Python27\lib\site-packages\gevent\__init__.py",line48,infromgevent.greenletimportGreenlet,joinall,killallFile"C:\Python27\lib\site-packages\gevent\greenlet.py",line6,infromgevent.hubimportgreenlet,g