Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/298.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
Python 为什么会出现错误';ConfigFileNotFound';在jupyter笔记本中配置OCI时?_Python_Jupyter Notebook_Oracle Cloud Infrastructure - Fatal编程技术网

Python 为什么会出现错误';ConfigFileNotFound';在jupyter笔记本中配置OCI时?

Python 为什么会出现错误';ConfigFileNotFound';在jupyter笔记本中配置OCI时?,python,jupyter-notebook,oracle-cloud-infrastructure,Python,Jupyter Notebook,Oracle Cloud Infrastructure,你好。。! 我正在尝试在python jupyter笔记本中配置OCI文件。以下步骤为以下步骤: 1> 创建环境并激活,2>从环境中运行jupyter Notes 3>安装的oci 代码: pip安装virtualenv py-m virtualenv envname#激活环境 jupyter笔记本#从环境中开始使用jupyter笔记本 pip intall oci from oci.config import from_file from oci.signer import Signer c

你好。。! 我正在尝试在python jupyter笔记本中配置OCI文件。以下步骤为以下步骤: 1> 创建环境并激活,2>从环境中运行jupyter Notes 3>安装的oci

代码: pip安装virtualenv py-m virtualenv envname#激活环境 jupyter笔记本#从环境中开始使用jupyter笔记本

pip intall oci
from oci.config import from_file
from oci.signer import Signer

config = from_file()
instanceid = 'oci1.XXXXXXXXXXXXXXXXXX'

auth = Signer(
tenancy = config['ocid1.xxxxxxxxxxxxxx'],
user = config['ocid1.xxxxxxxxxxxxxxxxxxxxx'],
fingerpring = config['xxxxxxxxxxxxxxxxxx'],
private_key_file_location = config['path\to ppk file saved folder\example.ppk']
)
获取错误“ConfigFileNotFound”

有人能帮我解决这个错误吗

提前谢谢。

希望你一切顺利。 你能看一下这个博客吗?这个看起来很相关,可能会有用。

非常感谢!!
阿努帕姆·辛哈

部分有帮助