【发布时间】:2016-06-17 15:16:55
【问题描述】:
我正在尝试在运行 Gallium 的笔记本电脑上使用 PyCharm 安装 Python 包,特别是 numpy 和 networkx,但我不断收到:
IOError: [Errno 20] Not a directory: '/tmp/pip-build-xMS1YA/numpy/doc/f2py/oldnews.html'
不是目录的路径取决于我在做什么。我通过 PyCharm IDE 进行了尝试,并通过命令行运行了类似的命令,例如 sudo pip install numpy。
我确实看到了this question,这是相似的,但最初的发布者重新安装了操作系统作为解决方案,我宁愿不这样做。我已经使用these instructions 安装了 PyCharm:
sudo add-apt-repository ppa:mystic-mirage/pycharm
sudo apt-get update
sudo apt-get install pycharm
与上面链接的 SO 问题一样,我尝试了:
pip install headers_workaround
pip install spacy
但我也收到 spacy 的“不是目录”错误。
【问题讨论】:
-
你试过reinstalling pip吗?
-
做到了,@TadhgMcDonald-Jensen。你想这样回答吗?我可以使用 PyCharm 和
pip install命令安装软件包。