Я запускаю Ubuntu 14.04.
Я попытался:
sudo pip3 install scipy --upgrade
, но я получаю эту ошибку:
creating build/lib.linux-x86_64-3.4/scipy/_build_utils
copying scipy/_build_utils/__init__.py ->
build/lib.linux-x86_64-3.4/scipy/_build_utils
copying scipy/_build_utils/_fortran.py ->
build/lib.linux-x86_64-3.4/scipy/_build_utils
running build_clib
customize UnixCCompiler
customize UnixCCompiler using build_clib
building 'dfftpack' library
Running from scipy source directory.
"object of type 'type' has no len()" in evaluating 'len(list)'
(available names: [])
"object of type 'type' has no len()" in evaluating 'len(list)'
(available names: [])
"object of type 'type' has no len()" in evaluating 'len(list)'
(available names: [])
"object of type 'type' has no len()" in evaluating 'len(list)'
(available names: [])
"object of type 'type' has no len()" in evaluating 'len(list)'
(available names: [])
"object of type 'type' has no len()" in evaluating 'len(list)'
(available names: [])
error: library dfftpack has Fortran sources but no Fortran compiler found
----------------------------------------
Rolling back uninstall of scipy Cleaning up...
Command /usr/bin/python3 -c "import setuptools,
tokenize;__file__='/tmp/pip_build_root/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), file__,
'exec'))" install --record /tmp/pip-h0l8itnj-record/install-record.txt
--single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/scipy Storing debug log for failure in /home/donbeo/.pip/pip.log
donbeo@donbeo-HP-EliteBook-Folio-9470m:~$
python3
] Как я могу это решить? Я работаю над почти новой установкой Ubuntu 14.04.
У меня была такая же ошибка при установке 14.04. Я исправил это, убедившись, что все scipy-зависимости установлены через:
sudo apt-get install python-pip python-dev build-essential libatlas-base-dev gfortran
Я считаю, что это было просто sudo apt-get install gfortran, что было необходимо. Если вы попробуете это первым и сообщите нам, как это получится, было бы полезно.
Это было из этой темы: https://www.kaggle.com/c/avazu-ctr-prediction/forums/ т / 12478 / kaggler-питон-пакет-для-kaggler