Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
I';我试图运行下面的python代码,但它没有声明名为get\u config的模块_Python - Fatal编程技术网

I';我试图运行下面的python代码,但它没有声明名为get\u config的模块

I';我试图运行下面的python代码,但它没有声明名为get\u config的模块,python,Python,我已尝试安装get_config包,但出现以下错误消息: 找不到满足get_config要求的版本 (来自版本:)找不到get_config的匹配分发版 下面是我正在运行的Python文件: import time import tweepy import operator import pandas as pd from collections import defaultdict import requests import re from bs4 import BeautifulSoup

我已尝试安装get_config包,但出现以下错误消息:

找不到满足get_config要求的版本 (来自版本:)找不到get_config的匹配分发版

下面是我正在运行的Python文件:

import time
import tweepy
import operator
import pandas as pd
from collections import defaultdict
import requests
import re
from bs4 import BeautifulSoup

from tweepy import OAuthHandler
from get_config import get_config

env = get_config()

consumer_key = env.get('CONSUMER_KEY')
consumer_secret = env.get('CONSUMER_SECRET')
access_token = env.get('ACCESS_TOKEN')
access_secret = env.get('ACCESS_TOKEN_SECRET')

你是怎么得到这么多缩进的!?您使用的是哪个版本的Python?
get\u config
方法是否来自一个包,该包是否已安装?我正在使用python 3.5.2,并使用jupyter作为GUI。我正在调用get_config文件,并在jupyter中收到以下错误:ImportError-->10来自get_config导入get_config 3导入functools 4导入json-->5来自ConfigParser导入ConfigParser 6来自StringIO导入StringIO 7导入错误:没有名为“ConfigParser”的模块