嗨,我需要在笔记本电脑上安装一些 Python 软件包用于工作(大学)。他们给我们的命令是
sudo apt-get install python3 python3-pip python3-pyqt4 python3-tk
,
pip3 install --upgrade pyflakes pylint pygments pep8 numpy scipy matplotlib psutil sphinx rope-py3k
但我在安装 scipy 和 matplotlib 时遇到了问题。我收到以下错误:
Cleaning up...
Removing temporary dir /tmp/pip_build_chris...
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_chris/scipy/setup.py'
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-te6a9qkh-record/install-record.txt
--single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_chris/scipy
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 283, in run requirement_set.install(install_options,
global_options, root=options.root_path)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1435, in install requirement.install(install_options, global_options, *args,
**kwargs)
File "/usr/lib/python3/dist-packages/pip/req.py", line 706, in install cwd=self.source_dir, filter_stdout=self._filter_install,
show_stdout=False)
File "/usr/lib/python3/dist-packages/pip/util.py", line 697, in call_subprocess% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_chris
/scipy /setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install
--record /tmp/pip-te6a9qkh-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in
/tmp/pip_build_chris/scipy
和:
Cleaning up...
Removing temporary dir /tmp/pip_build_chris...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_chris/matplotlib
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in mainstatus = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 278, in runrequirement_set.prepare_files(finder,
force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1229, in prepare_filesreq_to_install.run_egg_info()
File "/usr/lib/python3/dist-packages/pip/req.py", line 325, in run_egg_infocommand_desc='python setup.py egg_info')
File "/usr/lib/python3/dist-packages/pip/util.py", line 697, in call_subprocess% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_chris
/matplotlib
我能在这里得到一些帮助吗?