I was trying to run spyder with tensorflow-gpu and managed to setup tensorflow-gpu through conda in anaconda prompt. However post this step when i try to install keras, i get the following error:
(tenserflow-gpu) C:\Users\Nithin\Documents>pip install keras
Collecting keras
Downloading Keras-2.0.8-py2.py3-none-any.whl (276kB)
100% |################################| 276kB 161kB/s
Collecting scipy>=0.14 (from keras)
Downloading scipy-0.19.1.tar.gz (14.1MB)
100% |################################| 14.1MB 465kB/s
Requirement already satisfied: numpy>=1.9.1 in c:\users\nithin\appdata\local\conda\conda\envs\tenserflow-gpu\lib\site-packages (from keras)
Requirement already satisfied: six>=1.9.0 in c:\users\nithin\appdata\local\conda\conda\envs\tenserflow-gpu\lib\site-packages (from keras)
Collecting pyyaml (from keras)
Downloading PyYAML-3.12-cp35-cp35m-win_amd64.whl (195kB)
100% |################################| 204kB 308kB/s
Building wheels for collected packages: scipy
Running setup.py bdist_wheel for scipy ... error
Complete output from command C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Nithin\\AppData\\Local\\Temp\\pip-build-ju_zavf1\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\Nithin\AppData\Local\Temp\tmpuhtgm8rppip-wheel- --python-tag cp35:
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['C:\\Users\\Nithin\\AppData\\Local\\conda\\conda\\envs\\tenserflow-gpu\\lib', 'C:\\', 'C:\\Users\\Nithin\\AppData\\Local\\conda\\conda\\envs\\tenserflow-gpu\\libs']
NOT AVAILABLE
openblas_lapack_info:
C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\system_info.py:655: UserWarning: Specified path c:\opt\64\lib is invalid.
return self.get_paths(self.section, key)
libraries libopenblas_v0.2.20_mingwpy not found in []
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas,tatlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries tatlas,tatlas not found in C:\
libraries lapack_atlas not found in C:\
libraries tatlas,tatlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries satlas,satlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries satlas,satlas not found in C:\
libraries lapack_atlas not found in C:\
libraries satlas,satlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries ptf77blas,ptcblas,atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries f77blas,cblas,atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
lapack_info:
libraries lapack not found in ['C:\\Users\\Nithin\\AppData\\Local\\conda\\conda\\envs\\tenserflow-gpu\\lib', 'C:\\', 'C:\\Users\\Nithin\\AppData\\Local\\conda\\conda\\envs\\tenserflow-gpu\\libs']
NOT AVAILABLE
C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
self.calc_info()
lapack_src_info:
NOT AVAILABLE
C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
self.calc_info()
NOT AVAILABLE
Running from scipy source directory.
non-existing path in 'scipy\\integrate': 'quadpack.h'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Nithin\AppData\Local\Temp\pip-build-ju_zavf1\scipy\setup.py", line 416, in <module>
setup_package()
File "C:\Users\Nithin\AppData\Local\Temp\pip-build-ju_zavf1\scipy\setup.py", line 412, in setup_package
setup(**metadata)
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "C:\Users\Nithin\AppData\Local\Temp\pip-build-ju_zavf1\scipy\setup.py", line 336, in configuration
config.add_subpackage('scipy')
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 1029, in add_subpackage
caller_level = 2)
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 998, in get_subpackage
caller_level = caller_level + 1)
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 935, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\setup.py", line 15, in configuration
config.add_subpackage('linalg')
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 1029, in add_subpackage
caller_level = 2)
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 998, in get_subpackage
caller_level = caller_level + 1)
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 935, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\linalg\setup.py", line 20, in configuration
raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Failed building wheel for scipy
Running setup.py clean for scipy
Complete output from command C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Nithin\\AppData\\Local\\Temp\\pip-build-ju_zavf1\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
`setup.py clean` is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add `--force` to your command to use it anyway if you must (unsupported).
----------------------------------------
Failed cleaning build dir for scipy
Failed to build scipy
Installing collected packages: scipy, pyyaml, keras
Running setup.py install for scipy ... error
Complete output from command C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Nithin\\AppData\\Local\\Temp\\pip-build-ju_zavf1\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Nithin\AppData\Local\Temp\pip-9xcwjndr-record\install-record.txt --single-version-externally-managed --compile:
Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install scipy` (last SciPy release on PyPI)
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['C:\\Users\\Nithin\\AppData\\Local\\conda\\conda\\envs\\tenserflow-gpu\\lib', 'C:\\', 'C:\\Users\\Nithin\\AppData\\Local\\conda\\conda\\envs\\tenserflow-gpu\\libs']
NOT AVAILABLE
openblas_lapack_info:
C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\system_info.py:655: UserWarning: Specified path c:\opt\64\lib is invalid.
return self.get_paths(self.section, key)
libraries libopenblas_v0.2.20_mingwpy not found in []
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas,tatlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries tatlas,tatlas not found in C:\
libraries lapack_atlas not found in C:\
libraries tatlas,tatlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries satlas,satlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries satlas,satlas not found in C:\
libraries lapack_atlas not found in C:\
libraries satlas,satlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries ptf77blas,ptcblas,atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries f77blas,cblas,atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
libraries lapack_atlas not found in C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
lapack_info:
libraries lapack not found in ['C:\\Users\\Nithin\\AppData\\Local\\conda\\conda\\envs\\tenserflow-gpu\\lib', 'C:\\', 'C:\\Users\\Nithin\\AppData\\Local\\conda\\conda\\envs\\tenserflow-gpu\\libs']
NOT AVAILABLE
C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
self.calc_info()
lapack_src_info:
NOT AVAILABLE
C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
self.calc_info()
NOT AVAILABLE
Running from scipy source directory.
non-existing path in 'scipy\\integrate': 'quadpack.h'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Nithin\AppData\Local\Temp\pip-build-ju_zavf1\scipy\setup.py", line 416, in <module>
setup_package()
File "C:\Users\Nithin\AppData\Local\Temp\pip-build-ju_zavf1\scipy\setup.py", line 412, in setup_package
setup(**metadata)
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "C:\Users\Nithin\AppData\Local\Temp\pip-build-ju_zavf1\scipy\setup.py", line 336, in configuration
config.add_subpackage('scipy')
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 1029, in add_subpackage
caller_level = 2)
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 998, in get_subpackage
caller_level = caller_level + 1)
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 935, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\setup.py", line 15, in configuration
config.add_subpackage('linalg')
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 1029, in add_subpackage
caller_level = 2)
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 998, in get_subpackage
caller_level = caller_level + 1)
File "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\lib\site-packages\numpy\distutils\misc_util.py", line 935, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\linalg\setup.py", line 20, in configuration
raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Command "C:\Users\Nithin\AppData\Local\conda\conda\envs\tenserflow-gpu\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Nithin\\AppData\\Local\\Temp\\pip-build-ju_zavf1\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Nithin\AppData\Local\Temp\pip-9xcwjndr-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Nithin\AppData\Local\Temp\pip-build-ju_zavf1\scipy\
(tenserflow-gpu) C:\Users\Nithin\Documents>
In conda i downgraded python to 3.5.2 from 3.6.2 as tensorflow-gpu would only work with 3.5.2.
Could some one please help. Thanks in advance.
Related
I am on WSL2 in VS Code. Using Zsh on VS Code.
I am trying to install pythonnet though am getting two errors:
ERROR: Failed building wheel for pythonnet
error: option --single-version-externally-managed not recognized
This is from using pip install pythonnet==2.5.2
My versions are:
Python 3.8.10
Wheel 0.37.0
Mono: 6.8.0.105
pycparser 2.20
I have searched high and low online though I can't find a solution - everything seems to point to updating wheel and installing mono - as you can see from the above version numbers, I have them installed.
I am doing everything from within a virtual env.
Does anyone have any experience with this or know what to do to get past these errors?
Full log:
~/j/s/stx1alpha-signals/d/backend on master !6 ?1 ❯ pip install
pythonnet==2.5.2
stx1alpha at 10:52:05 AM Collecting pythonnet==2.5.2 Using cached
pythonnet-2.5.2.tar.gz (1.9 MB) Preparing metadata (setup.py) ...
done Requirement already satisfied: pycparser in
/home/jessica-ryan/jessica-ryan/stx1alpha/.venv/lib/python3.8/site-packages
(from pythonnet==2.5.2) (2.20) Building wheels for collected packages:
pythonnet Building wheel for pythonnet (setup.py) ... error ERROR:
Command errored out with exit status 1: command:
/home/jessica-ryan/jessica-ryan/stx1alpha/.venv/bin/python -u -c
'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py'"'"';
file='"'"'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-789kx5l4
cwd: /tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/
Complete output (153 lines): running bdist_wheel running build
running build_ext Checking for updates from
https://www.nuget.org/api/v2/. Currently running NuGet.exe 4.1.0.
Updating NuGet.exe to 5.11.0. Update successful. MSBuild
auto-detection: using msbuild version '14.0' from
'/usr/lib/mono/xbuild/14.0/bin'.
xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<
MSBUILD: error MSBUILD0004: Too many project files specified
WARNING: Error reading msbuild project information, ensure that your input solution or project file is valid. NETCore and UAP projects
will be skipped, only packages.config files will be restored.
Restoring NuGet package System.ValueTuple.4.5.0. Restoring NuGet
package NUnit.ConsoleRunner.3.11.1. Restoring NuGet package
NUnit.3.12.0. Restoring NuGet package UnmanagedExports.1.2.7.
Adding package 'NUnit.3.12.0' to folder
'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Adding package 'System.ValueTuple.4.5.0' to folder
'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Adding package 'UnmanagedExports.1.2.7' to folder
'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Adding package 'NUnit.ConsoleRunner.3.11.1' to folder
'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Added package 'UnmanagedExports.1.2.7' to folder
'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Added package 'System.ValueTuple.4.5.0' to folder
'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Added package 'NUnit.ConsoleRunner.3.11.1' to folder
'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages' Added package 'NUnit.3.12.0' to folder
'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/packages'
NuGet Config files used:
/home/jessica-ryan/.config/NuGet/NuGet.Config
Feeds used:
/home/jessica-ryan/.nuget/packages/
https://api.nuget.org/v3/index.json
Installed:
4 package(s) to packages.config projects
xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<
XBuild Engine Version 14.0 Mono, Version 6.8.0.105 Copyright (C) 2005-2013 Various Mono authors
Build started 11/18/2021 10:53:28. __________________________________________________ Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln"
(Clean target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "ReleaseMono|x64".
Target Clean:
Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj"
(Clean target(s)):
Target CoreClean:
Deleting file '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/obj/x64/ReleaseMono/.NETFramework,Version=v4.0.AssemblyAttribute.cs'
Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj".
The project 'clrmodule' is disabled for solution configuration 'ReleaseMono|x64'.
Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/testing/Python.Test.csproj"
(Clean target(s)):
Target CoreClean:
Deleting file '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/testing/obj/x64/ReleaseMono/.NETFramework,Version=v4.0.AssemblyAttribute.cs'
Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/testing/Python.Test.csproj".
Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/embed_tests/Python.EmbeddingTest.csproj"
(Clean target(s)):
Target CoreClean:
Deleting file '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/embed_tests/obj/x64/ReleaseMono/.NETFramework,Version=v4.0.AssemblyAttribute.cs'
Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/embed_tests/Python.EmbeddingTest.csproj".
Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/console/Console.csproj"
(Clean target(s)):
Target CoreClean:
Deleting file '/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/console/obj/x64/ReleaseMono/.NETFramework,Version=v4.0.AssemblyAttribute.cs'
Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/console/Console.csproj".
Done building project
"/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln".
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.3407830
xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<
XBuild Engine Version 14.0 Mono, Version 6.8.0.105 Copyright (C) 2005-2013 Various Mono authors
Build started 11/18/2021 10:53:29. __________________________________________________ Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln"
(Build target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "ReleaseMono|x64".
Target Build:
Project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj"
(default target(s)):
Target PrepareForBuild:
Configuration: ReleaseMono Platform: x64
Created directory "bin/"
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool /usr/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:pdbonly /optimize+
/out:obj/x64/ReleaseMono/Python.Runtime.dll
/resource:obj/x64/ReleaseMono/Python.Runtime.resources.clr.py,clr.py
Codecs/EncoderGroup.cs Codecs/DecoderGroup.cs
Codecs/RawProxyEncoder.cs Codecs/TupleCodecs.cs converterextensions.cs
finalizer.cs Properties/AssemblyInfo.cs ../SharedAssemblyInfo.cs
arrayobject.cs assemblymanager.cs BorrowedReference.cs classderived.cs
classbase.cs classmanager.cs classobject.cs clrobject.cs
codegenerator.cs constructorbinder.cs constructorbinding.cs
converter.cs CustomMarshaler.cs debughelper.cs delegatemanager.cs
delegateobject.cs eventbinding.cs eventobject.cs exceptions.cs
extensiontype.cs fieldobject.cs generictype.cs genericutil.cs
importhook.cs indexer.cs interfaceobject.cs interfaces.cs interop.cs
iterator.cs managedtype.cs metatype.cs methodbinder.cs
methodbinding.cs methodobject.cs methodwrapper.cs
modulefunctionobject.cs moduleobject.cs modulepropertyobject.cs
nativecall.cs NewReference.cs NonCopyableAttribute.cs overload.cs
propertyobject.cs pyansistring.cs pydict.cs PyExportAttribute.cs
pyfloat.cs pyint.cs pyiter.cs pylist.cs pylong.cs pynumber.cs
pyobject.cs pyscope.cs pysequence.cs pystring.cs pythonengine.cs
pythonexception.cs pytuple.cs ReferenceExtensions.cs runtime.cs
typemanager.cs typemethod.cs Util.cs platform/Types.cs
platform/LibraryLoader.cs polyfill/ReflectionPolifills.cs
slots/mp_length.cs interop38.cs
obj/x64/ReleaseMono/.NETFramework,Version=v4.0.AssemblyAttribute.cs
/target:library /unsafe+
/define:"PYTHON38;PYTHON3;UCS4;MONO_LINUX;PYTHON_WITHOUT_ENABLE_SHARED"
/nowarn:1591 /doc:bin/Python.Runtime.xml /langversion:7.3 /nostdlib
/reference:/usr/lib/mono/4.0-api/System.dll
/reference:/usr/lib/mono/4.0-api/System.Core.dll
/reference:/usr/lib/mono/4.0-api//mscorlib.dll CSC: error CS1617:
Invalid -langversion option 7.3'. It must be ISO-1', `ISO-2',
Default, Latest or value in range 1 to 7.2
Task "Csc" execution -- FAILED
Done building target "CoreCompile" in project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj".--
FAILED
Done building project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj".--
FAILED
Task "MSBuild" execution -- FAILED
Done building target "Build" in project "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln".-- FAILED Done building project
"/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln".-- FAILED
Build FAILED. Errors:
/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/pythonnet.sln
(Build) -> (Build target) ->
/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/src/runtime/Python.Runtime.csproj
(default targets) ->
/usr/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile
target) ->
CSC: error CS1617: Invalid -langversion option `7.3'. It must be `ISO-1', `ISO-2', Default, Latest or value in range 1 to 7.2
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.3647620 Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py",
line 630, in
setup(
File "/home/jessica-ryan/jessica-ryan/stx1alpha/.venv/lib/python3.8/site-packages/setuptools/init.py",
line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py",
line 612, in run
return bdist_wheel.bdist_wheel.run(self)
File "/home/jessica-ryan/jessica-ryan/stx1alpha/.venv/lib/python3.8/site-packages/wheel/bdist_wheel.py",
line 299, in run
self.run_command('build')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py",
line 353, in build_extension
subprocess.check_call(" ".join(cmd + ["/t:Build"]), shell=use_shell)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'xbuild pythonnet.sln
/p:Configuration=ReleaseMono /p:Platform=x64
/p:DefineConstants="PYTHON38%3BPYTHON3%3BUCS4%3BMONO_LINUX%3BPYTHON_WITHOUT_ENABLE_SHARED"
/p:PythonBuildDir="/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/build/lib.linux-x86_64-3.8"
/p:PythonInteropFile="interop38.cs" /p:PackageId=pythonnet_py38_x64
/verbosity:normal /t:Build' returned non-zero exit status 1.
---------------------------------------- ERROR: Failed building wheel for pythonnet Running setup.py clean for pythonnet Failed to
build pythonnet Installing collected packages: pythonnet
Running setup.py install for pythonnet ... error
ERROR: Command errored out with exit status 1:
command: /home/jessica-ryan/jessica-ryan/stx1alpha/.venv/bin/python -u -c
'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py'"'"';
file='"'"'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record /tmp/pip-record-2fxmdkst/install-record.txt
--single-version-externally-managed --compile --install-headers /home/jessica-ryan/jessica-ryan/stx1alpha/.venv/include/site/python3.8/pythonnet
cwd: /tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized
---------------------------------------- ERROR: Command errored out with exit status 1:
/home/jessica-ryan/jessica-ryan/stx1alpha/.venv/bin/python -u -c
'import io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py'"'"';
file='"'"'/tmp/pip-install-mlymh9lo/pythonnet_eef24e9bf71f4dcdacdc5897c9504adf/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import
setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record /tmp/pip-record-2fxmdkst/install-record.txt
--single-version-externally-managed --compile --install-headers /home/jessica-ryan/jessica-ryan/stx1alpha/.venv/include/site/python3.8/pythonnet
Check the logs for full command output.
You need a newer version of Mono. The one you have does not support C# 7.3 that Pythonnet build needs.
Python 3.5 on Windows 7
Modules installed: Numpy (1.11.1), Pandas (0.18.1), Matplotlib (1.5.1)
Pip version: 8.1.2
I'm installing many of the standard packages, and was able to install the 3 packages above without problems. Scipy's installation is not working however. After some searching on the issue through the 2 links below, I upgraded pip to the newest version. This hasn't fixed the issue, and I'm a bit lost.
From what I can gather, I'm missing lapack and numpy distutils files. I'm not familiar with lapack, and I installed the latest numpy just today. Perhaps I need to reset some paths and directories?
2 links I used for trouble shooting:
Python pip install fails: invalid command egg_info
Can't install Scipy through pip
Apologies for posting such a huge block of code, but I thought it would be best to include everything the error gives me.
Collecting scipy
Using cached scipy-0.17.1.tar.gz
Installing collected packages: scipy
Running setup.py install for scipy ... error
Complete output from command c:\users\jon\appdata\local\programs\python\pyth
on35-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Jon\\
AppData\\Local\\Temp\\pip-build-ugbb8uwx\\scipy\\setup.py';exec(compile(getattr(
tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'
))" install --record C:\Users\Jon\AppData\Local\Temp\pip-uh3v7wvi-record\install
-record.txt --single-version-externally-managed --compile:
lapack_opt_info:
openblas_lapack_info:
libraries openblas not found in ['c:\\users\\jon\\appdata\\local\\programs
\\python\\python35-32\\lib', 'C:\\', 'c:\\users\\jon\\appdata\\local\\programs\\
python\\python35-32\\libs']
NOT AVAILABLE
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['c:\\users\\jon\\appdata\\local\\pro
grams\\python\\python35-32\\lib', 'C:\\', 'c:\\users\\jon\\appdata\\local\\progr
ams\\python\\python35-32\\libs']
NOT AVAILABLE
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
c:\users\jon\appdata\local\programs\python\python35-32\lib\site-packages\num
py\distutils\system_info.py:639: UserWarning: Specified path C:\projects\windows
-wheel-builder\atlas-builds\atlas-3.10.1-sse2-32\lib is invalid.
warnings.warn('Specified path %s is invalid.' % d)
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
c:\users\jon\appdata\local\programs\python\python35-32\lib\site-packages\num
py\distutils\system_info.py:1548: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
lapack_info:
libraries lapack not found in ['c:\\users\\jon\\appdata\\local\\programs\\
python\\python35-32\\lib', 'C:\\', 'c:\\users\\jon\\appdata\\local\\programs\\py
thon\\python35-32\\libs']
NOT AVAILABLE
c:\users\jon\appdata\local\programs\python\python35-32\lib\site-packages\num
py\distutils\system_info.py:1559: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
warnings.warn(LapackNotFoundError.__doc__)
lapack_src_info:
NOT AVAILABLE
c:\users\jon\appdata\local\programs\python\python35-32\lib\site-packages\num
py\distutils\system_info.py:1562: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
NOT AVAILABLE
Running from scipy source directory.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Jon\AppData\Local\Temp\pip-build-ugbb8uwx\scipy\setup.py",
line 265, in <module>
setup_package()
File "C:\Users\Jon\AppData\Local\Temp\pip-build-ugbb8uwx\scipy\setup.py",
line 262, in setup_package
setup(**metadata)
File "c:\users\jon\appdata\local\programs\python\python35-32\lib\site-pack
ages\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "C:\Users\Jon\AppData\Local\Temp\pip-build-ugbb8uwx\scipy\setup.py",
line 182, in configuration
config.add_subpackage('scipy')
File "c:\users\jon\appdata\local\programs\python\python35-32\lib\site-pack
ages\numpy\distutils\misc_util.py", line 1003, in add_subpackage
caller_level = 2)
File "c:\users\jon\appdata\local\programs\python\python35-32\lib\site-pack
ages\numpy\distutils\misc_util.py", line 972, in get_subpackage
caller_level = caller_level + 1)
File "c:\users\jon\appdata\local\programs\python\python35-32\lib\site-pack
ages\numpy\distutils\misc_util.py", line 909, in _get_configuration_from_setup_p
y
config = setup_module.configuration(*args)
File "scipy\setup.py", line 15, in configuration
config.add_subpackage('linalg')
File "c:\users\jon\appdata\local\programs\python\python35-32\lib\site-pack
ages\numpy\distutils\misc_util.py", line 1003, in add_subpackage
caller_level = 2)
File "c:\users\jon\appdata\local\programs\python\python35-32\lib\site-pack
ages\numpy\distutils\misc_util.py", line 972, in get_subpackage
caller_level = caller_level + 1)
File "c:\users\jon\appdata\local\programs\python\python35-32\lib\site-pack
ages\numpy\distutils\misc_util.py", line 909, in _get_configuration_from_setup_p
y
config = setup_module.configuration(*args)
File "scipy\linalg\setup.py", line 20, in configuration
raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Command "c:\users\jon\appdata\local\programs\python\python35-32\python.exe -u -c
"import setuptools, tokenize;__file__='C:\\Users\\Jon\\AppData\\Local\\Temp\\pi
p-build-ugbb8uwx\\scipy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(
__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\
Users\Jon\AppData\Local\Temp\pip-uh3v7wvi-record\install-record.txt --single-ver
sion-externally-managed --compile" failed with error code 1 in C:\Users\Jon\AppD
ata\Local\Temp\pip-build-ugbb8uwx\scipy\
Trying to install numpy for pypy3 on my MacBook, I receive an error.
Here are the instructions to install numpy.
git clone https://bitbucket.org/pypy/numpy.git
cd numpy
pypy3 setup.py install
But when I launch "pypy3 setup.py install, I receive this error message:
Running from numpy source directory.
/usr/local/Cellar/pypy3/2.4.0/libexec/lib_pypy/__pycache__/_cffi__g93a4bf4dxace1544d.c:2:10: fatal error:
'stdio.h' file not found
#include <stdio.h>
^
1 error generated.
/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
non-existing path in 'numpy/distutils': 'site.cfg'
non-existing path in 'numpy/f2py': 'docs'
non-existing path in 'numpy/f2py': 'f2py.1'
F2PY Version 2
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in ['/usr/local/Cellar/pypy3/2.4.0/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['/usr/local/Cellar/pypy3/2.4.0/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/Cellar/pypy3/2.4.0/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['/usr/local/Cellar/pypy3/2.4.0/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
FOUND:
extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
non-existing path in 'numpy/lib': 'benchmarks'
lapack_opt_info:
openblas_lapack_info:
libraries openblas not found in ['/usr/local/Cellar/pypy3/2.4.0/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['/usr/local/Cellar/pypy3/2.4.0/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in /usr/local/Cellar/pypy3/2.4.0/libexec/lib
libraries lapack_atlas not found in /usr/local/Cellar/pypy3/2.4.0/libexec/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in /usr/local/Cellar/pypy3/2.4.0/libexec/lib
libraries lapack_atlas not found in /usr/local/Cellar/pypy3/2.4.0/libexec/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
FOUND:
extra_compile_args = ['-msse3']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/dist.py:257: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
/Users/remioudin/numpy/numpy/distutils/fcompiler/gnu.py:129: UserWarning: Env. variable MACOSX_DEPLOYMENT_TARGET set to 10.3
warnings.warn(s)
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: cc -arch x86_64 -O2 -fPIC -Wimplicit -O2 -fPIC -Wimplicit
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/usr/local/Cellar/pypy3/2.4.0/libexec/include -c'
cc: _configtest.c
cc -arch x86_64 _configtest.o -o _configtest
ld: library not found for -lcrt1.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: library not found for -lcrt1.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
File "setup.py", line 251, in <module>
setup_package()
File "setup.py", line 243, in setup_package
setup(**metadata)
File "/Users/remioudin/numpy/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/dist.py", line 917, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/Users/remioudin/numpy/numpy/distutils/command/install.py", line 60, in run
r = old_install.run(self)
File "/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/command/install.py", line 579, in run
self.run_command('build')
File "/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/Users/remioudin/numpy/numpy/distutils/command/build.py", line 39, in run
old_build.run(self)
File "/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/command/build.py", line 126, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/pypy3/2.4.0/libexec/lib-python/3/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/Users/remioudin/numpy/numpy/distutils/command/build_src.py", line 153, in run
self.build_sources()
File "/Users/remioudin/numpy/numpy/distutils/command/build_src.py", line 164, in build_sources
self.build_library_sources(*libname_info)
File "/Users/remioudin/numpy/numpy/distutils/command/build_src.py", line 299, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/Users/remioudin/numpy/numpy/distutils/command/build_src.py", line 386, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 688, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
Do you have an idea of what is the problem?
You're right...
Numpy is available only for Pypy 2.5.0, which is compatible with Python 2.7.
I actually use Python 3.4.2, so all my files are compatible with pypy3 and not pypy.
I will do without numpy then...
Hope they will manage to make it work for pypy3 in the next few months!
https://bitbucket.org/pypy/numpy - Have you verified with pypy that their version of numpy works with pypy3? A quick read of their site suggests it is still in the works.
For now, NumPyPy only works with Python 2, and is not complete. You may get warnings or NotImplemented errors. Please let us know if you get crashes or wrong results.
I have successfully installed anaconda on Windows 7.
Pandas and numpy work fine with IPython notebook and I have verified that anaconda is referenced on the PATH.
Yet, I can not install the pandas package wothin Pycharm.
I am not sure how to proceed.
Install packages failed: Error occurred when installing package pandas.
The following command was executed:
packaging_tool.py install --build-dir C:\Users\mferrini\AppData\Local\Temp\pycharm-packaging5585301427553978431.tmp pandas
The error output of the command:
Downloading/unpacking pandas
Running setup.py egg_info for package pandas
non-existing path in 'numpy\\distutils': 'site.cfg'
non-existing path in 'numpy\\f2py': 'docs'
non-existing path in 'numpy\\f2py': 'f2py.1'
non-existing path in 'numpy\\lib': 'benchmarks'
Running from numpy source directory.
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1526: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1535: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
warnings.warn(BlasNotFoundError.__doc__)
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1538: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
warnings.warn(BlasSrcNotFoundError.__doc__)
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1432: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1443: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
warnings.warn(LapackNotFoundError.__doc__)
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1446: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "C:\Users\mferrini\AppData\Local\Temp\pycharm-packaging5585301427553978431.tmp\pandas\setup.py", line 619, in <module>
**setuptools_kwargs)
File "C:\Python27\lib\distutils\core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "build\bdist.win32\egg\setuptools\dist.py", line 239, in __init__
File "build\bdist.win32\egg\setuptools\dist.py", line 263, in fetch_build_eggs
File "build\bdist.win32\egg\pkg_resources.py", line 568, in resolve
File "build\bdist.win32\egg\pkg_resources.py", line 806, in best_match
File "build\bdist.win32\egg\pkg_resources.py", line 818, in obtain
File "build\bdist.win32\egg\setuptools\dist.py", line 313, in fetch_build_egg
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 609, in easy_install
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 639, in install_item
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 825, in install_eggs
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1031, in build_and_install
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1019, in run_setup
distutils.errors.DistutilsError: Setup script exited with error: Unable to find vcvarsall.bat
Complete output from command python setup.py egg_info:
non-existing path in 'numpy\\distutils': 'site.cfg'
non-existing path in 'numpy\\f2py': 'docs'
non-existing path in 'numpy\\f2py': 'f2py.1'
non-existing path in 'numpy\\lib': 'benchmarks'
Running from numpy source directory.
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1526: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1535: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
warnings.warn(BlasNotFoundError.__doc__)
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1538: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
warnings.warn(BlasSrcNotFoundError.__doc__)
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1432: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1443: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
warnings.warn(LapackNotFoundError.__doc__)
c:\users\mferrini\appdata\local\temp\easy_install-gartid\numpy-1.9.1\numpy\distutils\system_info.py:1446: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "C:\Users\mferrini\AppData\Local\Temp\pycharm-packaging5585301427553978431.tmp\pandas\setup.py", line 619, in <module>
**setuptools_kwargs)
File "C:\Python27\lib\distutils\core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "build\bdist.win32\egg\setuptools\dist.py", line 239, in __init__
File "build\bdist.win32\egg\setuptools\dist.py", line 263, in fetch_build_eggs
File "build\bdist.win32\egg\pkg_resources.py", line 568, in resolve
File "build\bdist.win32\egg\pkg_resources.py", line 806, in best_match
File "build\bdist.win32\egg\pkg_resources.py", line 818, in obtain
File "build\bdist.win32\egg\setuptools\dist.py", line 313, in fetch_build_egg
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 609, in easy_install
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 639, in install_item
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 825, in install_eggs
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1031, in build_and_install
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 1019, in run_setup
distutils.errors.DistutilsError: Setup script exited with error: Unable to find vcvarsall.bat
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in C:\Users\mferrini\AppData\Local\Temp\pycharm-packaging5585301427553978431.tmp\pandas
Storing complete log in C:\Users\mferrini\pip\pip.log
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am a user (who is also rather new to this stuff) on a shared linux (RHEL 4) cluster and I am trying to install numpy. The cluster actually does come with it installed, but it uses Python version 2.3 and pretty much all of my scripts only work with Python 2.7. So I downloaded numpy-1.6.1, un-tar'ed it, and ran the setup and got the following (see below). I've also tried the "install" rather the build argument but this doesn't work either. I've been trying for hours to get this to work so I'd really appreciate the help. Any thoughts?
$ Python-2.7.2/python setup.py build --fcompiler=gfortran
Running from numpy source directory.non-existing path in
'numpy/distutils': 'site.cfg' F2PY Version 2 blas_opt_info:
blas_mkl_info: libraries mkl,vml,guide not found in /usr/local/lib64
libraries mkl,vml,guide not found in /usr/local/lib libraries
mkl,vml,guide not found in /usr/lib64 libraries mkl,vml,guide not
found in /usr/lib NOT AVAILABLE
atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries
ptf77blas,ptcblas,atlas not found in /usr/local/lib64 libraries
ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries
ptf77blas,ptcblas,atlas not found in /usr/lib64 libraries
ptf77blas,ptcblas,atlas not found in /usr/lib/sse2 libraries
ptf77blas,ptcblas,atlas not found in /usr/lib NOT AVAILABLE
atlas_blas_info: libraries f77blas,cblas,atlas not found in
/usr/local/lib64 libraries f77blas,cblas,atlas not found in
/usr/local/lib customize GnuFCompiler Found executable /usr/bin/g77
gnu: no Fortran 90 compiler found gnu: no Fortran 90 compiler found
customize GnuFCompiler gnu: no Fortran 90 compiler found gnu: no
Fortran 90 compiler found customize GnuFCompiler using config
compiling '_configtest.c':
/* This file is generated from numpy/distutils/system_info.py */ void
ATL_buildinfo(void); int main(void) { ATL_buildinfo(); return 0; }
C compiler: /usr/bin/gcc4 -fno-strict-aliasing -g -O2 -DNDEBUG -g
-fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-c' gcc4: _configtest.c /usr/bin/gcc4 _configtest.o
-L/usr/lib64 -lf77blas -lcblas -latlas -o _configtest ATLAS version 3.7.11 built by root on Mon Jun 5 10:14:12 EDT 2006: UNAME : Linux intel1.lsf.platform.com 2.6.9-34.ELsmp #1 SMP Fri Feb 24
16:56:28 EST 2006 x86_64 x86_64 x86_64 GNU/Linux INSTFLG :
MMDEF :
/export/madison/src/roll/hpc/BUILD/ATLAS/CONFIG/ARCHS/P4E64SSE3/gcc/gemm
ARCHDEF :
/export/madison/src/roll/hpc/BUILD/ATLAS/CONFIG/ARCHS/P4E64SSE3/gcc/misc
F2CDEFS : -DAdd__ -DStringSunStyle CACHEEDGE: 393216 F77 :
/usr/bin/g77, version GNU Fortran (GCC) 3.4.5 20051201 (Red Hat
3.4.5-2) F77FLAGS : -fomit-frame-pointer -O -m64 CC : /usr/bin/gcc, version gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2) CC
FLAGS : -fomit-frame-pointer -O3 -funroll-all-loops -m64 MCC :
/usr/bin/gcc, version gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
MCCFLAGS : -fomit-frame-pointer -O -m64 success! removing:
_configtest.c _configtest.o _configtest FOUND:
libraries = ['f77blas', 'cblas', 'atlas']
library_dirs = ['/usr/lib64']
language = c
define_macros = [('ATLAS_INFO', '"\"3.7.11\""')]
FOUND:
libraries = ['f77blas', 'cblas', 'atlas']
library_dirs = ['/usr/lib64']
language = c
define_macros = [('ATLAS_INFO', '"\"3.7.11\""')]
lapack_opt_info: lapack_mkl_info: mkl_info: libraries mkl,vml,guide
not found in /usr/local/lib64 libraries mkl,vml,guide not found in
/usr/local/lib libraries mkl,vml,guide not found in /usr/lib64
libraries mkl,vml,guide not found in /usr/lib NOT AVAILABLE
NOT AVAILABLE
atlas_threads_info: Setting PTATLAS=ATLAS libraries
ptf77blas,ptcblas,atlas not found in /usr/local/lib64 libraries
lapack_atlas not found in /usr/local/lib64 libraries
ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries
lapack_atlas not found in /usr/local/lib libraries
ptf77blas,ptcblas,atlas not found in /usr/lib64 libraries
lapack_atlas not found in /usr/lib64 libraries
ptf77blas,ptcblas,atlas not found in /usr/lib/sse2 libraries
lapack_atlas not found in /usr/lib/sse2 libraries
ptf77blas,ptcblas,atlas not found in /usr/lib libraries lapack_atlas
not found in /usr/lib numpy.distutils.system_info.atlas_threads_info
NOT AVAILABLE
atlas_info: libraries f77blas,cblas,atlas not found in
/usr/local/lib64 libraries lapack_atlas not found in
/usr/local/lib64 libraries f77blas,cblas,atlas not found in
/usr/local/lib libraries lapack_atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib64
numpy.distutils.system_info.atlas_info FOUND:
libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
library_dirs = ['/usr/lib64']
language = f77
define_macros = [('ATLAS_INFO', '"\"3.7.11\""')]
FOUND:
libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
library_dirs = ['/usr/lib64']
language = f77
define_macros = [('ATLAS_INFO', '"\"3.7.11\""')]
running build running config_cc unifing config_cc, config, build_clib,
build_ext, build commands --compiler options running config_fc unifing
config_fc, config, build_clib, build_ext, build commands --fcompiler
options running build_src build_src building py_modules sources
building library "npymath" sources customize Gnu95FCompiler Found
executable /usr/bin/gfortran customize Gnu95FCompiler using config C
compiler: /usr/bin/gcc4 -fno-strict-aliasing -g -O2 -DNDEBUG -g
-fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Inumpy/core/src/private -Inumpy/core/src
-Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/scratch/groups/crabtree/Python-2.7.2/Include -I/scratch/groups/crabtree/Python-2.7.2 -c' gcc4: _configtest.c /usr/bin/gcc4 _configtest.o -o _configtest success! removing:
_configtest.c _configtest.o _configtest C compiler: /usr/bin/gcc4 -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Inumpy/core/src/private -Inumpy/core/src
-Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/scratch/groups/crabtree/Python-2.7.2/Include -I/scratch/groups/crabtree/Python-2.7.2 -c' gcc4: _configtest.c
_configtest.c:1: warning: conflicting types for built-in function 'exp' /usr/bin/gcc4 _configtest.o -o _configtest
_configtest.o(.text+0x5): In function main': /scratch/groups/crabtree/numpy-1.6.1/_configtest.c:6: undefined
reference toexp' collect2: ld returned 1 exit status
_configtest.o(.text+0x5): In function main': /scratch/groups/crabtree/numpy-1.6.1/_configtest.c:6: undefined
reference toexp' collect2: ld returned 1 exit status failure.
removing: _configtest.c _configtest.o C compiler: /usr/bin/gcc4
-fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Inumpy/core/src/private -Inumpy/core/src
-Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/scratch/groups/crabtree/Python-2.7.2/Include -I/scratch/groups/crabtree/Python-2.7.2 -c' gcc4: _configtest.c
_configtest.c:1: warning: conflicting types for built-in function 'exp' /usr/bin/gcc4 _configtest.o -lm -o _configtest success!
removing: _configtest.c _configtest.o _configtest building extension
"numpy.core._sort" sources adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h' to
sources. adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h'
to sources. executing numpy/core/code_generators/generate_numpy_api.py
adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h'
to sources. numpy.core - nothing done with h_files =
['build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h',
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h',
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h']
building extension "numpy.core.multiarray" sources adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h' to
sources. adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h'
to sources. executing numpy/core/code_generators/generate_numpy_api.py
adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h'
to sources. numpy.core - nothing done with h_files =
['build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h',
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h',
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h']
building extension "numpy.core.umath" sources adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h' to
sources. adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h'
to sources. executing numpy/core/code_generators/generate_ufunc_api.py
adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h' to
sources. adding 'build/src.linux-x86_64-2.7/numpy/core/src/umath' to
include_dirs. numpy.core - nothing done with h_files =
['build/src.linux-x86_64-2.7/numpy/core/src/umath/funcs.inc',
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h',
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h',
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h']
building extension "numpy.core.scalarmath" sources adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h' to
sources. adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h'
to sources. executing numpy/core/code_generators/generate_numpy_api.py
adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h'
to sources. executing numpy/core/code_generators/generate_ufunc_api.py
adding
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h' to
sources. numpy.core - nothing done with h_files =
['build/src.linux-x86_64-2.7/numpy/core/include/numpy/config.h',
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h',
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h',
'build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h']
building extension "numpy.core._dotblas" sources adding
'numpy/core/blasdot/_dotblas.c' to sources. building extension
"numpy.core.umath_tests" sources building extension
"numpy.core.multiarray_tests" sources building extension
"numpy.lib._compiled_base" sources building extension
"numpy.numarray._capi" sources building extension
"numpy.fft.fftpack_lite" sources building extension
"numpy.linalg.lapack_lite" sources adding
'numpy/linalg/lapack_litemodule.c' to sources. adding
'numpy/linalg/python_xerbla.c' to sources. building extension
"numpy.random.mtrand" sources C compiler: /usr/bin/gcc4
-fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Inumpy/core/src/private -Inumpy/core/src
-Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/scratch/groups/crabtree/Python-2.7.2/Include -I/scratch/groups/crabtree/Python-2.7.2 -c' gcc4: _configtest.c /usr/bin/gcc4 _configtest.o -o _configtest
_configtest failure. removing: _configtest.c _configtest.o _configtest building data_files sources build_src: building npy-pkg config files
running build_py copying numpy/version.py ->
build/lib.linux-x86_64-2.7/numpy copying numpy/config.py ->
build/lib.linux-x86_64-2.7/numpy copying
build/src.linux-x86_64-2.7/numpy/config.py ->
build/lib.linux-x86_64-2.7/numpy copying numpy/distutils/config.py
-> build/lib.linux-x86_64-2.7/numpy/distutils copying build/src.linux-x86_64-2.7/numpy/distutils/config.py ->
build/lib.linux-x86_64-2.7/numpy/distutils running build_clib
customize UnixCCompiler customize UnixCCompiler using build_clib
running build_ext customize UnixCCompiler customize UnixCCompiler
using build_ext customize Gnu95FCompiler customize Gnu95FCompiler
using build_ext building 'numpy.core._dotblas' extension compiling C
sources C compiler: /usr/bin/gcc4 -fno-strict-aliasing -g -O2 -DNDEBUG
-g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-DATLAS_INFO="\"3.7.11\"" -Inumpy/core/blasdot
-Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/scratch/groups/crabtree/Python-2.7.2/Include -I/scratch/groups/crabtree/Python-2.7.2 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/multiarray -Ibuild/src.linux-x86_64-2.7/numpy/core/src/umath -c' gcc4: numpy/core/blasdot/_dotblas.c numpy/core/blasdot/_dotblas.c: In
function 'dotblas_matrixproduct': numpy/core/blasdot/_dotblas.c:239:
warning: comparison of distinct pointer types lacks a cast
numpy/core/blasdot/_dotblas.c:257: warning: passing argument 3 of
'*(PyArray_API + 2240u)' from incompatible pointer type
numpy/core/blasdot/_dotblas.c:292: warning: passing argument 3 of
'*(PyArray_API + 2240u)' from incompatible pointer type gcc -pthread
-shared build/temp.linux-x86_64-2.7/numpy/core/blasdot/_dotblas.o -L/usr/lib64 -Lbuild/temp.linux-x86_64-2.7 -lf77blas -lcblas -latlas -o build/lib.linux-x86_64-2.7/numpy/core/_dotblas.so /usr/bin/ld: /usr/lib64/libcblas.a(cblas_dgemm.o): relocation R_X86_64_32 against
a local symbol' can not be used when making a shared object;
recompile with -fPIC /usr/lib64/libcblas.a: could not read symbols:
Bad value collect2: ld returned 1 exit status /usr/bin/ld:
/usr/lib64/libcblas.a(cblas_dgemm.o): relocation R_X86_64_32 against
a local symbol' can not be used when making a shared object;
recompile with -fPIC /usr/lib64/libcblas.a: could not read symbols:
Bad value collect2: ld returned 1 exit status error: Command "gcc
-pthread -shared build/temp.linux-x86_64-2.7/numpy/core/blasdot/_dotblas.o -L/usr/lib64
-Lbuild/temp.linux-x86_64-2.7 -lf77blas -lcblas -latlas -o build/lib.linux-x86_64-2.7/numpy/core/_dotblas.so" failed with exit
status 1
I had LOTS of compatibilty problems between python 2.7 and the various versions of numpy, scipy, matplotlib ... that I had to install. Finally, the good option was to use (under ubuntu) the apt-get utility, to be sure to have the versions compatible between all them packages.
Now, when reading your log, I see that you do not have LAPACK installed. See the BLAS and/or ATLAS packages to have this first. You also need a fortran compiler to be installed previously. And also the python2.7-dev package which contains the needed headers and statics.
So, the procedure I would follow in your case is as follows :
What is the GCC version you have ?
louis#APS007:~$ gcc -v
Using built-in specs.
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
Check that you have a gcc version 4 at least (able to deal with 64 bit floats as numpy needs them) or update your O.S. Carefull ! Updating the GCC is NOT an innocent package tuning...
Install a Fortran compiler.
Eventually install the LAPACK library. It will seriously speed up the numpy by pre-compiling most of its routines and tuning them for your CPU.
Install python-dev
Then you may python setup build.
Hope this was helpfull !