pip install Scipy fails... lapack and numpy distutils missing - numpy

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\

Related

Can't build wheel and single-version-externally-managed not recognized error on pip install pythonnet WSL 2 VS Code

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.

Issue installing Keras with tensorflow-gpu

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.

Buildroot - installing of the "pytest-runner" package fails

Buildroot version: 2017-02
I need to integrate python package 'chardet' to my build. The chardet require the 'pytest-runner'package.
Case 1
The 'chardet' is marked to be integrated into build. The 'pytest-runner' is not pre-feteched and the 'chardet' package updated to the latest version (3.0.3) before the build with the scanpypi script. When the make is run the following error message is shown indicating problems with the 'pytest-runner':
>>> python-chardet 3.0.3 Building
(cd /home/nnnn/bldr_lab/buildroot/output/build/python-chardet-3.0.3//;
PATH="/home/nnnn/bldr_lab/buildroot/output/host/bin:/home/nnnn/bldr_lab
/buildroot/output/host/sbin:/home/nnnn/bldr_lab/buildroot/output/host/usr
/bin:/home/nnnn/bldr_lab/buildroot/output/host/usr/sbin:/home/nnnn/x-tools
/arm-cortex_a8-linux-gnueabihf/bin:/home/nnnn/bin:/home/nnnn/.local
/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr
/games:/usr/local/games" PYTHONPATH="/home/nnnn/bldr_lab/buildroot/output
/target/usr/lib/python2.7/sysconfigdata/:/home/nnnn/bldr_lab/buildroot
/output/target/usr/lib/python2.7/site-packages/" _python_sysroot=/home
/nnnn/bldr_lab/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf
/sysroot _python_prefix=/usr _python_exec_prefix=/usr /home/nnnn/bldr_lab
/buildroot/output/host/usr/bin/python setup.py build )
Download error on https://pypi.python.org/simple/pytest-runner/: unknown
url type: https -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: unknown url type: https
-- Some packages may not be found!
No local packages or download links found for pytest-runner
Traceback (most recent call last):
File "setup.py", line 52, in <module>
['chardetect = chardet.cli.chardetect:main']})
File "/home/nnnn/bldr_lab/buildroot/output/host/usr/lib/python2.7
/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 268, in
__init__
File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 313, in
fetch_build_eggs
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 846, in resolve
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1091, in best_match
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1103, in obtain
File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 380, in fetch_build_egg
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 633, in easy_install
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
package/pkg-generic.mk:216: recipe for target '/home/nnnn/bldr_lab
/buildroot/output/build/python-chardet-3.0.3/.stamp_built' failed
make[1]: *** [/home/nnnn/bldr_lab/buildroot/output/build/python-chardet-
3.0.3/.stamp_built] Error 1
Makefile:79: recipe for target '_all' failed
make: *** [_all] Error 2
case 2 When I try to create the 'pytest-runner' with the scanpypi the following error message is shown:
nnnn#xxxx:~/bldr2/buildroot$ ./support/scripts/scanpypi pytest-runner -o package
buildroot package name for pytest-runner: python-pytest-runner
Package: python-pytest-runner
Fetching package pytest-runner
Downloading package pytest-runner from https://pypi.python.org/packages/9e/4d/08889e5e27a9f5d6096b9ad257f4dea1faabb03c5ded8f665ead448f5d8a/pytest-runner-2.11.1.tar.gz...
Error: Could not install package pytest-runner
When I download the 'pytest-runner-2.11.1.tar.gz' from pypi manually it looks as normal pypi tar file. Any idea what is root cause and how to solve the problem?
-timo-

Error installing numpy for pypy3

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.

Pycharm - Package installation on Windows

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