导入已安装的模块时出现错误

时间:2020-01-12 16:43:05

标签: python windows matplotlib pycharm

renderItem

我正在运行的代码是:

<FlatList
  data={dataSource}
  keyExtractor={({ id }, index) => index.toString()}
  renderItem={({ item }) => <FlatListComponent {...item}/>
/>}

Shows installed module

它总是在我的桌面上的文件夹' pyCache '

中生成文件

1 个答案:

答案 0 :(得分:1)

因为您的代码正在尝试自行导入(循环导入的基本情况),因为您已将其命名为“ matplotlib.py”。

只需重命名文件即可(可能)