I';我试图运行下面的python代码,但它没有声明名为get\u config的模块
我已尝试安装get_config包,但出现以下错误消息: 找不到满足get_config要求的版本 (来自版本:)找不到get_config的匹配分发版 下面是我正在运行的Python文件: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
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”的模块