gpt4 book ai didi

python-2.7 - 在 jupyter 中导入 unicodecsv 失败

转载 作者:行者123 更新时间:2023-12-04 02:28:48 25 4
gpt4 key购买 nike

我试着跑
导入 unicodecsv
通过运行 .ipynb 文件在 jupyter 中。
它失败了。
然后我通过 python install 命令安装了 unicodecsv 文件,并在 c\python27 目录中找到了它。但仍然没有发生进口。
应该怎么安装。需要放在anaconda安装里面吗

编辑 :
显示错误 -

---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-9c1521d8df38> in <module>()
2 # 1 #
3 #####################################
----> 4 import unicodecsv
5 ## Read in the data from daily_engagement.csv and project_submissions.csv
6 ## and store the results in the below variables.

ImportError: No module named unicodecsv

最佳答案

Pip (Python 的软件包安装程序) 软件包管理器也带有 Python3,您可以在不安装的情况下尝试此变体 Conda (视窗):

python -m pip install unicodecsv

关于python-2.7 - 在 jupyter 中导入 unicodecsv 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39962530/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com