-
0 votesanswersviews
在将lat / lon转换为x / y时,底图会创建大值
我正在使用Spyder IDE,我正在尝试使用底图绘制一些位置 . 当我插入一些lat / lon坐标时,我得到了非常大的xy值(这将不会出现在图上) . 我查阅了各种示例代码,无法弄清楚出了什么问题...... 例如:从mpl_toolkits.basemap导入Basemap m = Basemap(projection='merc',llcrnrlat=35,urcrnrlat=40,\ ... -
1 votesanswersviews
AttributeError:'NoneType' object在tensorflow中没有属性'modules'
我一直在学习张量流,直到现在一切都很好 . 我甚至使用GPU来进行张量流计算 . 但是在运行 import tensorflow as tf 命令时突然出现以下错误: Traceback (most recent call last): File "<ipython-input-6-41389fad42b5>", line 1, in <module&g... -
0 votesanswersviews
Python InvalidArgumentError:您必须为占位符张量'y'提供一个值,其中dtype为float和shape [?,10]
我无法在 Tensorboard 中生成图形或标量数据 . 我已经为CNN创建了一个代码,但我无法理解为什么无法生成图形或标量数据 . 其他错误是: InvalidArgumentError:您必须使用dtype float和shape [?,10] [[Node:y = Placeholderdtype = DT_FLOAT,shape = [?,10],_device =“/ job:loc... -
0 votesanswersviews
安装其他软件包后Spyder无法正常工作
总结:据我所知,在conda安装fenics和sfepy(以及通过pip,一些依赖项)之后,我无法运行spyder: $ spyder 回溯(最近一次调用最后一次):文件“/home/charles/anaconda3/lib/python3.5/site-packages/qtpy/QtWebEngineWidgets.py”,第22行,来自PyQt5.QtWebEngineWidgets im... -
1 votesanswersviews
PySide错误(在mac,python 3.6上)
我已经从anaconda conda update qt更新了qt,并且已经安装了一个新软件包列表并执行了几个更新:将安装以下新软件包: dbus: 1.10.22-h50d9ad6_0 expat: 2.2.4-h8f26bf8_1 gettext: 0.19.8.1-hb0f4f8b_2 glib: 2.53.6-ha08cb78_1 ... -
4 votesanswersviews
如何用Anaconda中的Spyder解决这个编码问题(Python 3)?
我正在尝试运行以下内容: import json path = 'ch02/usagov_bitly_data2012-03-16-1331923249.txt' records = [json.loads(line) for line in open(path)] 但是我收到以下错误: UnicodeDecodeError:'ascii'编解码器无法解码位置6987中的字节0xe2:序数不... -
1 votesanswersviews
模块'xlwings'没有属性'Book'
我第一次尝试使用xlwings,但我不太了解文档 . 从“快速入门”部分我读到 import xlwings as xw wb = xw.Book() # this will create a new workbook 当我尝试“在家”时,我没有问题导入xlwings但是使用第二个脚本我得到了这个错误: AttributeError: module 'xlwings' has ... -
1 votesanswersviews
Pypi模块的模块导入错误
我正在尝试将pypi模块(thinkx 1.1.2)导入spyder . 它安装在anaconda上并出现在conda列表中 . 我的python路径文件夹是我的anaconda文件夹 . 当我尝试将thinkx导入spyder时,我得到:import thinkx Traceback(最近一次调用last): 导入thinkx中的文件“”,第1行 ImportError:没有名为'thinkx'... -
-1 votesanswersviews
在条目框Python tkinter中计算用户输入
我只是通过Entry Box从用户输入中得到一个关于计算的快速问题 . 我很困惑为什么计算没有在标有“CCalc”的“def浓度”功能中执行 . 我想错误来自于代码无法从前一个函数获得用户输入“tbschk” . 还有什么我需要研究以确定如何正确地做到这一点? import tkinter as tk from tkinter import Label, Button, Entry #multi... -
1 votesanswersviews
Python库osmnx不能与Spyder一起使用
我正在使用Mac,从终端,我可以访问osmnx;但是,osmnx功能不能从spyder运行 . 我试图在脚本中使用osmnx来自动化该过程 . 当我尝试运行一个简单的脚本,例如: import osmnx as ox graph = ox.load_graphml('NL_motorway.graphml') 我收到以下错误: File "", line 1, in run... -
1 votesanswersviews
无法从Windows命令提示符运行Spyder3
我在已经有Python2的笔记本电脑上分别在两个文件夹 Python3 和 Python27 下载了Python3 . 我有Windows 10,64位 . Spyder.exe 和 Spyder3.exe 位于安装的 Scripts 子文件夹中 . 我将 Python27\Scripts 和 Python3\Scripts 添加到 Path 环境变量中 . 打开命令提示符并键入 spyder ... -
2 votesanswersviews
在openSUSE下运行Python3 / Spyder3
我花了很长时间才让Spyder使用python 3.4支持 . 我在openSuse / gnome Denktop上安装了Python 3.4和2.7 . 我还在我的主文件夹中安装了anaconda和anaconda3 . 他们在.bashrc中创建了以下行: # added by Anaconda3 2.3.0 installer # export PATH="/home/sbrem... -
2 votesanswersviews
Spyder不被视为内部命令
我已经下载了新的IntelPython并根据页面上的说明安装了包 . 因此,在我安装应用程序后,我按照Windows的这些说明操作: 打开终端或shell,然后导航到安装文件夹 . 这通常是C:\ IntelPython3 . 导航到Scripts文件夹,然后运行activate . 脚本激活根Python环境后,可以使用Intel Distribution for Python . ... -
3 votesanswersviews
Spyder3 Python IDE无法启动:“此Windows版本不支持所需的蓝牙API”
我是一个非常业余的爱好程序员,并且一直在使用spyder3 IDE来玩python(我喜欢它用于变量查看器) . 我最近重新格式化了我的电脑,然后在启动sypder时遇到了这个问题: 计算机格式之后的常规步骤是: 1)从python.org windows .exe下载安装Python 3 . 2)在命令提示符下运行这些命令 . pip install PyQt5 pip install ... -
0 votesanswersviews
Spleder IDE中不存在SKlearn,但从终端运行时确实存在
这是一个奇怪的问题 . 我已经开始使用sklearn用于Python,我一直在Sypder IDE中工作 . 但是,当我在Spyder中运行我的代码时 . 它声明“sklearn”不存在,但是,如果我从它运行的终端运行相同的程序 . ImportError: No module named 'sklearn' 我确实检查了它是否是由于不同版本的python . 当尝试在python2中导入模块时... -
0 votesanswersviews
Spyder没有处理相对进口
我试图python3证明我的工作和spyder似乎有 absolute_import 的问题 . 出于演示目的,我创建了两个简单文件 . caller 和 callme caller from __future__ import absolute_import from .callme import helloWorld def runme(msg): helloWorld(msg)... -
0 votesanswersviews
将底图导入spyder时出现运行时错误
几个月前我在我的计算机上安装了spyder,它运行良好,直到我需要制作带有地块图和地形的 Map . 我只是尝试导入matplotlib-basemap并获得以下错误: 文件“<ipython-input-12-6634632f8d36>”,第1行,在runfile中('C:/Users/Isa/Documents/Freedman/2018/ENVIROCOMP/Stationp... -
0 votesanswersviews
Anaconda Spyder错误安装 - 拒绝访问(错误13)
我试图从Anaconda Python安装Spyder ide,但错误13 - acess拒绝更新python,如下所示 . 任何人都可以帮我吗? C:> conda install -c anaconda spyder解决环境:完成 包装计划 环境位置:C:\ ProgramData \ Anaconda3 添加/更新规格: - spyder 以下包将更新: ca-certifica... -
3 votesanswersviews
Matplotlib冻结当Spyder中使用input()时
Windows 7.如果我在命令行打开一个普通的ipython终端,我可以输入: import matplotlib.pyplot as plt plt.plot([1, 2, 3, 4, 5]) plt.show(block=False) input("Hello ") 但是如果我在Spyder中做同样的事情,一旦我要求用户输入,Matplotlib窗口会冻结,所以我无法与... -
1 votesanswersviews
在ubuntu 18.04中安装spyder-vim
当我尝试在ubuntu 18.04中安装spyder-vim时,就像这个页面指示spyder-vim:我使用的命令是: conda install spyder-vim -c spyder-ide 但是,它不起作用,错误消息是: 解决环境:失败PackagesNotFoundError:当前渠道无法使用以下软件包:spyder-vim当前渠道:https://conda.anaconda.or... -
0 votesanswersviews
ConnectionError:HTTPSConnectionPool(host = 'www.google.com',port = 443):使用url超出最大重试次数:
我在尝试从网站废弃数据时收到连接错误 . 以下是我正在使用的代码 . import requests import bs4 res=requests.get('https://www.google.com/') type(res) soup=bs4.BeautifulSoup(res.text,'lxml') type(soup) print(type(soup)) print(soup.p... -
0 votesanswersviews
由于绝地问题,Anaconda Spyder无法启动
文件“/home/srikanth/anaconda3/envs/keras/lib/python3.5/site-packages/spyder/utils/introspection/manager.py”,第220行,在get_completions info = self._get_code_info('完成'中,自动=自动)文件“/home/srikanth/anaconda3/env... -
1 votesanswersviews
使用deeplearning.net中的教程在Winpython中安装Theano
我正在尝试在我的Windows Server 2008操作系统(64位)中安装Theano,并且我正在按照给出的教程进行操作 http://deeplearning.net/software/theano/install_windows.html#install-windows 我遵循了“Winpython”的方法 已经到了这一步 http://deeplearning.net/software/... -
0 votesanswersviews
使用scikit learn的决策树分类器存在一些问题
我正在尝试使用sci kit学习实现决策树分类器 . 我从sklearn导入了它,但 .fit() 显示了一些问题 . 我正在编写代码: from sklearn.datasets import load_iris from sklearn import tree iris = load_iris() clf = tree.DecisionTreeClassifier() clf = clf... -
1 votesanswersviews
UnicodeDecodeError:'ascii' codec无法解码位置58的字节0xe7:序号不在范围内(128)
突然间我无法在spyder 2.7中运行脚本 . 并且总是出现错误 . UnicodeDecodeError:'ascii'编解码器无法解码位置58的字节0xe7:序号不在范围内(128) 在stackoverflow中有很多解决方案 . 但是当我尝试这种方法时 import sys reload(sys) sys.setdefaultencoding('utf8') 它给出了另一个... -
2 votesanswersviews
Spyder - Python - UnicodeDecodeError:'ascii'编解码器无法解码
TL, DR :python文件在Spyder中运行时遇到UnicodeDecodeError,但是当我在命令行中运行它时,它会起作用 . 我下载了一个包含后缀树的C实现的Python module . 在构建之后,它在Spyder中运行但是我收到以下错误: runfile('F:/src/suffix_tree-2.1/build/lib.win32-2.7/suffix_tree.py',... -
0 votesanswersviews
'ascii'编码器错误't decode byte 0xf3…when I' m在spyder环境中使用tia datamanager(bloomberg)
当我尝试导入如下(是bloomberg补充,允许从bloomberg检索数据到python): import tia.bbg.datamgr as dm 我收到了这个错误: UnicodeDecodeError:'ascii'编解码器无法解码位置43的字节0xf3:序号不在范围内(128) 这段代码在我的日常工作中正常运行,但我无法在家中运行此代码 . -
1 votesanswersviews
Pyspark:Spyder中的SparkContext定义抛出Java网关错误
我想将Spyder与pyspark(spark-2.1.1)一起使用,但我无法解决相当令人沮丧的Java错误 . 在激活conda环境(Python版本为3.5.3)后,我在Windows 10中从命令行启动spyder . 这是我的代码: import pyspark sc = pyspark.SparkContext("local") file = sc.textFile(... -
1 votesanswersviews
如何传递两个python文件,以便在另一个通过控制台读取之前打印(交互式)
我想要的是这样的:第一个文件只是在第二个文件读取后立即打印 # a.py print('pepe') # wait till the other had read print(23) 第二个程序使用后来的数据 # b.py name = input() age = int(input()) print('Hi ' + name + ', you are ' str(age)) 所以我可以在控制... -
0 votesanswersviews
Spyder 2在Ubuntu 18.04
如何在Ubuntu 18.04中安装spyder 2? 当我在终端输入时: sudo apt-get install spyder 它安装spyder 3 .